Real 0 Basic Learning HTML (iii)

Source: Internet
Author: User

First, the concept of CSS
1. Demand:
Set the style of the page label: width, height, background color, position ...
Used to layout or beautify the Web page, in other words, to write a set of beautification mode, applied to a variety of pages without one to write
2. Concept:
CSS Cascading Style Sheets
English full name: Cascading Style Sheets
Browser interpretation language: Allow the browser to perform the interpreted language
HTML CSS
Case insensitive: lowercase
The organization of the Consortium
3. CSS Syntax:
Selector 1{
Property name 1: attribute value 1;
Property Name 2: attribute value 2;
...
...
}
Selector 2{
Property Name 1: Property value 1:
Property Name 2: attribute value 2;
...
...
}
Selector: The HTML tag I'm looking for (element)
Attribute 1: Property value 1:width:20px

Not for inline styles
4. CSS Annotations
HTML annotations

CSS Comments/* Comments Content *///can also sublime shortcut keys: CTRL+/5, supplemental dhtml=html (specified Element) +css (element size position color) +javascript (manipulating page elements) content exclusive row, background color rowcontentDo not monopolize a row, background color follows content is a row-level container label, can not contain pictures, headings, paragraphs, etc., can only contain text content (they exist just for the style) two, CSS style classification 1, inline style only for inline

content

2, The inline style works on this page and can also be linked to HTML Variety Characteristics:

1, egg fish: Egg fish .....

2, Dragon Eye: Dragon Eye ...

3, High head: High head .....

3, external styles acting on multiple pages introduce inline style CSS file link Three, selector 1, HTML selector

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.