Htmlbody tag details and html commonly used control tags _ HTML/Xhtml _ web page creation

Source: Internet
Author: User
This article mainly introduces the details of html body tags and common html control tags. For more information, see section 1,Tags:

Used to mark the subject of a webpage. The body element contains all the content of the document (such as text, hyperlink, image, table, and list .)

1. Available attributes in the body Tag:
Bgcolor = "color value": sets the background color of the entire webpage.
Text = "color value": Set the color of the text
Link = "color value": sets the display color of the text of a general hyperlink.
Vlink = "color value": sets the color of the accessed hyperlink text.
Alink = "color value": sets the color of the hyperlink text displayed when you move the mouse over the hyperlink and press the mouse.
Bgcolor = "color value": Set the background color of the webpage.
Background: Set the background image of a webpage, which can be in GIF or JPEG format (the background color of the webpage will be overwritten (if the image is transparent, the background color will be visible) because the background property has a hierarchical relationship, it is best not to set the background image)

2. webpage content and browser margin attributes: by default, there is a margin between the webpage content and the browser border

Leftmargin = "pixel value": Set the distance between the content on the webpage and the left border of the browser.
Rightmargin = "pixel value": Set the distance between the content in the webpage and the right border of the browser.
Topmargin = "pixel value": Set the distance between the content on the webpage and the upper border of the browser.
Bottommargin = "pixel value": sets the distance between the content in the webpage and the bottom border of the browser.

Ii. Common HTML control labels:

1,
: Line feed label (line feed does not change segments)

2,

..

: Section label (a section occupies one row and is a block-level element)
Attribute: align left (default) right center

3,

: Add a horizontal line

Attribute:
Width:
The absolute pixel setting does not change the length of the window.
The relative length of the percentage value varies with the width of the window.
Szie:
The absolute pixel setting is represented by a number. The larger the value, the thicker the line.
% Indicates the relative percentage. The thicker the line, the larger the value.
Color: Set the color.
Noshade = "noshade" sets the 3D display effect for the horizontal line

4, .. : HTML title, which is defined by-and other tags. It defines the largest title. Defines the smallest title (after h6 does not play any role, there are some hidden attributes: automatic segment replacement, bold font ).

Attribute: align (align): left right center

5,..: Bold text

6,

...
: Text reference means that if a text segment is imported from another website, the text segment will be included with this label and the property cite = "referenced address" will be added (the included text will be indented on both sides)

Property: cite = url (referenced address)

7,

..
: Pre-formatted text enclosed in the pre element usually contains spaces and line breaks. The text is also displayed as an equal-width font.

8,..: Skew

9,..: Enhanced Statement (bold)
10,..: Enhanced Statement (Skew)
11 ,..: The address is automatically skewed.

12,...: Small character

13,...: Big character

14,..: Deleting deletes a line.

15,..: The modification is underlined.

16,..: Underline
17,..: Strikethrough
18,...: Telegraph font

19,...: superscript
20,...: subscript

21. Common special character formats: Other reference manual entities

The Code is as follows:


Space:
Copyright:©
Registered Trademark:®
": Quot;
&:&
<: <
>:>

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.