HTML comment one line and multiple lines - how to create comment in HTML
HTML comment one line and multiple lines is a piece of code which is ignored by any web browser. You can add comment text into your HTML code, especially in complex documents, to give some explanations to the html document. Comments help you and others to understand your code.
Example of HTML comment text one line and multiple lines
Any content in HTML is placed between <!-- ... --> tags, where this text will be treated as comment and will be ignored by any browser.
<title>Title of button action</title>
<a href="http://www.agernic.com" target="_blank" style="color:#C30; text-decoration: none;">Tutorial html</a>
<!-- Here put your comment about your HTML cod -->
<a href="http://agernic.com/facebook.jpg" target="_blank"><img src="http://agernic.com/facebook.jpg" style="width:342px;height:72px;border:0;" alt="facebook"></a>
<!-- Some details about the html code.
This is a multiline comment,
and it can span through
as many as lines you like.
Here put your comment about your HTML cod -->
<a href="https://www.google.com/" target="_blank" style="text-decoration: none; padding:8px; color:#090; font-size:18px">Google Search</a>
The html cod above will display this HTML result without comment text:
HTML comment one line, html comments multiple lines, html comment text, box
HTML comment one line and multiple lines - html tutorial
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
Find here examples of creative and unique website layouts.
Find here examples of creative and unique website CSS HTML menu.