Basic CSS syntax and basic css syntax

Source: Internet
Author: User

Basic CSS syntax and basic css syntax

I. CSS syntax:

CSS syntax rules are composed of two parts:

(1). selector: it is used to match the elements to apply css code.

(2). Rules: attribute declaration statement, used to control the expression of an element. The attribute and attribute value must be separated by a colon. If there are multiple declaration statements, they are separated by semicolons. The last statement can be omitted after the semicolon.

Selector {Rules}

Example of Code 2:

<! Doctype html>  

The code above allows you to set the size of the div element and has a dotted border.

The attribute and attribute values are separated by a colon (:). If multiple statements exist, they are separated by a semicolon. The last statement can be omitted by a semicolon.

Iii. Case sensitivity:

CSS is case insensitive, but it is recommended to use lower case.

Http://www.softwhy.com/article-417-1.html

Http://www.softwhy.com/qiduan/css_source/

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.