Classification of HTML element semantics

Source: Internet
Author: User
Tags html tags

My words:

Originally in the semantic HTML tags and property logs mentioned in the semantic use of HTML language, this time to see foreigners have to classify them, the author should be a micro-format development members. I personally think that it is easier to understand and use HTML after categorization, to achieve semantic markup, Meta did not mention that the use of meta is still very fixed and uncontroversial.

The following is the text of the translation

is the semantics of HTML all the same? Or are there some differences between the semantic types of elements and attributes? I think HTML elements have at least two different semantic classifications, or even three different types of semantic units, namely, structural semantics, content semantics, modifier semantics (structural semantics, semantics, and rhetorical Semantics), the semantics of attributes are not yet clearly expressed, but they seem to be divided into structural semantics and other semantic categories that can extend HTML.

Semantic categories of HTML elements

Structure

The semantics of these elements define the role of the structure they play in the document.

Div

Span

OL, UL, Li, DL, DT, DD

del, INS

H1...h6

P

Content

The semantics of these elements define the semantics of representing content tags in the document

A

Abbr

Acronym

Address

Blockquote

Cite

Code

Dfn

Kbd

Q

Samp

Var

Cosmetic description

These elements play a part in the modification and description of the content.

Strong

Em

is not entirely clear

Do not fully know what the following elements should belong to the classification, it seems that the three are not or are covered by

Blockquote

Site

Q

Classification of HTML attributes

This is a more difficult part to classify, and he can function in most HTML elements, usually attributes are an extension and extension of the element semantics

Content

Alt

Cite

Datetime

Lang

Longdesc

Title

Extended

Class

Id

Rel

Rev

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.