This is the source code from the HTML5 Tutorial For Beginners. In this source code, you are going to learn about Line Break, Horizontal Line, Comments tag in HTML 5.
Empty HTML Elements
HTML elements with no content are called empty elements.
<br> and <hr> are an empty element without a closing tag . Empty elements can be “closed” in the opening tag like this: <br /> and <hr /> respectively.
Line Break tag
<br> is called line break tag. In the HTML if you want to provide some line break then you can use <br>.
Horizontal Line tag
<hr> is called horizontal line tag. In the HTML if you want to insert a horizontal line then you can use <hr>
In HTML there are two types of comments
- Single line comment
- Multiline comment
Comments will not be visible to the user, but we use the comment of the documentation. So, the new programmer can understand the code and if you want to do some future change that time comments are very helpful.
Example of comment
single line comments
<!-- This is a comment --> This is a paragraph. <!-- Remember to add more information here -->
<!-- Do not display this at the moment <img border="0" src="pic_mountain.jpg" alt="Mountain"> -->