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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Linked Styles </title>
<link rel="stylesheet" href="sitestyle.css" type="text/css" >
<div id="page">
<h1> HTML with Linked Style </h1>
<p> Cascading Style Sheets 2.1 as defined by the
<a href=""> W3C </a> provides
powerful page layout facilities. The technology
depends on correct markup so make sure
you get that right too! </p>
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