Summary Html,css

Source: Internet
Author: User

HTML section:

First, Hyperlink part: <a herf> is a hypertext link reference, the property is the target file.

1. Hot Zone link

<map name= "Map picture name" >

<area shap= "hot zone shape" coords= "hot Zone coordinates" href= "URL" >

</map>

2. Image link

<a href= "" >

//(indicates alternate text for the specified picture, hint text.) )

</a>

3. Address link

<adress>...</adress> address information, displayed in italics.

4. E_Mail Link

<a href= "mailto ...? cc=...& bcc=....& subject=...& body ... ">//(CC refers to cc files, bcc refers to Bcc files subject refers to the subject, body refers to the content)

5, quote <q> The content between </q> is not "". Placeholder is the gray font in the text box. Font-weight:mormal is the weight of the set font.

Second, form

Methods: Post, get two kinds.

The name value in the radio button must be the same as the value difference.

check box checked, radio button radio

Legend is the domain title, and Fildset is the domain that defines it.

colspan are horizontal and rowspan are vertically tied. Row is line, col is column.

The ID in the form is the ID of its own name, which is used to indicate the unique element of the page.

CSS Section

CSS function content and performance separation.

One, selector

Selectors include: Tag selectors (elements of HTML. such as: p{color:red;} ).

Class selector (. ahd{...}  class= "AHD"), ID selector (#er {...} Id= "ER"), (two classes of life between <style type= "Text/css> ...</style>. The ID selector can be used only once, the class selector may be used more than once, and multiple styles can be set for an element.

Pseudo-Class selector (a:link{...}) Mouse not clicked, a:visited{...} after click, a:hover{...} Hang after link, a:active{...} When connected after hover.

Derived selector Li strong{....}

Child Selector. Food>li {..} Descendant selectors. Food li{...}

Two, style

Inner chain style sheet <p style= "Color:blue" >

Internal style sheet, set <style type= "Text/css" between

An external style sheet. Linking external style sheets and importing external style sheets, files ending in. css are only placed in

External style import Table <style type= "Text/css" >

@import URL ("");

</style>

Third, Div block

Block Div nesting, div cascade z-index:0,1,2.2 is at the top. Position:absolute the offset from the browser, relative is the offset from the original position, none.

Display:block,inline.block is a block element, can be wrapped automatically, and inline is an inline element. span is inline and can be used to highlight the focus and not wrap the line. Inline-block is an inline block element that can be used for paging.

Margin is the boundary of the border, the outer boundary of the box, the margin of the left and right borders of two box locks set by the border and for left + on. The upper and lower boundary is the largest boundary setting, and if there are negative numbers, it is the sum of the sums.

Four, center

1, fixed wide block elements. Set Center: Width:,,; Margin of the left and right for auto;

2, indefinite wide block elements. Set Center 1 "Join table, including tbody,tr,th at the same time set margin of the left and right for auto;

2 "diaplay:inline, simultaneously with text-algin;

3 "parent element set float,position:relative;left:50%; child element position:relative;left:50%. Child elements to eliminate floats. Clear: ...

V. Framework

<frameset cols= "20%,80%" rows= "10%,80%,10%" >

<frame src= "" Name= "" ... >

</frameset>

Summary Html,css

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.