Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 romping around the Monastery: (2)
As of 2024-06-15 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.