What is CSS

Source: Internet
Author: User
Tags html tags requires
CSS is the English cascading style sheets abbreviation, Chinese translation for "cascading style sheet", referred to as style sheet, it is a new technology to make Web pages.

What basics should you master before you learn CSS?

1. What is a Web page and what is a Hypertext language (HTML).

2. Use commonly used Web page editors such as Dreamweaver.

Two. Understanding CSS

The Web page design originally used HTML tags to define page documents and formats, such as title

Note: CSS requires browser support from IE4 (Internet Explorer 4.0) and NC4 (Netscape 4.0), and some effects require a newer version of browser support.

Three. How to use CSS

If you are using a version of Dreamweaver MX 2004, when defining characters such as font, color, size, and so on, look at the code and you will find that part of the head area:

<style type="text/css">
<!--
.STYLE2 {
   font-size: 16pt;
   font-family: "Courier New", Courier, monospace;
   font-weight: bold;
   color: #FF3300;
}
-->
</style>

So congratulations, you've used the CSS design page.

So in addition to this method of invoking CSS, is there anything else? The answer is "of course there is", the following is a system introduction

Mark Notation (in-line):

If you have only one HTML tag that requires a style, you can add a property to the tag

Style= ""

With individual revision styles.

Page Inline method:

<style type="text/css"> <!-- body { background : white ; color : black ; } --> </style>

External Invocation Method:<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />

Call style sheet with double table method

<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<style type="text/css" media="all">@import url( css/style.css );</style>

Why do you write it two times?

In fact, in general, it is sufficient to call (the first sentence) by the method of outreach. I use two-table calls here as an example. The @import command is used to enter the style sheet. The "@import" command is not valid in Netscape version 4.0 browser. That is, when you want some effect to be hidden in Netscape 4.0 browsers, in more than 4.0 or other browsers, you can call the stylesheet using the "@import" command method.

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.