Welcome to the HTML Tutorial in the English Community! Below you will find a comprehensive guide to help you understand the basics of HTML, the standard markup language for creating web pages.
HTML (Hypertext Markup Language) is the backbone of every web page. It uses tags to define the structure and content of a webpage.
Structure of an HTML Document
An HTML document consists of three main parts:
- Doctype: This declaration defines the document type and version of HTML.
- HTML Element: This is the root element that encloses all other elements.
- Head: This section contains metadata about the document, such as the title.
- Body: This section contains the content of the document, such as text, images, links, and other elements.
Basic Tags
Here are some of the most common HTML tags:
<html>
: The root element of an HTML page.<head>
: Contains meta-information about the document.<title>
: Defines the title of the document.<body>
: Contains the content of the document.<h1>
to<h6>
: Define headings from largest to smallest.<p>
: Defines a paragraph.<a>
: Defines a hyperlink.<img>
: Defines an image.
Example
Here's a simple example of an HTML document:
<!DOCTYPE html>
<html>
<head>
<title>HTML Tutorial</title>
</head>
<body>
<h1>Welcome to HTML</h1>
<p>This is an example of an HTML document.</p>
<a href="/Community/en/Guides/JavaScript_Tutorial">Learn JavaScript</a>
<img src="https://cloud-image.ullrai.com/q/html_document_structure/" alt="HTML Document Structure"/>
</body>
</html>
For more in-depth learning, check out our JavaScript Tutorial.