HTML CSS Basics

Source: Internet
Author: User

1. Form submission
<!doctype html>

Action: The address requested when the form was submitted

Method: Methods for form requests, either post or get

When the type of input is submit, the Click button submits the contents of the form as a key-value pair, the value of the key name is name, and the value is the value of input

2. Weights for CSS Selectors

The weight value of the label is 1, the weight of the class is 10,id 100, the weight level is the same, then the accumulation, when the style conflicts, the weight of the high value of the effective

3. Box model

Margin border padding

The box model occupies High: "width" + "margin-left" + "margin-right" + "Border-left" + "border-right" + "Padding-left" + "Padding-right"

Box model width is similar to height

However, in a streaming layout, margin-top and margin-bottom may overlap

4. Relative combined with absolute
<body><div id= "Box1" ><div id= "Box2" > Relative reference elements for positioning </div></div>

#box1 {    width:200px;    height:200px;    position:relative;          } #box2 {
Position:absolute;  top:20px; left:30px; }

  

HTML CSS Basics

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.