Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: Wiki-Style syntax for posting

by ikegami (Patriarch)
on Oct 15, 2008 at 07:17 UTC ( [id://717145]=note: print w/replies, xml ) Need Help??


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

</br> is just plain wrong.

In HTML, it's "<br>".

In XHTML, it's "<br></br>" (with nothing in the middle) or the equivalent shortcut "<br/>".

So "</br>" is not "just plain wrong", only when used improperly.

Replies are listed 'Best First'.
Re^5: Wiki-Style syntax for posting
by SFLEX (Chaplain) on Oct 16, 2008 at 12:06 UTC
    Your just "plain wrong" about XHTML.
    The proper way to use that tag in XHTML is this way and only this way.
     <br />
    And here is a link you can learn from.
    http://www.w3schools.com/tags/tag_br.asp
    Spiel auf Hündinnen.
      No, he's right. Allow me to quote from W3C's XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition) specification, to be precise, section 4.6. Empty Elements:
      Empty elements must either have an end tag or the start tag must end with />. For instance, <br/> or <hr></hr>. See HTML Compatibility Guidelines for information on ways to ensure this is backward compatible with HTML 4 user agents.
      Now, it's true that in the same document, one of the appendices, C.2. Empty Elements recommends using <br />, but that's just a recommendation, empty elements with a open and end tag are allowed.
      A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found