Several methods of using css in the webpage are briefly introduced, and css is briefly introduced.

Source: Internet
Author: User

Several methods of using css in the webpage are briefly introduced, and css is briefly introduced.

Several methods of using css on the webpage are described as follows:

Css can be said to be necessary in the current webpage. If css is not used, this webpage is generally ugly and hard to imagine. The following describes several methods for using css on the webpage, I hope it will be helpful for beginners.

1. inline style:

The so-called inline style is to unmount the style within the label. The Code is as follows:

<div style="color:red;font-size:10px"></div>

That is, the style method is used to specify the div style in the label.

Ii. Internal style sheets:

The internal style sheet is written on the current page rather than introduced from the outside. The Code is as follows:

<! DOCTYPE html> 

The preceding Code uses <style type = "text/css"> </style> to specify an internal style sheet.

Iii. External style sheets:

The external style sheet corresponds to the internal style representation, that is, an external style sheet file is introduced on the current page, rather than the style code uninstalling the current page.

<link href="css/style.css" rel="stylesheet" type="text/css" />

Original address: http://www.51texiao.cn/HTML5jiaocheng/2015/0613/4140.html

The original address is: http://www.softwhy.com/

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.