CSS style Sheets

Source: Internet
Author: User
Tags tag name
<span id="Label3"></p>CSS (cascading style sheets, cascading style sheets), The function is to beautify the HTML Page.<p><p>/* Comment */comment Syntax</p></p><p><p>2.1 Basic concepts of style sheets</p></p><p><p>2.1.1 Classification of Style sheets</p></p><p><p>1. Inline style Sheet</p></p><p><p>and HTML joint display, control accuracy, but the availability of poor, Redundant.</p></p><p><p>Example: <p style= "font-size:14px;" > Inline style Sheets </p></p></p><p><p>2. Inline style sheet</p></p><p><p>embedded in a Web page as a separate area must be written inside the head Tag.</p></p><p><p><style type= "text/css" ></p></p><p><p>P//format works on P tags</p></p><p><p>{</p></p><p><p>Style</p></p><p><p>}</p></p><p><p></style></p></p><p><p>3. External style sheet</p></p><p><p>Create a new CSS file to place the style Sheet. If you want to call a style sheet in an HTML file, you need to right-click in the HTML file →css style → attach a style sheet. The link connection method is generally used.</p></p><p><p></p></p><p><p>Some labels have default margins, which are usually removed (and other styles can be set) when writing style sheet code, as Follows:</p></p><p><p><style type = "text/css" ></p></p><p><p>*//format works on all labels, the PX must be written in the style sheet</p></p><p><p>{</p></p><p><p>margin:0px; Edge Distance</p></p><p><p>padding:0px; Spacing</p></p><p><p>}</p></p><p><p><style>//multiple Style sheets to overlay</p></p><p><p>2.1.2 Selector</p></p><p><p>1, Tag Selector. Do a selector with a tag name</p></p><p><p><style type = "text/css" ></p></p><p><p>P//format works on P tags</p></p><p><p>{</p></p><p><p>Style</p></p><p><p>}</p></p><p><p><style></p></p><p><p>2. Class selector, all "." Beginning.</p></p><p><p>

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.