March 18, 2024
Basic structure of HTMLThe below image shows the structure of HTML.
Let’s see a small demo of the HTML code with the basic structure.
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML Course</title>
</head>
<body>
<h1> This is a basic structure of HTML </h1>
</body>
</html>
<!DOCTYPE html>
This is defined as an HTML5 Document.
<html>
This is the root element of HTML.
<head>
This contains the title and meta information of the page.
<title>
This is the specified title of the page and is shown in the title bar of the browser.
<body>
This is the main container of all visible contents. All tags can be written except the title and meta tags in the body.
<h1>
This tag defines the heading. This tag is not a part of the basic structure but this is the most important heading.
HTML