![]() |
HTML Comments |
HTML Comments
An HTML comment begins with <!-- and the comment closes with --> . HTML comments are visible to anyone that views the page source code, but are not rendered when the HTML document is rendered by a browser.
Display
Inline
Syntax
You can add Comments to your HTML source by using the following syntax :
<!-- Write your comments here -->
Example
<!DOCTYPE html>
<html>
<head>
<title> HTML Comments </title></head>
<body>
<p> You will be able to see the text.</p>
<!-- You will not be able to see the text. -->
<!-- Or you can comment out a large number of lines. -->
</body>
</html>
Result
Note: Comments are not displayed by the browser, but they can help document
your HTML source code.
Video on This Topic :-
0 comments:
Post a Comment
For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.