HTML and CSS Reference
In-Depth Information
Of course, unless the style is bound into a document related to the defined rules, nothing
will be seen, so a full example is presented here, with a rendering shown in Figure 4-7:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Linked Styles </title>
<link rel="stylesheet" href="sitestyle.css" type="text/css" >
</head>
<body>
<div id="page">
<h1> HTML with Linked Style </h1>
<p> Cascading Style Sheets 2.1 as defined by the
<a href="http://www.w3.org"> W3C </a> provides
powerful page layout facilities. The technology
depends on correct markup so make sure
you get that right too! </p>
</div>
</body>
</html>
O NLINE http://htmlref.com/ch4/linkedstyle.html
CSS is, at least theoretically, not the only style technology we could use, though as it
stands, by default, most browsers assume that CSS is being used. We set type to be specific
but that may get a bit redundant. The HTML specification suggests you can set a default
F IGURE 4-7 Linked style example rendering
 
Search WWH ::




Custom Search