Syntax content of CSS

Source: Internet
Author: User

This article mainly introduces the syntax of the CSS content, has a certain reference value, now share to everyone, the need for friends can refer to

1.css Introduction
You can control the effect of the Web page, including font size, color, font, line spacing, word spacing, background image, positioning, background color
2.css Writing style method
1) Inline style

<b> Default effect </b><b style= "color: #F00;" > Text changes to Red </b>

Note: inline styles write CSS style attributes directly to labels, and tag reads directly into the corresponding effect
Affects only the inline style
2) Internal style


The inner style is written in the head area of the HTML page, and the corresponding object in the body is read to the corresponding effect, and the upper write controls
Only affects the current page p
3) External style


External style CSS as a standalone file, you need to write a line of link code in the head of the HTML page to write the corresponding element in the HTML to invoke the CSS style effect of the external style writing

the writing of 3.CSS grammar
CSS writing is mainly composed of CSS properties and CSS property values.

<b style= "color: #F00;" > Text changes to Red </b>

Style for styles, color for CSS properties, #F00为属性的值, note: with;

b{width:600px;height:60px;}

Curly braces wrap CSS properties with CSS styles

Related Article

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.