Вы находитесь на странице: 1из 4

Basic HTML Tags

Tags you should see in all HTML documents:

<HTML> </HTML>
The first and last codes in your document; they frame the
entire document

<HEAD> </HEAD>
Frame the document's header, which includes the title and
which can contain other information about the document that
will not be displayed (tags that can be used for head
information include TITLE, META, BASE, LINK, RANGE, STYLE,
and ISINDEX)

<TITLE> </TITLE>
Frame the actual title that will be searched on the Web and
that users will see in the title bar of the browser window
(or equivalent)

<BODY> </BODY>
Frame the body of the document -- everything after the
header (but before the closing </HTML> tag)

Common text-formatting tags:

Headings

<H1> </H1> Frame the largest heading (or headline)


<H2> </H2> Frame the second largest heading
There are six heading levels, including H3, H4, and H5
<H6> </H6> Frame the sixth largest heading

Text-breaking tags

<P> Start paragraph (add one line of space)


<HR> Insert a horizontal rule (dividing line)
<BR> Break the line

Text-formatting tags

<STRONG> </STRONG> Produces boldface or highlighting


<EM> </EM> Produces italics or highlighting (less than <STRONG>)
<B> </B> Boldface
<I> </I> Italics
<SMALL> </SMALL> Text is made smaller than default style
<BIG> </BIG> Text is made larger than default style
<SUB> </SUB> Text becomes a subscript
<SUP> </SUP> Text becomes a superscript
<TT> </TT> Teletype text, a fixed width font
<U> </U> Text is underlined (part of HTML 3, identified by IE browser only.

Lists

<OL> </OL> Frame an ordered (numbered) list


<UL> </UL> Frame an unordered (bulleted) list
<LI> Begin a new list item (no closing tag required)
<DL> </DL> Frame a definition list; instead of <LI>, use <DT> to precede the term to be defined and <DD> to precede
the definition

Tables

<TABLE> </TABLE> Container for table

Attributes:
Border
Width
<TR> </TR> Table row container

Attributes:
Bgcolor
Align
Valign

<TD> </TD> Table data container

Attributes:
Width
Colspan
Rowspan
Align
Valign
Bgcolor

<TH> </TH> Table header (emphasized TD)

Attributes:
width
Colspan
Rowspan
Align
Valign
Bgcolor

<CAPTION> </CAPTION> Establishes caption for the table

Attribute:
Align

Images

<IMG> Image element

Attributes:
Src
Align
Height
Width
Border
Alt
Vspace
Hspace

Links

<A HREF=”url”> </A>


Anchors text to specified url.

<A HREF=mailto:address></A>
To activate mailing tool of browser and send messages to specified address.

FRAMES

<FRAMESET> </FRAMESET>
Defines the sizes; locations and initial contents of the individual frames.

Attributes:
Rows
Cols
Scrolling
Border
Frameborder
Frameheight
Framewidth

<FRAMES> </FRAMES>
Defines a single frame in a single frame.

Attributes:
Src
Name
Border
Scrolling
Frameheight
Framewidth
Frameborder

<NOFRAMES> </NOFRAMES>
Supply contents for no frames browsers.

FORMS

<form> </form>
Creates an HTML form

Attributes:
Action
Method
Name
<input type=”‘button”>
Attributes:
Name
Value

<input type=”checkbox”>
Attributes:
Name
value

<input type=”radio”>
Attributes:
Name
value

<input type=”reset”>
Attributes:
Name
value

<input type=”submit”>
Attributes:
Name
value

<input type=”text”>
Attributes:
Name
Value
Size

<input type=”image”>
Attributes:
Name
Src
align

<input type=”file”>
Attributes:
Name
Value
<input type=”password”>
Attributes:
Name
Value
Size
Maxlength

<textarea></textarea>
Attributes:
Name
Value
Rows
cols

<select></select>
Attributes:
Name
Size
Multiple

<option>
Attributes:
Value
Selected

Вам также может понравиться