Professional Documents
Culture Documents
2 Elements
2 Elements
2 Elements
HTML Elements
The HTML element is everything from the start tag to the end tag:
<br> none
Note: Some HTML elements have no content (like the <br> element). These
elements are called empty elements. Empty elements do not have an end
tag!
Page 1 of 3
LAPMATES
Palhana, Lalganj, Azamgarh, U.P., 276202, INDIA
www.lapmates.com +91 9555393685
Example
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Example Explained
The <html> element is the root element and it defines the whole HTML
document.
<body>
</body>
Then, inside the <body> element there are two other elements: <h1> and <p>:
Page 2 of 3
LAPMATES
Palhana, Lalganj, Azamgarh, U.P., 276202, INDIA
www.lapmates.com +91 9555393685
Example
<html>
<body>
<p>This is a paragraph
<p>This is a paragraph
</body>
</html>
The <br> tag defines a line break, and is an empty element without a closing
tag:
Example
<p>This is a <br> paragraph with a line break.</p>
Page 3 of 3