What is HTML?
HTML (HyperText Markup Language) is the standard language used to create web pages. It defines the structure and layout of a webpage using various tags and elements.
Basic HTML Structure
<!DOCTYPE html>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first webpage.</p>
</body>
</html>
This example demonstrates the basic structure of an HTML document:
<!DOCTYPE html>
declares the document type and version.<html>
is the root element of the HTML document.<head>
contains meta-information about the document, such as the title displayed in the browser tab.<body>
contains the content of the webpage, including headings, paragraphs, images, and more.