Introduction to HTML
HTML (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (CSS) or functionality/behavior (JavaScript).
What is HTML?β
HTML is not a programming language; it is a markup language that defines the structure of your content. HTML consists of a series of elements, which you use to enclose, or wrap, different parts of the content to make it appear a certain way, or act a certain way.
Basic HTML Structureβ
Every HTML document has a basic structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<!DOCTYPE html>: The declaration defines that this document is an HTML5 document.<html>: The root element of an HTML page.<head>: Contains meta information about the HTML page.<title>: Specifies a title for the HTML page.<body>: Defines the document's body, and is a container for all the visible contents.<h1>: Defines a large heading.<p>: Defines a paragraph.