The <html> element is the root of the HTML document, enclosing the <body> element and marked by opening <html> and closing </html> tags.
| <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> |
The <body> element defines the document body, enclosed by <body> and </body>, containing <h1> and <p> elements.
| <h1>My First Heading</h1> <p>My first paragraph.</p> |
The <h1> element defines a heading, enclosed by <h1> and </h1> tags.
| <h1>My First Heading</h1> |
The <p> element defines a paragraph, enclosed by <p> and </p> tags.
| <p>My first paragraph.</p> |