HTML-Booklet

Remark is a bit of code which is overlooked by any internet browser. It is a decent practice to include remarks into your HTML code, particularly in complex archives, to show segments of a report, and some other notes to anybody taking a gander at the code. Remarks help you and others comprehend your code and builds code clarity.

HTML remarks are set in the middle of <!- – … – > labels. In this way, any substance set with-in <!- – … – > labels will be treated as remark and will be totally overlooked by the program.

Model

<!DOCTYPE html>
<html>
<head>  <!– page Header Starts –>
<title>This is page title</title>
</head> <!– page Header Ends –>
<body>
<p>page content start here</p>
</body>
</html>

valid Comments And Invalid Comments

Remarks don’t settle which implies a remark can’t be put inside another remark. Second the twofold scramble grouping “- – ” may not show up inside a remark with the exception of as a major aspect of the end – > tag. You should likewise ensure that there are no spaces in the beginning of remark string.

 

Valid Command Example

<!DOCTYPE html>
<html>
<head> 
<title>Valid Command Example</title>
</head>
<body>
< !–   This is  a valid comment –>
<p>page content start here</p>
</body>
</html>

Invalid Command Example

<!DOCTYPE html>
<html>
<head> 
<title>Invalid Command Example</title>
</head>
<body>
< !–   This is not a valid comment –>
<p>page content start here</p>
</body>
</html>

Here, the given remark is a legitimate remark and will be cleared off by the program.

Multi line Comments

So far we have seen single line remarks, yet HTML bolsters multi-line remarks too.

You can remark numerous lines by the unique starting tag <!- – and finishing tag – > set before the primary line and end of the last line as appeared in the given model underneath.

Model

<!DOCTYPE html>
<html>
<head> 
<title>Multi line Command Example</title>
</head>
<body>
<!– This is a multi line comment –>
<p>page content start here</p>
</body>
</html>

Conditional Command

Restrictive remarks just work in Internet Explorer (IE) on Windows however they are disregarded by different programs. They are upheld from Explorer 5 on wards, and you can utilize them to give restrictive guidelines to various forms of IE.

Model

<!DOCTYPE html>
<html>
<head> 
<title>Conditional Command Example</title>
<!–[if IE 6]>
Special instructions.      
<![end if]–>
</head>
<body>
<p>page content start here</p>
</body>
</html>
 

Utilizing Comment Tag

There are scarcely any programs that help <comment> tag to remark a piece of HTML code.

Note − The <comment> tag censured in HTML5. Try not to utilize this component.

Model

<!DOCTYPE html>
<html>
<head> 
<title>Utilizing Command Example</title>
</head>
<body>
<p>This is not <comment>mobile</comment></p>
</body>
</html>

Remarking Script Code

Despite the fact that you will learn JavaScript with HTML, in a different instructional exercise, however here you should make a note that in the event that you are utilizing Java Script or VB Script in your HTML code then it is prescribed to put that content code inside legitimate HTML remarks so old programs can work appropriately.

Model

<!DOCTYPE html>
<html>
<head> 
<title>Remarking Script Code Example</title>
<script>
<!– document.write(“Hello World!”) //–>
</script>
</head>
<body>
<p>Hello,World!</p>
</body>
</html>

Remarking Style Sheets

Despite the fact that you will get the hang of utilizing templates with HTML in a different instructional exercise, yet here you should make a note that in the event that you are utilizing Cascading Style Sheet (CSS) in your HTML code then it is prescribed to put that template code inside legitimate HTML remarks so old programs can work appropriately.

Model

<!DOCTYPE html>
<html>
<head> 
<title>Remarking Style Sheets Example</title>
<style>  
<!– 
.div  {
 border:1px solid #00678;        
 }        
 //–>
</style>
</head>
<body>
<div class = “div”>Hello , World!</div>
</body>
</html>
 

 

 

Share