Angirasa Acharya (aka Jim....) (angiasaa) wrote,
Angirasa Acharya (aka Jim....)
angiasaa

  • Mood:

Rant:  What were they thinking!?

XHTML 1.1 as defined by the w3c is a serious pita!

Initially, all you had to do to center everything on an HTML page was to use the <center> tag.

eg:
<html>
<head>
        <title>some title</title>
</head>
<body>
        <center>
                blah blah!
        </center>
</body>
</html>


With XHTML 1.1, the <center> tag has gone completely!  so you'd have to use the <div> tag or a table or something else to center your content!

eg:
<html>
<head>
        <title>some title</title>
<style type="text/css">
<!--
.container
{
        width:100%;
}
-->
</style>
</head>

<body>
        <div class="container" align="center">
                blah blah!
        </div>
</body>
</html>


At the end of the day, both pages show up looking almost exactly the same.  Whoever decided that the <center> tag should be eliminated as a redundancy was mentally deranged!  What's the point in making a whole container div when you can make do with so much less!  Uggh!

Apparently, the <b> tag is illegal too, and if you wanna use <br>, you gotta close the tag like so <br/>!!  we're moving backward in time or trying to make some headway in a positive direction?  Duh!

//end of rant (for the time being NEway.  :o)
//update: I've found that javascript is able to alter style tag properties for div backgrounds in firefox, while the style 'background' attribute for div's does'nt work! Strange!!
Tags: guywise, rant, website
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 10 comments