Although the development of java web do have half a year, but on some sites use a little css and js or do not know much about, especially the css, just compare the recent air, css and js intends to study the system.

Style three way call
1. <style Type="text/css">
h1 (font-size: 16pt; color: red)
h2 (font-size: 10pt; color: green)
</ style>

2. <h1> Hello </ h>
<h2> hello </ h>

3. <link Rel=stylesheet href="03.css" type="text/css"> </ link>

The third general approach we have adopted

Emergence of a number of style when the time taken to the nearest principle

css selector
p.code (font-size: 20pt; color: red)
p.comment (font-size: 10pt; color: green)
<pre> </ pre> is to retain the format of the middle

Class selectors: class.
ID selectors: id #
. code (font-size: 20pt; color: red) is the code of any class in this format at all times
# code (font-size: 20pt; color: red) is the id of any city code when using this format

h1, p (font-size: 20pt; color: red) can be specified with a number of
pa (font-size: 20pt; color: red) p inside of a