Structure of an HTML Document
An HTML Document is mainly divided into two parts:
- HEAD: This contains the information about the HTML document including the Title of the page, version of HTML, Meta Data, etc.
- BODY: This contains everything you want to display on the Web Page.
Example: To demonstrate basic HTML document structure.
<!DOCTYPE html>
<!-- Defines types of documents : Html 5.O -->
<!DOCTYPE html>
<!-- Defines types of documents : Html 5.O -->
<html lang="en">
<!-- DEfines languages of content : English -->
<head>
<!-- Information about website and creator -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Defines the compatibility of version with browser -->
<meta name="viewport" content="width=device-width,
initial-scale=1.0" />
<!-- for make website responsive -->
<meta name="author" content="Mr.X" />
<meta name="Linkedin profile" content="WWW.linkedin.com/Mr.X_123" />
<!-- To give information about author or owner -->
<meta name="description " content="A better place to learn computer science" />
<!-- to explain about website in few words -->
<title>w3wiki</title>
<!-- Name of website or content to display -->
</head>
<body>
<!-- Main content of website -->
<h1>w3wiki</h1>
<p>A computer science portal for geeks</p>
</body>
</html>
HTML Course Structure of an HTML Document
HTML(Hypertext Markup Language), structures web pages. Unlike programming languages, it isn’t compiled or interpreted. Browsers render HTML directly, displaying content without typical errors. It’s a markup language, not a programming one, making execution smooth without encountering compilation or interpretation issues.
Table of Content
- HTML Document Structure
- Tags and attributes
- Structure of an HTML Document
- Understanding Essential HTML Tags