- Courses
- HTML
- HTML top level tags
- <html>
- Permitted content within the html element
What content is permitted within the <html>
element?
The <html>
element can contain a <head>
and a <body>
element.
The <html>
element is the root element of an HTML document and typically contains two main sections: the <head>
and the <body>
. The <head>
element includes metadata, links to stylesheets, and scripts, while the <body>
element contains the content that is displayed to the user, such as text, images, and other media.
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a paragraph.</p>
</body>
</html>