<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Simple HTML Document</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a simple HTML document.</p>
<p><a href="https://www.example.com">Visit Example.com</a></p>
<h3>In this example:</h3>
</body>
</html>
<!DOCTYPE html>
declares the document type and version (HTML5 in this case).<html>
is the root element of the HTML document.<head>
contains meta-information about the document, such as the title that appears in the browser tab.<title>
specifies the title of the document.<body>
contains the main content of the document, like text, images, links, etc.<h1>
is a heading tag, indicating a top-level heading.<p>
is a paragraph tag.<a>
is an anchor tag, used for creating hyperlinks. The href
attribute specifies the URL the link points to.