Help me figure out my HTML problems

Discussion in 'Web Design and Development' started by kitki83, May 13, 2007.

  1. kitki83 macrumors 6502a

    Joined:
    Mar 31, 2004
    Location:
    Los Angeles
    #1
    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 7Hands-On Project 6Font and Text Properties</title>
      <
    meta http-equiv="content-type"
     
    content="text/html; charset=iso-8859-1" />
      <
    style type="text/css">
    .
    text1 {font-familyverdanaarialsans-serif;
    text-indent2emline-height1.5em;}
    .
    text2 {font-family"trebuchet MS," "times new roman," serif;
    text-indent2emline-height1.5em;}
    .
    text3 {font-family"gill sans," san-seriffont-styleitalicfont-variantnormalfont-weightnormaltext-indent2emtext-aligncenterline-height120%;}
      </
    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
    --->
    <
    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
    -serifLorem ipsum dolor sit ametconsectetuer adipiscing elit.
    Donec magna estinterdum inaliquam quiscommodo egetligulaIn
    fermentum pede sed sem
    Etiam leoPraesent miNullam ante nisi,
    ullamcorper vitaeullamcorper acegestas nonlectusNullam
    tincidunt
    Integer quis felisSed sit amet tellusCras 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 serifEtiam convallis tellus eu risusCum sociis natoque
    penatibus et magnis dis parturient montes
    nascetur ridiculus musUt
    et mi
    Donec tempus sapien ut sapienNam quis nullaNullam quis felis
    in sapien lobortis fermentum
    Quisque nec leoPellentesque enim
    tellus
    volutpat velmollis etconsectetuer sedtellusMauris enim
    purus
    vestibulum nonpulvinar egetsuscipit inlacusIn eros eros,
    lacinia sedvolutpat nonvulputate adipiscingelit.</div>
    <
    p></p>
    <
    div class="text3">Aenean dapibusCum sociis natoque
    penatibus et magnis dis
    parturient montes
    nascetur ridiculus musMorbi libero estaliquam a,
    blandit vitaeporta seddiamCurabitur rutrum fermentum metus.
    Mauris posuere congue metusDonec congueQuisque pretium viverra dui.
    Nullam ante anteiaculis eucursus velimperdiet sit ametnunc.
    Nulla posuere lobortis lacusNam leoPraesent vel anteInteger odio.
    Nullam vel sapien ac tellus ornare pellentesqueDonec viverra.
    Praesent nec quam sit amet felis tincidunt convallisIn purus tellus,
    tincidunt quisviverra sit ametporttitor sederosMaecenas elit
    est
    ornare nonposuere euornare egeteros.</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>
     
  2. elppa macrumors 68040

    elppa

    Joined:
    Nov 26, 2003
    #2
    Looks ok for me.

    Can you clarify random characters?
     
  3. kitki83 thread starter macrumors 6502a

    Joined:
    Mar 31, 2004
    Location:
    Los Angeles
    #3
    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.
     
  4. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #4
    Why do you have empty <p> tags and then put all the text in <div> tags...? :confused:
     
  5. kitki83 thread starter macrumors 6502a

    Joined:
    Mar 31, 2004
    Location:
    Los Angeles
    #5
    That was a Nvu thing, I had it clean but it took them out and did that. I tried changing and saving but it would do that.
     

Share This Page