HTML and CSS Reference
In-Depth Information
<_>
<_>
<body>
<h2>Trillium Media Design</h2>
<p> Our professional staff takes pride in its working
relationship with our clients by offering personalized services
that listen to their needs, develop their target areas, and
incorporate these items into a well presented Web site that works.
</p>
</body>
</html>
3. Find the Error. Why won't this page display properly in a browser?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Trillium Media Design</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
body { background-color: #000066;
color: #CCCCCC;
font-family: Arial,sans-serif;
font-size: 12px;
}
<style>
</head>
<body>
<h2>Trillium Media Design</h2>
<p> Our professional staff takes pride in its working
relationship with our clients by offering personalized services
that listen to their needs, develop their target areas, and
incorporate these items into a well presented Web site that works.
</p>
</body>
</html>
Hands-On Exercises
1. Write the XHTML for a paragraph that uses inline styles to configure the back-
ground color of red and the text color of white.
2. Write the XHTML and CSS code for an embedded style sheet that configures a
background color of #eaeaea and a text color of #000033.
3. Write the CSS code for an external style sheet that configures the text to be brown,
1.2em in size, and in Arial, Verdana, or a sans-serif font.
4. Write the XHTML and CSS code for an embedded style sheet that configures a
class called new , that is bold and italic.
 
Search WWH ::




Custom Search