HTML Tag Overview

Source: Internet
Author: User

Mark

Type

Name or meaning

Function

Remarks

File tag

<HTML>

File Declaration

Let the browser know that this is an HTML file

 

<Head>

Start

Provide overall File Information

 

<Title>

Title

Defines the file title, which will be displayed at the top of the browser

 

<Body>

Subject

Format and content of the design File

 

Typographical mark

 

 

 

 

<! -- Annotation -->

Description mark

Add instructions to the file but not displayed

 

<P>

Section mark

Leave a blank line between words, graphs, and tables.

 

<Br>

Line feed mark

Display words, graphs, and tables in the next row

 

<HR>

Horizontal line

Insert a horizontal line

 

<Center>

Center

Display words, graphs, and tables in the middle

Objection

<PRE>

Default format

Save files as originalCodeDisplay the arrangement

 

<Div>

Locating tag

Set placement of words, graphs, tables, etc.

 

<Nobr>

Do not wrap

Make Text wrap not too long

 

<WBR>

Suggested line feed

Default line feed

 

Font mark

<Strong>

Aggravated tone

Generate bold and bold font Effects

 

<B>

Bold mark

Generate a bold font Effect

 

<Em>

Highlight

Italics appear in the font

 

<I>

Italic Markup

Italics appear in the font

 

<Tt>

Same Width font

Courier font with the same letter width

 

<U>

Underline

Underline

Objection

<H1>

Level 1 title mark

Increase the font size, and the higher the level, the smaller the font size.

 

<H2>

Level 2 Title mark

Increase the font size

 

<H3>

Level 3 title mark

Increase the font size

 

<H4>

Level 4 title mark

Increase the font size

 

<H5>

Level 5 Title mark

Increase the font size

 

<H6>

Level 6 Title mark

Increase the font size

 

<Font>

Font mark

Set Font, size, and color

Objection

<Basefont>

Base font mark

Set all fonts, sizes, and colors

Objection

<Big>

Font increase

Make the font slightly larger

 

<Small>

Shrink font

Reduce the font size slightly

 

<Strike>

Strikethrough

Strikethrough text

Objection

<Code>

Code

The font is slightly widened, as shown in <tt>

 

<KBD>

Keyboard character

Slightly wider font, single blank

 

<SAMP>

Example

The text is slightly added as shown in <tt>

 

<Var>

Variable

Italic Effect

 

<Cite>

Italic Markup

Italic Effect

 

<BLOCKQUOTE>

Scale down to the right

Shrink text to the right

 

<Dfn>

Definition

Italic Effect

 

<Address>

Address tag

Italic Effect

 

<Sub>

Subscript

Text subscript

 

<Sup>

Superscript

Text tagging

 

List tag

 

 

 

 

<Ol>

Sequence List

The list items are listed in numbers and letters.

 

<Ul>

Unordered list

The configuration items are arranged with solid Dots as symbols

 

<Li>

LIST ITEMS

A project in the list, marking a row

 

<Menu>

Option List

The type parameter can be used to specify the project symbol.

Inverse

<Dir>

Directory List

Same as <menu>

Inverse

<DL>

Definition list

The list is displayed in two layers.

 

<DT>

Define entries

List item title

 

<DD>

Definition content

Configuration item content

 

Table tag

<Table>

Table tag

Set parameters for the table

 

<Caption>

Table title

Create a column to enter the table title

 

<Tr>

Table Column

Set columns in the table

 

<TD>

Table Column

Set the columns of the table

 

<TH>

Table Header

Equal to <TD>, but the font of the text in the text will become bold

 

Form tag

 

 

 

 

<Form>

Form tag

Determines the operation mode of the form.

 

<Textarea>

Text Box

Text input bar

 

<Input>

Input tag

Determines the input format

 

<SELECT>

Select tag

Create a rolling list

 

<Option>

Option

Each configuration option

 

Graphic Markup

Graphic Markup

Used to insert and set graphic attributes

 

Link tag

 

 

 

 

<A>

Link tag

Add Link

 

<Base>

Benchmark mark

You can convert relative URLs to absolute URLs and specify links.

 

Frame tag

<Frameset>

Framework settings

Set framework

 

<Frame>

Window settings

Set the window in the frame

 

<IFRAME>

On-page framework

Insert a frame into a webpage

IE

<Noframes>

Framework not supported

Prompt when setting the browser does not support the framework

 

Image Map

 

 

 

 

<Map>

Image Map Name

Set Image Map Name

 

<Area>

Link Area

Set connection Areas

 

Multimedia

<Bgsound>

Background sound

Make the background play music or sound

IE

<Embed>

Multimedia

Add sound, music, or image

 

Other tags

 

 

 

 

<Marquee>

Lawn lamp

Move text

IE

<Blink>

Flashing Text

Text flashing

NC

<Isindex>

In-page Finder

Enter a keyword to search for this page.

Objection

< Meta >

Description

Provide information about this page to the browser

 

<Link>

Link Definition

Define the relationship between the file and other URLs

 

Stylesheet

<Style>

Style table

Control webpage Layout

 

<Span>

Custom tag

Used independently or with style sheets

 

Note:
· ● Indicates that the tag is a blocking tag, that is, the tag needs to be terminated </Tag>.
· ○ Indicates that the tag is an empty tag, that is, the tag does not need to be terminated.
· Ie indicates that this flag only applies to Internet Explorer.
· NC indicates that the flag only applies to Netscape Communicator.
· Objection indicates that the flag is not w 3c As agreed, this mark is usually customized by Microsoft or Netscape and has been supported by everyone, but other functions in the HTML standard are the same or better.
· Indicates that the tag has been replaced by W. 3c Discarded tags are outdated tags, but HTML is backward compatible, so the browser still supports them.
· Indicates that the tag is added in HTML 4.0.

Nowrap: The nowrap attribute of the TD element in HTML indicates that text wrapping in cells is prohibited. Note that the behavior of the nowrap attribute in the TD element is related to the width attribute of the TD element. If the TD width is not set, the nowrap attribute takes effect. If the TD width is set, the nowrap attribute does not.

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.