HTML stands for HyperText Markup Language, which is the fundamental technology used to create web pages. It structures web content, such as text, images, links, and other media, allowing browsers to display them correctly.
HTML is the building block of all websites. Whether you're creating a personal portfolio, building a web app, or simply understanding how the internet works, mastering HTML is essential. It forms the skeleton of web pages that other technologies like CSS and JavaScript build upon.
Every HTML document follows a standard structure. The basic elements include:
<!DOCTYPE html>
: Defines the document type and HTML version.<html>
: The root element of the page, which contains all other HTML elements.<head>
: Includes meta-information about the document, like the title and character set.<body>
: Contains the actual content that will be displayed on the web page.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First HTML Page</title>
</head>
<body>
<!-- This is where your content goes -->
</body>
</html>
<h1> to <h6>
: Heading tags, used for titles and subtitles. <h1>
is the largest, and <h6>
is the smallest.<p>
: Paragraph tag, used for blocks of text.<a>
: Anchor tag, used to create hyperlinks.<img>
: Image tag, used to display images on a webpage.Create your own HTML document following the structure shown above. Add a title and some basic content such as headings, paragraphs, and a link.