HTML style sheet CSS

Source: Internet
Author: User
Tags tag name

First, style sheet classification

1, inline style sheet <p style= "FONT-SIZE:14PX;" > Inline style Sheets </p>

2. Inline style sheet (must be written in the head tag)

<style type= "Text/css" >

P

{

Style

}

</style>

3, external style sheet (create a new CSS to put the style sheet, if you need to call the stylesheet need to right-click in the HTML file →css style → attach style sheet)

Some labels have default borders and need to be removed first

Second, selector

1. Tag Selector, use tag name as selector.

2.class selector (all with ".") Beginning

3.id selector (all starts with "#")

4. Composite Selector

(1) By, separating, indicating juxtaposition, both of the same style

(2) separated by spaces, indicating descendants

(3) filter "."

Third, the style of the link

The style of the hyperlink has four items, namely: link, visited, hover, active

Hyperlink tags that act on a web page

HTML style sheet CSS

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.