Preparing your workspace
HTML describes the structure and meaning of content on a web page. It tells the browser what each piece of content represents, such as a heading, paragraph, link, image, list, or form.
HTML stands for HyperText Markup Language. It is not a programming language because it does not contain programming logic such as loops or conditions. Instead, HTML gives structure to a document. A browser reads the HTML from top to bottom, understands the elements, builds a document structure called the DOM, and then displays the page. An HTML element normally contains an opening tag, content, and a closing tag. Some elements, such as images and inputs, do not need a closing tag. Good HTML is not only about making a page look correct. It is also about giving the browser, search engines, assistive technologies, and other tools meaningful information about the content.
A blog article may contain a main heading, paragraphs, subheadings, an image, links, and a list. HTML gives each part its proper meaning and structure.
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is my first web page.</p>
</body>
</html>The browser displays a page with a large heading saying 'Welcome to My Website' and a paragraph below it.