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 are the html and xhtml tags in HTML?

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

HTML in the html and xhtml tags are how, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

As the cornerstone of Web, html is important (though not difficult, from understanding to writing) and is ready for us to learn other markup languages, such as XML.

Although WYSIWYG tools like Dreamweaver greatly simplify page development, it is necessary to be familiar with the various tags of html. Combined with development tools, from design to code, from code to design, you will quickly know the usage of a tag.

The replacement of XHTML:HTML combines HTML with XML (XHTML contains all the HTML 4.01elements combined with XML syntax) to make the rules of html stricter:

XHTML elements must be nested correctly.

The XHTML element must be closed. [use spaces and slashes to close empty tags]

The signature must be in lowercase letters.

The XHTML document must have a root element.

Attribute names must be lowercase

Attribute values must be in quotation marks

Property cannot be abbreviated

Replace the name attribute with the Id attribute

XHTML DTD defines mandatory HTML elements (there must be html, head, body elements in the XHTML document, and the title element must be in the head element. )

Why do I need XHTML?

XML is a markup language in which everything is properly marked up to produce well-formed documents.

XML is used to describe data, while HTML is used to display data.

There are different browser technologies in today's market, with some browsers running on computers and others on mobile phones and handheld devices. The latter does not have the ability and means to explain bad markup languages.

Therefore, by combining the respective strengths of HTML and XML, we have a markup language that can be used now and in the future-XHTML.

XHTML can be read by all devices that support XML, and before the rest of the browsers are upgraded to support XML, XHTML gives us the ability to write well-structured documents that work well in all browsers and are backward compatible.

In the world of web standards, XHTML tags have nothing to do with presentation, they are only about document structure.

Refactoring is the real meaning of XHTML (the idea of separating the display of data from the data itself-- the generation of CSS)

Note:

HTML 4.01/XHTML 1.0 label manual listed in order of function

NN: displays the oldest version of Netscape for supported tags.

IE: displays the oldest version of Internet Explorer for supported tags.

DTD: tags are allowed in which XHTML 1.0 DTD is displayed. S=Strict, T=Transitional, F=Frameset.

Basic label

Description

NN

IE

DTD

Define the document type.

STF

Define an html document.

3.0

3.0

STF

Define the body element.

3.0

3.0

STF

To

Define headings 1 through 6.

3.0

3.0

STF

Define a paragraph.

3.0

3.0

STF

Insert a newline.

3.0

3.0

STF

Define the horizontal line.

3.0

3.0

STF

Define comments.

3.0

3.0

STF

Character formatting

Description

NN

IE

DTD

Define bold text.

3.0

3.0

STF

I don't approve of using it. Define the font, size, and color of the text

3.0

3.0

TF

Defines italic text.

3.0

3.0

STF

Define the emphasis text.

3.0

3.0

STF

Define large font text.

3.0

3.0

STF

Define a stronger emphasis on the text.

3.0

3.0

STF

Define small font text.

3.0

3.0

STF

Define superscript text.

3.0

3.0

STF

Define the subscript text.

3.0

3.0

STF

Defines the direction in which text is displayed.

6.2

5.0

STF

I don't approve of using it. Define underlined text.

3.0

3.0

TF

Output

Description

NN

IE

DTD

Define preformatted text

3.0

3.0

STF

Define the computer code text.

3.0

3.0

STF

Define typewriter text.

3.0

3.0

STF

Define keyboard text.

3.0

3.0

STF

Define variables.

3.0

3.0

STF

Define the project.

3.0

STF

Define the sample text.

3.0

3.0

STF

I don't approve of using it. Define preformatted text.

3.0

3.0

Block level

Description

NN

IE

DTD

Define acronyms only.

6.2

4.0

STF

Define abbreviations.

6.2

STF

Define the address element.

4.0

4.0

STF

Define a block reference.

3.0

3.0

STF

I don't approve of using it. Defines the centered font.

3.0

3.0

TF

Define short references.

6.2

4.0

STF

Define a reference (citation).

3.0

3.0

STF

The definition is inserted into the text.

6.2

4.0

STF

Defines the deleted text.

6.2

4.0

STF

I don't approve of using it. Defines the text with delete lines.

3.0

3.0

TF

I don't approve of using it. Defines the text with delete lines.

3.0

3.0

TF

Link

Description

NN

IE

DTD

Define the anchor.

3.0

3.0

STF

Define a resource reference (resource reference).

4.0

3.0

STF

Frame

Description

NN

IE

DTD

Define the child window of the frame

3.0

3.0

F

Define the frame structure

3.0

3.0

F

Define frameless sections

3.0

3.0

TF

Define an inline framework

6.0

4.0

TF

Input

Description

NN

IE

DTD

Define the form.

3.0

3.0

STF

Define the input field.

3.0

3.0

STF

Define the text input area.

3.0

3.0

STF

Define the button.

6.2

4.0

STF

Define a drop-down menu.

3.0

3.0

STF

Define the option grouping.

6.0

6.0

STF

Define the options in the drop-down list.

3.0

3.0

STF

Create tags for form elements.

6.2

4.0

STF

Group related elements within the form.

6.2

4.0

STF

Define the title of the frame structure.

6.2

4.0

STF

I don't approve of using it. Define a single-line input field

3.0

3.0

TF

List

Description

NN

IE

DTD

Define an unordered list.

3.0

3.0

STF

Define an ordered list.

3.0

3.0

STF

Define list items.

3.0

3.0

STF

I don't approve of using it. Define a list of directories.

3.0

3.0

TF

Define a list of definitions.

3.0

3.0

STF

Define the project.

3.0

3.0

STF

Define the description.

3.0

3.0

STF

I don't approve of using it. Define the menu list.

3.0

3.0

TF

Image

Description

NN

IE

DTD

Define the image.

3.0

3.0

STF

Define image mapping.

3.0

3.0

STF

Define the area inside the image map.

3.0

3.0

STF

Form

Description

NN

IE

DTD

Define form

3.0

3.0

STF

Define the table title

3.0

3.0

STF

Define a table header

3.0

3.0

STF

Define the rows of the table

3.0

3.0

STF

Define table cells

3.0

3.0

STF

Define the header of the table

4.0

STF

Define the body of the table

4.0

STF

Define the footer of the table

4.0

STF

Define properties for table columns

3.0

STF

Define the group of table columns

3.0

STF

Style

Description

NN

IE

DTD

Define style definition

4.0

3.0

STF

Define sections in a document

3.0

3.0

STF

Define sections in a document

4.0

3.0

STF

Meta information

Description

NN

IE

DTD

Define information about the document

3.0

3.0

STF

Define the title of the document

3.0

3.0

STF

Define meta-information

3.0

3.0

STF

Define benchmark links for all links in a page

3.0

3.0

STF

I don't approve of using it. Define the base font

3.0

3.0

TF

Programming

Description

NN

IE

DTD

Define a script.

3.0

3.0

STF

Define the noscript section.

3.0

3.0

STF

I don't approve of using it. Define applet.

2.0

3.0

TF

Define embedded objects.

3.0

STF

Define parameters for the object.

3.0

3.0

STF

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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