Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
...you forgot to mention that these html errors are pretty much irrelevant since they don't interfere with rendering the document in a web browser, where most people will be using them.

When Netscape (and later Microsoft) decided that their browsers were going to be lenient on pages that did not contain valid HTML, I wonder if they realised what a huge can of worms they were opening. The vast majority of the web is now made up of badly constructed pages of invalid HTML.

When taken to task on this, the author's generally argue my that same way as you have, "but it works in both (sic) browsers" or "I'm not interested in the minority who use 'non-standard' browsers". Leaving aside the fact that there aren't just two browsers (and that there are many different versions of even the major two) and also the fact that there's no way that Netscape or IE can be described as 'standard' with any meaningful use of the term - there are two major flaws in this argument:

  • In my experience, it's just as easy to create standard HTML as it is to create non-standard HTML. This is particularly true if you're using something like CGI.pm to create your HTML.
  • Maybe now, most of your visitors are coming from Win32 PCs using IE5 or Netscape 4.x, but this situation is changing fast. The number of people surfing from Linux boxes is increasing all the time - and they have a much wider range of browsers to choose from. Also, what about the growing numbers of people surfing the web using PDAs or even WAP phones.

There's really no good reason not to produce valid HTML (or, even better, XHTML) and it will make your site far more accessible and flexible.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me


In reply to Re: Re: Re: Merlyn Technique Viewer by davorg
in thread MTV by epoptai

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2024-04-24 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found