The html tags are divided into two main categories

What are self closing tags in HTML and what are the common self closing tags?

Hello everyone, previous previous articles have explained to you that some tags exist in pairs and have a start symbol and an end symbol. If you look closely you can come across some individual symbols, however there is no end symbol. What are these symbols called?

In HTML, there are two types of tags: general tags (which generally occur in pairs) and self-closing tags;

What is the difference between general tags and self-closing tags:

Self-closing tags

Won Day

The firecrackers sounded the first year of the year, and the spring breeze sent warmth into the tassel.

Thousands of doors are tilted up, and new peaches are always replaced with old ones.

We can see from the code above that there is content within the tag in general, which means that you can insert other tags or text, etc., whereas you can’t insert anything else with a self-closing tag.

By comparison, we can simply distinguish between general tags and self-closing tags:

1, general tags appear in pairs, in the middle of which other tags or content can be inserted.

2, self-closing tags appear individually, can only define some attributes, can not insert other tags or content.

For example

Common self-closing tags:

Self-closing tags

meta: defines the page description, to facilitate the search of the network engine

link: link to an external CSS file or script

base: the base of the page for the positioning of all the connections

br: line breaks

input: defines the form element

img: image tag

Common self-closing tags

These tags are self-closing tags, which can be understood for later use. Through a simple comparison we can quickly understand the general tags and self-closing tags, we have a grasp of the content of HTML. Any questions you can interact in the comments section below, I will answer one by one.

What are the two main parts of html source code?

The structure of html consists of two main parts: the head (Head) and the body (Body). The Head section describes various attributes and information about the HTML document, including the title of the document, its location in the Web, and its relationship to other documents. The Body section is used to place all the content in the Web page, such as text, images, links, tables, forms, etc.

The header of an html document describes various attributes and information about the document, including the title of the document, its location in the Web, and its relationship to other documents.

html is structurally, divided into two main parts.

One is the head of the head, including the page title, the site’s description of information, references to external file definitions, and some css definitions, js implementation and so on.

The other is the body, the main content of the page are placed here.

HTML tags are divided into two categories, in-line tags and block tags, please explain the characteristics of the two types of tags

block tags, used in html is a separate line, there are divp and what the title of the class, in-line is not a new line, such as & lt; span & gt;