Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the basic label of HTML

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "what is the basic tag of HTML", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the basic tag of HTML" article.

Hypertext markup language (Hypertext Markup Language, HTML) is a markup language for creating web pages.

In essence, it is a rule that the browser can recognize. We write the web page according to the rule, and the browser renders our web page according to the rule.

For different browsers, the same tag may be interpreted differently. (compatibility issues)

Extension of web page file: html or htm

HTML is a markup language (markup language), not a programming language.

HTML uses tags to describe web pages

Declared as an HTML5 document.

Is the start and end tag of the document.

Is the root element of the HTML page, and between them is the head and body of the document.

Defines the beginning of the HTML document.

The content between them is not displayed in the browser's document window. Contains the meta data of the document.

Defines the page title, which is displayed in the browser title bar.

The text between, is the main content of the visible web page.

Note: you need to use declaration coding for Chinese web pages, otherwise garbled code will occur.

Some browsers will set GBK as the default encoding, then you need to set it to.

HTML tags are keywords surrounded by angle brackets, such as, etc.

HTML tags usually appear in pairs, such as and

The first label is the beginning, and the second label is the end. The closing tag will have a slash.

There are also some tags that are presented separately, such as:,

Wait.

There can be several attributes or no attributes in the tag.

The syntax of the tag:

Content part

Several important attributes:

Id: unique in the ID,HTML document tree that defines tags

Class: define one or more class names for the html element (classname) (CSS style class name)

Style: specifies the inline style of the element (CSS style)

The declaration must be the first line of the HTML document, before the tag.

The declaration is not a HTML tag; it is an instruction to the web browser about which version of HTML the page is written in

Label

Meaning.

Define the page title

Define internal stylesheet colors

Define JS code or introduce an external JS file

Bring in an external style sheet file

Define the original information of a web page

Element provides meta-information (mata-information) about the page, descriptions and keywords for search engines and update frequency.

The tag is located at the head of the document and does not contain anything.

The information provided is invisible to the user.

The composition of the meta tag: the meta tag has two attributes, which are the http-equiv attribute and the name attribute

Different attributes have different parameter values, and these different parameter values achieve different web page functions.

1.http-equiv attribute: equivalent to the header function of http, it can return some useful information to the browser

To help display the page content correctly, the corresponding attribute value is the content in content,content, which is actually the variable value of each parameter.

2. Name attribute: it is mainly used to describe web pages, and the corresponding attribute value is the content in content,content, which is mainly convenient for search engine robots to find information and classification information.

The above is the content of this article on "what is the basic tag of HTML". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report