4/7/2024 0 Comments Comments in line![]() When you are writing the HTML code, you can use the comment to explain what each section of the code is doing. You can view the comments when you click: “view page source” on a browser. If you want to comment out a whole HTML section, you can use a multi-line HTML comment as shown below: Īny text inside the comment tag is not visible to the reader on the browser. Īn example of a single-line HTML comment tag is: Multi-lines comments in HTML.If they happen to be inside the comment, your comment might break and stop becoming a comment.Ī comment tag is a HTML tag that is used to add comments to a HTML page. So it is important to ensure that your HTML comment does not contain inside it. ![]() The HTML tag indicate the end of your comment. You can also make a multi-line comment in HTML by adding at the end of your multi-line comment. You can create a single line comment by putting at the end of your comment. How to make a single line and multi-line comment in HTML
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |