Home >Web Front-end >HTML Tutorial >Detailed explanation of basic concepts of HTML
What is HTML?
HTML is a language used to describe web pages.
•HTML refers to Hyper Text Markup Language
•HTML is not a programming language, but a markup language
•Markup language is a set of markup tags
•HTML uses markup tags to describe web pages
HTML tags
HTML markup tags are often called HTML tags.
•HTML tags are keywords surrounded by angle brackets, such as
•HTML tags usually appear in pairs, such as and
•The first tag in the pair The tag is the start tag and the second tag is the end tag
•Start and end tags are also called open tags and closing tags
HTML elements
HTML elements refer to the tags from start tag to end tag tag).
Start tag | Element content | End tag |
This is a paragraph | ||
This is a link | ||
Note: The opening tag is often called an opening tag. , the end tag is often called the closing tag.
HTML element syntax
•HTML elements start with a start tag
•HTML elements end with an end tag
•The content of the element is the content between the start tag and the end tag
•Some HTML elements have empty content )
•Empty elements are closed in the opening tag (ends with the end of the opening tag)
•Most HTML elements can have attributes
HTML attributes
HTML tags can have attributes. Attributes provide more information about HTML elements.
Attributes always appear in the form of name/value pairs, such as: name="value".
Attributes are always specified in the opening tag of an HTML element.
Attribute example 1:
TIY: Center the title
Attribute example 2:
defines the body of the HTML document. has additional information about the background color.TIY: Background color
Attribute example 3: