English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm a complete novice trying to write some xhtml 1.0 transitional script, so I apologize for asking such a simple-minded question.

When trying to validate my page on w3c markup validator, I'm running into a error when making an unordered list. The script listed below passes validation - but I want it to display in the following font:



My question is where do I add this? Do I have to add the element to each and every

  • line? Or is there a way to just specify the font style once for the entire list? I am opting for the latter, but that is where I am running into trouble in the markup validator.

    Thank you for your help!

    Red

    Unordered List:

  • 2 answers

    This may be a little scary, but the best way is to use CSS. After Your and before your type this:


    If the size is too big or two small, change the number in front of "em" until it looks right.

    Now, change your

      tag so it reads like this:


        I don't have time to explain it in detail, but basically you are giving your list a class and using a CSS style sheet to define the font you want the list to be.

        You really should learn CSS - it is part of the XHTML recomendation. Its extremely simple - Yahoo! a tutorial for it. it is so handy - you will love it.

        2007-01-22 09:58:06 · answer #1 · answered by milan 4 · 0 0

    use of the font tag is deprecated in XHTML. Instead of using font you should look to apply styles globally through a Cascading Style Sheet or CSS.

    Try http://www.w3schools.com/css/default.asp

    2007-01-22 18:11:35 · answer #2 · answered by Klausy 2 · 0 1

    fedest.com, questions and answers