Comments in HTML
Sometimes we need to put comments in your HTML code. It will not executed when operating our codes. It will be a hints to know about code blocks.
It starts with <!-- and ends with --> inside texts will not be executed at run time.
Format :
<!--Comments Here -->
Example :
<!--Paragraph about description about this web page -->
Example codes:
<!DOCTYPE html>
<HEAD>
<TITLE>Web Development Example</TITLE>
<meta charset="UTF-8">
</HEAD>
<BODY>
<!--Heading --><h1 style="text-align:center;color:green;" title="This is heading tooltip">Heading</h1>
<!-- Paragraph --><p style="text-align:center;color:red">Hi! Greetings. I am a paragraph with red colored text and centered.</p>
<!--This is a href attribute explantion --><a href="http://www.freeadsimple.com">Post Free Ads</a>
<!-- Alt attribute example --><img src="world.jpg" alt="free-ads-world" width="50" height="50">
</BODY>
</html>
Those are comments which are in blue color text in above example. Those comments for only hints for programmer.
Thank you for reading Our blog.... Will continue further.
No comments:
Post a Comment