SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    where to learn it (all)?

    i'm having problems with strict html 4.01, mainly because (i guess) i dont know what is or is not allowed: blockquote can have a <p> inside, and so on
    so my Q is: where can i grab all that info?
    (i cant find my way out in w3c )
    TiA

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Best way is experience, just spend time doing it and using every element and you'll understand how they work. For some info on what each element is, have a look at this: http://www.htmldog.com/reference/htmltags/

  3. #3
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    isnt there a better way then trial & error?

  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    There is no better way then T&E! Think they invented computers without making a lot of mistakes first? Trying something and if it doesn't work try something else and so on best way to learn.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Best thing is to decide to embark on a small project, something that is harder than you can achieve with what you currently know. Maybe a new layout for a blog or something. Then go about doing it. For the sake of argument, let's say you get stuck with a validation error to do with a form. It says something about a missing div or p. Look it up on google or here and you'll find out forms in strict DTDs must have block-level elements in them before the input elements, much like blockquotes.

    And so on. And if you get stuck, post your question here.

  6. #6
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Read the DTD. It's not 100&#37; accurate but it gives you the general idea. For completeness you'd have to read the spec prose.
    Simon Pieters

  7. #7
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As Simon says, read the HTML 4.01 DTD. It's not that hard, once you learn a few basic rules. The use of internal entities causes a lot of flipping back and forth, though.

    As Simon also pointed out, you'll have to read the text in the specification to get some of the finer points. That's because a DTD cannot express all types of rules, especially when it comes to attribute values. Like the fact that an ID attribute must start with a letter.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •