Two types of HTML tags: row labels, block labels

Source: Internet
Author: User

HTML Two types of labels: row labels, block labels

row Label: contains A, span, EM, Strong, IMG, var;

A tag: Mainly used to link to a different page;

Span Tags: used primarily to style and manipulate text within a line;

EM tags: generally used to emphasize the text, using italic embodiment;

Strong tags: generally used to emphasize the text, using bold font expression;

IMG Tag: Image reference tag, where the SRC attribute is written to the address of the picture;

var tag: The label of the named variable in JavaScript.

Block Tags: contains P, DIV, UL, OL, Li, DL, DT, DD, H1~H6;

P Tags: Paragraph tags, paragraph text use, default format: Paragraph end of the line;

DIV Tags: the main use tag for dividing blocks;

UL Tag: The main label of the unordered list, followed by a dot (black);

OL Tags: the main label of the sequence table, followed by the general and orderly 1,2,3,4,5 ...;

Li tag: The body in the list uses tags

DL Tag: The main label of the custom label;

DT Tag: The header of the custom label;

DD Tag: The explanation (description) information of the header of the custom label;

H1~h6:6-level title tags, font size in turn smaller.

The difference between a block label and a row label:

    1. Block Tags: occupy a row alone, you can make the value of a wide height setting;
    2. Row Label: Display in one line, can not be a wide-height numerical setting;

Nesting rules

    1. Block labels can be nested, row labels can not be nested block labels.
    2. P tags do not set block attribute tags, can set A,span, text ...
    3. When nesting, pay attention to the indentation of the code.

Two types of HTML tags: row labels, block labels

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.