Use of CSS

Source: Internet
Author: User

CSS is mainly used for display. It is separated from HTML for better display,
HTML is responsible for structure; CSS is responsible for display and division of duties.

Use
Method 1:
Selector {property: property value}

<Head label>

<Style>
<! --
Div
{Width: 200; filter: blur (add = true, direction = 135, strengh = 20 );
}
-->
</Style>

In this way, the display of divs is like this.

Method 2:
<Body>
<P style = "font-size: 48; font-style: bold; color: red;"> hongen </P>
In this way, the style in the p range is specified.

Method 3:
Save the edited CSS document as a ". CSS" file and define it in <Head> <LINK rel = stylesheet href?“style.css "> ...... </Head>
We can see that a <link> is applied here. "rel = stylesheet" indicates that the connected element is a style sheet document. In general, you do not need to change it here.

 

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.