Elements part 1

HTML Fundamentals
HTML Basics
Elements
51
1/2
         

HTML Elements



HTML documents are made up of HTML elements.
An HTML element is written using a start tagand an end tag, and with the content in between.

HTML documents consist of nested HTML elements. In the example below, the body element includes the <p> tags, the <br /> tag and the content, "This is a paragraph".
<html>
<head>
<title>first page</title>
</head>
<body>
<p>This is a paragraph <br /></p>
</body>
</html>
Try It Yourself

Some HTML elements (like the <br /> tag) do not have end tags.

Comments