Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Wiki-Style syntax for posting

by GrandFather (Saint)
on Oct 15, 2008 at 02:07 UTC ( [id://717130]=note: print w/replies, xml ) Need Help??


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

br tags are not really bad as such. It's just that they tend to get used by noobs to "format" text to a "nice" length. For example, a noob might "format" this paragraph by inserting judicious br tags and end up with something like this:

br tags are not really bad as such. It's just that they tend to get
used by noobs to "format" text to a "nice" length. For example, a noob
might "format" this paragraph by inserting judicious br tags and end up
with something like this.

Now try changing your browser's width (especially make it narrow) and see what happens to the two blocks of text.

A minor issue is that often </br> is used instead of <br/>. </br> is just plain wrong.


Perl reduces RSI - it saves typing

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

    </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.

      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://717130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-19 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found