HTML5 APPLICATIONS DEVELOPMENT MANUAL

(lu) #1

<!DOCTYPE html>




Page title
type="text/css">


This is a header


This is a paragraph


This is a paragraph




In the .css file we have all three selectors.


h1 {
color: red;
font-family: sans-serif;
text-align: left;
}
.happy {
font-size: 14px;
color: blue;
}
#para1 {
background-color: green;
}


The index.htmlfile in a Web browser will look like the below picture:

CSS Comments

Free download pdf