It is used to specify notes or important information to anyone looking at the code. Comments help you and web developers understand your code and it increases code readability and editing.
HTML comments are positioned in between <!-- ... --> tags. So, any content or note placed with-in <!-- ... --> tags will be treated as comment and will be totally ignored by the browser.
HTML comments are positioned in between <!-- ... --> tags. So, any content or note placed with-in <!-- ... --> tags will be treated as comment and will be totally ignored by the browser.
Example
<!DOCTYPE html>
<html>
<head> <!-- Header Starts here -->
<title>Scholars Globe Example</title>
</head> <!-- Header Ends -->
<body>
<p>Body Content.....</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head> <!-- Header Starts here -->
<title>Scholars Globe Example</title>
</head> <!-- Header Ends -->
<body>
<p>Body Content.....</p>
</body>
</html>
No comments:
Post a comment