Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kitki83

macrumors 6502a
Original poster
Mar 31, 2004
804
0
Los Angeles
http://ciswebs.smc.edu/cis51/martin-navarro_rene/

I am having problem with Project 7-6 Fonts its showing random characters and page source shows the same, so I have to copy my code here.

I have someone can help me out what is wrong with code.
Here is the code of my file:

PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
 dir="ltr" lang="en">
<head>
  <title>PWD 7, Hands-On Project 6: Font and Text Properties</title>
  <meta http-equiv="content-type"
 content="text/html; charset=iso-8859-1" />
  <style type="text/css">
.text1 {font-family: verdana, arial, sans-serif;
text-indent: 2em; line-height: 1.5em;}
.text2 {font-family: "trebuchet MS," "times new roman," serif;
text-indent: 2em; line-height: 1.5em;}
.text3 {font-family: "gill sans," san-serif; font-style: italic; font-variant: normal; font-weight: normal; text-indent: 2em; text-align: center; line-height: 120%;}
  </style>
</head>
<body>
<!-- Make all of your paragraphs indent by 2.5 em, and have a line height of 1.75 em

Rene Martin Hands On Project 7-6 -->
<p></p>
<div class="text1">Set the font of this paragraph to
Verdana.Make Arial be the second choice font. Finally, have the last
font in the list be
sans-serif. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Donec magna est, interdum in, aliquam quis, commodo eget, ligula. In
fermentum pede sed sem. Etiam leo. Praesent mi. Nullam ante nisi,
ullamcorper vitae, ullamcorper ac, egestas non, lectus. Nullam
tincidunt. Integer quis felis. Sed sit amet tellus. Cras ultricies
euismod metus. Sed ipsum.</div>
<p>
</p>
<div class="text2">Set the font of this paragraph to
Trebuchet MS. Make Times New
Roman be the second choice font. Finally, have the last font in the
list be serif. Etiam convallis tellus eu risus. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut
et mi. Donec tempus sapien ut sapien. Nam quis nulla. Nullam quis felis
in sapien lobortis fermentum. Quisque nec leo. Pellentesque enim
tellus, volutpat vel, mollis et, consectetuer sed, tellus. Mauris enim
purus, vestibulum non, pulvinar eget, suscipit in, lacus. In eros eros,
lacinia sed, volutpat non, vulputate adipiscing, elit.</div>
<p></p>
<div class="text3">Aenean dapibus. Cum sociis natoque
penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Morbi libero est, aliquam a,
blandit vitae, porta sed, diam. Curabitur rutrum fermentum metus.
Mauris posuere congue metus. Donec congue. Quisque pretium viverra dui.
Nullam ante ante, iaculis eu, cursus vel, imperdiet sit amet, nunc.
Nulla posuere lobortis lacus. Nam leo. Praesent vel ante. Integer odio.
Nullam vel sapien ac tellus ornare pellentesque. Donec viverra.
Praesent nec quam sit amet felis tincidunt convallis. In purus tellus,
tincidunt quis, viverra sit amet, porttitor sed, eros. Maecenas elit
est, ornare non, posuere eu, ornare eget, eros.</div>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
 src="http://www.w3.org/Icons/valid-xhtml10"
 alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a></p>
</body>
</html>
 
Fixed it, the problem was like opening a zip file in notepad. I typo on the style declaration on text3 and I guess that what caused the problem.

Well thanks for the help, but I got it done before deadline.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.