A Brief Note about Cascading Style SheetsOne: Inline style:<p style="color:red">This line has been styled red.</p> This line is black. This line has been styled red. This line is black.Two: Style tags in head of document<head> <style type = "text/css"> p { color: red } </style> </head> Three: Linking to an external style sheetFirst create a style sheet file
The file "style.css"
p { color: red } In your content file, create a link to this style sheet file:
<head>
<link rel=stylesheet href="style.css" type="text/css" /> </head> Your HTML browser will color text inside paragraph tags as red. |