SitePoint Sponsor

User Tag List

Page 3 of 3 FirstFirst 123
Results 51 to 61 of 61

Thread: What is XML?

  1. #51
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ARGH! No one seems to get it other than Nate ("jumpthru")...! They have decided to count "<br />" as both an opening and closing tag because it's compatible with older browsers...why not just tell XML That "<br>" is an opening AND closing tag? That way it's compatible, and people don't have to change the habits they're set in.

  2. #52
    SitePoint Wizard jumpthru's Avatar
    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    1,008
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by TWTCommish
    ARGH! No one seems to get it other than Nate ("jumpthru")...! They have decided to count "<br />" as both an opening and closing tag because it's compatible with older browsers...why not just tell XML That "<br>" is an opening AND closing tag? That way it's compatible, and people don't have to change the habits they're set in.
    Okay, I know excactly what your saying...this is very frusterating.

    I think its time we just invent our own programming launguage...

  3. #53
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Tags that require closing tags in XHTML.

    • <area />
    • <base />
    • <basefont />
    • <br />
    • <col />
    • <frame /> (Not available in the default DTD)
    • <hr />
    • <img /> (Not Available in Strict DTD)
    • <input />
    • <isindex /> (Not Available in Strict DTD)
    • <link />
    • <meta />
    • <param />
    • <li />


    This syntax is universal to all tags though. Say you wanted and empty table cell. Today you would write <TD>&nbsp;</td> to acheive this. In an XHTML browser you would simply have to write <td /> to acheive the same effect.
    Wayne Luke
    ------------


  4. #54
    SitePoint Zealot Website Rob's Avatar
    Join Date
    Aug 2000
    Location
    Alberta, Canada
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good list there Wayne. With regard to last one, it will not validate in XHTML 1.0 Transitional using <li /> and the closing tag <li> </li> must be used. Up till now, it has been optional to use </li> or not use it, but no longer when coding in XHTML or XML.

  5. #55
    SitePoint Wizard jumpthru's Avatar
    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    1,008
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, it makes more since now...much more.

    Why is <base> and <basefout> different tags? Shouldn't it just be <base> and then font can be an attribute in it...

  6. #56
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by jumpthru
    Okay, it makes more since now...much more.

    Why is <base> and <basefout> different tags? Shouldn't it just be <base> and then font can be an attribute in it...
    <base> refers to the base URL of the links in the file.

    <basefont> sets the font attributes of the file.
    Wayne Luke
    ------------


  7. #57
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Website Rob
    Good list there Wayne. With regard to last one, it will not validate in XHTML 1.0 Transitional using <li /> and the closing tag <li> </li> must be used. Up till now, it has been optional to use </li> or not use it, but no longer when coding in XHTML or XML.
    I always try to close my list tags. Always just seemed right before. I can tell that bulletin boards such a vBulletin are going to need a lot of work to become XHTML compliant.
    Wayne Luke
    ------------


  8. #58
    SitePoint Zealot Website Rob's Avatar
    Join Date
    Aug 2000
    Location
    Alberta, Canada
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know for me it was tough getting into the habit of closing my paragraph tags. The <p> was confusing from the start as some Browsers used it to start a paragraph and some used it to show the "ending" of a paragraph.

    This is why with XHTML, you can use <p /> and it will validate, or use the <p> </p> which is also correct. Started using the first one then decided "Ahh, what the heck!" and got myself into the habit of using the second type.

    I figure the faster I get into the habit of closing all tags, the easier XML will be. XHMTL coding is already second nature now although I have to admit, my HTML Editor was a big help in that.

  9. #59
    SitePoint Wizard jumpthru's Avatar
    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    1,008
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by W. Luke
    Originally posted by jumpthru
    Okay, it makes more since now...much more.

    Why is <base> and <basefout> different tags? Shouldn't it just be <base> and then font can be an attribute in it...
    <base> refers to the base URL of the links in the file.

    <basefont> sets the font attributes of the file.
    Yea, but I think it should just be <base url="bla" font="bla">

    Then you can add other attributes such as color or whatever else as the launguage progrssives.

    I never even knew you could close <p> tags and whenever my html editor added it, i would remove them cause i thougt it was wrong. Now I make sure they are there.

  10. #60
    ComDude CryingWolf's Avatar
    Join Date
    Dec 2000
    Location
    I don't know the cat drug it in!!!
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by TWTCommish
    ARGH! No one seems to get it other than Nate ("jumpthru")...! They have decided to count "<br />" as both an opening and closing tag because it's compatible with older browsers...why not just tell XML That "<br>" is an opening AND closing tag? That way it's compatible, and people don't have to change the habits they're set in.
    That would be breaking the xml rule of a close for every open tag Yeah it can be frustrating but understandable...



    <brain on html> <brain on xml />
    body { background:#000000; color:#000000 }
    HEY, WHO TURNED OUT THE LIGHTS?!?
    Easy come easy go!!!
    CryingWolf

  11. #61
    ComDude CryingWolf's Avatar
    Join Date
    Dec 2000
    Location
    I don't know the cat drug it in!!!
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by jumpthru
    I think its time we just invent our own programming launguage... [/B]
    I think this is what gets us in trouble to begin with,,, But I am with ya all the way...
    body { background:#000000; color:#000000 }
    HEY, WHO TURNED OUT THE LIGHTS?!?
    Easy come easy go!!!
    CryingWolf


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
  •