HTML Lines
The <hr> tag creates a horizontal line in an HTML page.The hr element can be used to separate content:
<!DOCTYPE html>
<html>
<body>
<p>this is a paragraph</p>
<hr />
<p>this is a paragraph</p>
<hr />
</body>
</html>
HTML Comments
Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed.Comments are written like this: <!—this is a comment -->
Note: comment tag start with (!) sign but end with (!) sign.
<!DOCTYPE html>
<html>
<body>
<p>this is a paragraph</p>
<br /><!—br tag break the line -->
<p>this is a second paragraph</p>
</body>
</html>

0 comments:
Post a Comment