Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^9: Wiki-Style syntax for posting

by SFLEX (Chaplain)
on Oct 16, 2008 at 15:03 UTC ( [id://717518]=note: print w/replies, xml ) Need Help??


in reply to Re^8: Wiki-Style syntax for posting
in thread Wiki-Style syntax for posting

Ok, the way I see it is true XHTML is what ever is going to validate under the Strictest Rules of XHTML.
So then i made up a little markup that can be ran at http://validator.w3.org/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w +3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xht +ml"> <head> <title>HTML BR TAG</title> </head> <body> <p>This is Good<br /></p> <p>This is wrong<br><br/></p> </body> </html>

Scroll down till you see "Validate by direct input" paste the markup above in it, select "Use Doctype XHTML 1.0 Strict", you can also check "Show Source" and "Clean up Markup with HTML Tidy" HTML tidy will show the right markup to use.

Spiel auf Hündinnen.

Replies are listed 'Best First'.
Re^10: Wiki-Style syntax for posting
by ikegami (Patriarch) on Oct 16, 2008 at 17:34 UTC

    Ok, the way I see it is true XHTML is what ever is going to validate under the Strictest Rules of XHTML.

    That's a fair meter.

    Now, if only you had tested what we were talking about.
    <p>This is wrong<br><br/></p>
    should be
    <p>This is wrong<br></br>...or not</p>

    Once you do that, you'll get "This document was successfully checked as XHTML 1.0 Strict!". So, both <br/> and <br></br> are accepted by w3c's XHTML validator.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://717518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2025-06-23 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.