CSS from this section we will discuss CSS (cascading Style Sheet).
Chinese is probably called sample paper. In our tutorial, we still call it
CSS is a little easier.
What is CSS and what is its function
Although CSS is in the Web page and HTML together. But it doesn't count as HTML. It's making
With the ability to extend HTML. Allows us to redefine the display of HTML elements
shown in the way. The properties that CSS can change are as follows
Font
Space between the text
List
Color
Background
Margin
Position
We will discuss each of these changes in the last seven sections. In this section
We offer you the basics of CSS.
Definition of CSS (rules)
Every definition of CSS has the following form
selector {property:value; property:value;}
Selector: The first is HTML tag, such as P, body, A, and so on.
The second is called Class, and the third is called ID. You know there are three of them here first.
We're going to talk about that later.
Property: The properties that are going to be modified, such as color
Value: The values given to the property, such as the color can be red
Take a look at one of the typical definitions below
A {color:red}
With this definition all the joins are turned red. In general, we take all the
The definition is all included in the STYLE element inside the head. Please test the following
Web page
<HTML>
<HEAD>
<STYLE>
A {color:red}
P {background-color:blue; Color:white}
</STYLE>
</HEAD>
<BODY>
<a href= "Http://www.nease.net/~haidian" > Dynamic Web Page production </A>
<P> have you noticed the color and background color of this passage? How about?</p>?
</BODY>
</HTML>
What do you think? It's a simple move. You just have to know all the elements that can be changed and
The nature of their flexibility to use the definition of CSS, you can make you
Web page to make a higher level. In the following section we will tell you about other
Two kinds of selector and some other basics.