{"id":57,"date":"2022-03-19T09:31:55","date_gmt":"2022-03-19T09:31:55","guid":{"rendered":"https:\/\/staging.brightwhiz.com\/?post_type=topic&p=57"},"modified":"2022-03-19T09:31:56","modified_gmt":"2022-03-19T09:31:56","slug":"html-comments","status":"publish","type":"topic","link":"http:\/\/local.tutorials\/topic\/html-comments\/","title":{"rendered":"HTML – Comments"},"content":{"rendered":"\n
HTML comments are used to document the HTML source code and are not displayed in the browser.<\/p>\n\n\n\n
Comments in HTML are inserted using the HTML comment tag using the following syntax:<\/p>\n\n\n\n
<!-- Write your comments here --><\/code><\/pre>\n\n\n\nEverything between the <!--<\/code> and the --><\/code> <\/p>\n\n\n\nwill be hidden from the display. The HTML comment tag can span several lines but does not support nesting with other HTML comment tags.<\/p>\n\n\n\n
Comment tags can be used anywhere on your web page. Typically they should be used where it makes sense in terms of documenting specific parts of the source code wherever needed.<\/p>\n\n\n\n
<h1>Chapter 1<\/h1>\n\n<p>This is a paragraph.<\/p>\n\n<!-- Remember to add more chapters here --><\/code><\/pre>\n\n\n\nTemporarily Hide Content<\/h2>\n\n\n\n
HTML comments can be used to temporarily hide content. This can be useful for testing or debugging parts of your source code or content layout.<\/p>\n\n\n\n
<p>This is a paragraph.<\/p>\n\n<!-- \n<p>This is hidden paragraph,<\/p> \n<img border="0" src="hidden_image.jpg" alt="Hidden Image">\n-->\n\n<p>This is a another paragraph.<\/p><\/code><\/pre>\n\n\n\nHide Inline Content<\/h2>\n\n\n\n
Comments can be used to hide parts of the content in an HTML page.<\/p>\n\n\n\n
<p>This is <!-- text hidden from --> a paragraph.<\/p><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"HTML comments are used to document the HTML source code and are not displayed in the browser. HTML Comment Tag Comments in HTML are inserted using the HTML comment tag using the following syntax: Everything between the <!– and the –> will be hidden from the display. The HTML comment tag can span several lines […]<\/p>\n","protected":false},"featured_media":43,"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[2],"tags":[],"subject":[7,8],"yoast_head":"\n
Learn HTML - Comments<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n\n\n\n\t\n