You may all recognize me as the newbie that embarrasses himself regularly; well today is no different
.
Bought a book "Beginning CSS web development from novice to professional" by Simon Collison. Briefly looked over it. Now went to the first chapter. I'm having trouble creating my external style sheet. I have entered everything correctly (Checked about 4 times), For some reason the external style sheet will not format the other page.
Very confused and embarrassing considering 1st part of book. Surely they can't be entering wrong information in a book that I just paid £15 for!
Also how do you enter the # symbol. Obviously I could copy and paste but this will be very long winded as it's necessary to select colours.
Here is my CSS code which shows two errors on line 1 and line 10:
Here is the page it is linked to (external.html):
Help much appreciated.
Bought a book "Beginning CSS web development from novice to professional" by Simon Collison. Briefly looked over it. Now went to the first chapter. I'm having trouble creating my external style sheet. I have entered everything correctly (Checked about 4 times), For some reason the external style sheet will not format the other page.
Very confused and embarrassing considering 1st part of book. Surely they can't be entering wrong information in a book that I just paid £15 for!
Also how do you enter the # symbol. Obviously I could copy and paste but this will be very long winded as it's necessary to select colours.
Here is my CSS code which shows two errors on line 1 and line 10:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Applying CSS Mini-site</title>
<link rel="stylesheet" type="text/css" href="external.css" />
</head>
<body>
<h1> Applying CSS Templates</h1>
<p {color: #F00;}</p>
<p> Click an example below.</p>
<h2>Examples</h2>
<ul>
<li><a href="base.html"><Base template</a></li>
<li><a href="inline.html">Inline CSS template</a><</li>
<li><a href="embedded.html">Embedded CSS template</a></li>
<li><a href="external.html">External CSS template</a></li>
<li><a href="imported.html">Imported CSS template</a></li>
</ul>
</body>
</html>
Here is the page it is linked to (external.html):
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Applying CSS Mini-site</title>
</head>
<body>
<h1> Applying CSS Templates</h1>
<p> A mini-site containing several (x)HTML templates, each being
styled using a different method of CSS applictation.</p>
<p> Click an example below.</p>
<h2>Examples</h2>
<ul>
<li><a href="base.html">Base template</a></li>
<li><a href="inline.html">Inline CSS template</a><</li>
<li><a href="embedded.html">Embedded CSS template</a></li>
<li><a href="external.html">External CSS template</a></li>
<li><a href="imported.html">Imported CSS template</a></li>
</ul>
</body>
</html>
Help much appreciated.