473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HTML Standards Question

Does anyone out there know why I should care whether a <span> is nested in a
<p> or vice versa? What is the bennafit of adhering to this standard? It
seems to me that regardless of which way you write it, the page will render
the same, sans errors, in any browser. All responces will be greatly
appreciated.

~Jason Gogela
Nov 19 '05 #1
9 1531
Hi Jason,

Believe it or not standards do matter. If you adhere to standards, your
pages will look the same across all browsers. When you "bend the rules", the
browser has to make a decision of how to interpret your HTML and there is no
guarantee the browsers will decide the same way. This particular standard
may not seem important to you, but if you get in the habit of obeying all
standards, it will save you headaches down the road. If you break standards
you are going to end up with tons of work having to be redone because some
client will tell you that your app doesn't run in the latest version of some
obscure browser. Obey them all and theoretically, you won't have any issues
(or at least a lot less). I could go on and on, but there are two big
reasons why standards are good. First off, XHTML is beautiful. When you
want to manipulate a page with XSL and morph it into something different on
the fly, you'll be glad your HTML is XML (and well formed). Second off, I
have a handheld. It has IE--not some WAP crap, but Pocket IE. It is a
pretty cool browser, I can go to any "normal" web page, but it looks a heck
of a lot better if it was standards compliant (and it loads a LOT quicker).
The world's changing and we don't just have to program for IE and FireFox on
Windows anymore, the next visitor to your page could be someone on a phone!

Oh, so the answer to your question is kind of like the old "cause I'm your
father and I said so", if it is a standard the w3c made it up for a reason,
so do it. Also, a SPAN is an inline element and a P is a block element. You
are not supposed to put block elements (like DIVs) in inline ones.

Tim

"Jason Gogela" wrote:
Does anyone out there know why I should care whether a <span> is nested in a
<p> or vice versa? What is the bennafit of adhering to this standard? It
seems to me that regardless of which way you write it, the page will render
the same, sans errors, in any browser. All responces will be greatly
appreciated.

~Jason Gogela

Nov 19 '05 #2
<< Believe it or not standards do matter.>>
Good start - nice and condescending.

<<if you get in the habit of obeying all standards,>>

Oh, come on. Believe it or not, the HTML standard is one of the biggest
piles of cr@p out there. You present the case that *all* standards can be
followed perfectly and consequently *should* be. Even if you were to do it
the browers all interpret the inadequate HTML standard on their according to
their creator's ideas of the way things should be.

<<If you adhere to standards, your pages will look the same across all
browsers>>
That is simply false: Have you ever seen the box model and all the problems
different browser implementations have created for us in their differing
implementations? If not, you can read up a bit at
http://www.quirksmode.org/css/box.html

Basically your direct implication that life will be good if we were to only
follow the standards carefully is bunk BECAUSE the browsers don't do it
themselves. You follow the standards and the browsers will screw things up
for you.

<< Obey them all and theoretically, you won't have any issues >>
Good grief man! Do you actually think that? What about all those depracated
tags (<FONT... ./> etc.)

<<"cause I'm your father and I said so" ----- if it is a standard the
w3c made it up for a reason, so do it>>
Enjoy your Coolaid man (appologies to Bill O'Reilly)

<< First off, XHTML is beautiful>>
Point well taken - but you are advocating following ALL standards (read your
OP if you don't think you said that).

"timkling" <ti******@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
Hi Jason,

Believe it or not standards do matter. If you adhere to standards, your
pages will look the same across all browsers. When you "bend the rules",
the
browser has to make a decision of how to interpret your HTML and there is
no
guarantee the browsers will decide the same way. This particular standard
may not seem important to you, but if you get in the habit of obeying all
standards, it will save you headaches down the road. If you break
standards
you are going to end up with tons of work having to be redone because some
client will tell you that your app doesn't run in the latest version of
some
obscure browser. Obey them all and theoretically, you won't have any
issues
(or at least a lot less). I could go on and on, but there are two big
reasons why standards are good. First off, XHTML is beautiful. When you
want to manipulate a page with XSL and morph it into something different
on
the fly, you'll be glad your HTML is XML (and well formed). Second off, I
have a handheld. It has IE--not some WAP crap, but Pocket IE. It is a
pretty cool browser, I can go to any "normal" web page, but it looks a
heck
of a lot better if it was standards compliant (and it loads a LOT
quicker).
The world's changing and we don't just have to program for IE and FireFox
on
Windows anymore, the next visitor to your page could be someone on a
phone!

Oh, so the answer to your question is kind of like the old "cause I'm your
father and I said so", if it is a standard the w3c made it up for a
reason,
so do it. Also, a SPAN is an inline element and a P is a block element.
You
are not supposed to put block elements (like DIVs) in inline ones.

Tim

"Jason Gogela" wrote:
Does anyone out there know why I should care whether a <span> is nested
in a
<p> or vice versa? What is the bennafit of adhering to this standard? It
seems to me that regardless of which way you write it, the page will
render
the same, sans errors, in any browser. All responces will be greatly
appreciated.

~Jason Gogela

Nov 19 '05 #3
Merk,
If only we could all be as ignorant as you... you probaably have one of
those websites that are advertising FireFox--getting $1 each user you
"convert", as long as they have the Google (DataMining) Toolbar...

Evidently, you've never heard of a DOCTYPE. The word DEPRECATED means don't
use it, we're phasing it out. I don't advocate following all standards, if
you use the DOCTYPE, you can tell the browser which standards you are
following. Finally, Kool-Aid is spelt with a "K", moron.

Wow. You're pretty uptight.
Tim
"Merk" wrote:
<< Believe it or not standards do matter.>>
Good start - nice and condescending.

<<if you get in the habit of obeying all standards,>>

Oh, come on. Believe it or not, the HTML standard is one of the biggest
piles of cr@p out there. You present the case that *all* standards can be
followed perfectly and consequently *should* be. Even if you were to do it
the browers all interpret the inadequate HTML standard on their according to
their creator's ideas of the way things should be.

<<If you adhere to standards, your pages will look the same across all
browsers>>
That is simply false: Have you ever seen the box model and all the problems
different browser implementations have created for us in their differing
implementations? If not, you can read up a bit at
http://www.quirksmode.org/css/box.html

Basically your direct implication that life will be good if we were to only
follow the standards carefully is bunk BECAUSE the browsers don't do it
themselves. You follow the standards and the browsers will screw things up
for you.

<< Obey them all and theoretically, you won't have any issues >>
Good grief man! Do you actually think that? What about all those depracated
tags (<FONT... ./> etc.)

<<"cause I'm your father and I said so" ----- if it is a standard the
w3c made it up for a reason, so do it>>
Enjoy your Coolaid man (appologies to Bill O'Reilly)

<< First off, XHTML is beautiful>>
Point well taken - but you are advocating following ALL standards (read your
OP if you don't think you said that).

"timkling" <ti******@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
Hi Jason,

Believe it or not standards do matter. If you adhere to standards, your
pages will look the same across all browsers. When you "bend the rules",
the
browser has to make a decision of how to interpret your HTML and there is
no
guarantee the browsers will decide the same way. This particular standard
may not seem important to you, but if you get in the habit of obeying all
standards, it will save you headaches down the road. If you break
standards
you are going to end up with tons of work having to be redone because some
client will tell you that your app doesn't run in the latest version of
some
obscure browser. Obey them all and theoretically, you won't have any
issues
(or at least a lot less). I could go on and on, but there are two big
reasons why standards are good. First off, XHTML is beautiful. When you
want to manipulate a page with XSL and morph it into something different
on
the fly, you'll be glad your HTML is XML (and well formed). Second off, I
have a handheld. It has IE--not some WAP crap, but Pocket IE. It is a
pretty cool browser, I can go to any "normal" web page, but it looks a
heck
of a lot better if it was standards compliant (and it loads a LOT
quicker).
The world's changing and we don't just have to program for IE and FireFox
on
Windows anymore, the next visitor to your page could be someone on a
phone!

Oh, so the answer to your question is kind of like the old "cause I'm your
father and I said so", if it is a standard the w3c made it up for a
reason,
so do it. Also, a SPAN is an inline element and a P is a block element.
You
are not supposed to put block elements (like DIVs) in inline ones.

Tim

"Jason Gogela" wrote:
Does anyone out there know why I should care whether a <span> is nested
in a
<p> or vice versa? What is the bennafit of adhering to this standard? It
seems to me that regardless of which way you write it, the page will
render
the same, sans errors, in any browser. All responces will be greatly
appreciated.

~Jason Gogela


Nov 19 '05 #4
<< Finally, Kool-Aid is spelt with a "K", moron >>

LOL

I guess you would be the expert on that!

Say "Hi" to Jim...
"timkling" <ti******@discussions.microsoft.com> wrote in message
news:CD**********************************@microsof t.com...
Merk,
If only we could all be as ignorant as you... you probaably have one of
those websites that are advertising FireFox--getting $1 each user you
"convert", as long as they have the Google (DataMining) Toolbar...

Evidently, you've never heard of a DOCTYPE. The word DEPRECATED means
don't
use it, we're phasing it out. I don't advocate following all standards,
if
you use the DOCTYPE, you can tell the browser which standards you are
following. Finally, Kool-Aid is spelt with a "K", moron.

Wow. You're pretty uptight.
Tim
"Merk" wrote:
<< Believe it or not standards do matter.>>
Good start - nice and condescending.

<<if you get in the habit of obeying all standards,>>

Oh, come on. Believe it or not, the HTML standard is one of the biggest
piles of cr@p out there. You present the case that *all* standards can be
followed perfectly and consequently *should* be. Even if you were to do
it
the browers all interpret the inadequate HTML standard on their according
to
their creator's ideas of the way things should be.

<<If you adhere to standards, your pages will look the same across all
browsers>>
That is simply false: Have you ever seen the box model and all the
problems
different browser implementations have created for us in their differing
implementations? If not, you can read up a bit at
http://www.quirksmode.org/css/box.html

Basically your direct implication that life will be good if we were to
only
follow the standards carefully is bunk BECAUSE the browsers don't do it
themselves. You follow the standards and the browsers will screw things
up
for you.

<< Obey them all and theoretically, you won't have any issues >>
Good grief man! Do you actually think that? What about all those
depracated
tags (<FONT... ./> etc.)

<<"cause I'm your father and I said so" ----- if it is a standard
the
w3c made it up for a reason, so do it>>
Enjoy your Coolaid man (appologies to Bill O'Reilly)

<< First off, XHTML is beautiful>>
Point well taken - but you are advocating following ALL standards (read
your
OP if you don't think you said that).

"timkling" <ti******@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
> Hi Jason,
>
> Believe it or not standards do matter. If you adhere to standards,
> your
> pages will look the same across all browsers. When you "bend the
> rules",
> the
> browser has to make a decision of how to interpret your HTML and there
> is
> no
> guarantee the browsers will decide the same way. This particular
> standard
> may not seem important to you, but if you get in the habit of obeying
> all
> standards, it will save you headaches down the road. If you break
> standards
> you are going to end up with tons of work having to be redone because
> some
> client will tell you that your app doesn't run in the latest version of
> some
> obscure browser. Obey them all and theoretically, you won't have any
> issues
> (or at least a lot less). I could go on and on, but there are two big
> reasons why standards are good. First off, XHTML is beautiful. When
> you
> want to manipulate a page with XSL and morph it into something
> different
> on
> the fly, you'll be glad your HTML is XML (and well formed). Second
> off, I
> have a handheld. It has IE--not some WAP crap, but Pocket IE. It is a
> pretty cool browser, I can go to any "normal" web page, but it looks a
> heck
> of a lot better if it was standards compliant (and it loads a LOT
> quicker).
> The world's changing and we don't just have to program for IE and
> FireFox
> on
> Windows anymore, the next visitor to your page could be someone on a
> phone!
>
> Oh, so the answer to your question is kind of like the old "cause I'm
> your
> father and I said so", if it is a standard the w3c made it up for a
> reason,
> so do it. Also, a SPAN is an inline element and a P is a block
> element.
> You
> are not supposed to put block elements (like DIVs) in inline ones.
>
> Tim
>
> "Jason Gogela" wrote:
>
>> Does anyone out there know why I should care whether a <span> is
>> nested
>> in a
>> <p> or vice versa? What is the bennafit of adhering to this standard?
>> It
>> seems to me that regardless of which way you write it, the page will
>> render
>> the same, sans errors, in any browser. All responces will be greatly
>> appreciated.
>>
>> ~Jason Gogela
>>
>>
>>


Nov 19 '05 #5
re:
If only we could all be as ignorant as you.
moron
You're pretty uptight.
http://www.microsoft.com/communities...t/default.mspx

Please avoid personal attacks and slurs in your posts.

Let's keep this newsgroup on the technical level.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"timkling" <ti******@discussions.microsoft.com> wrote in message
news:CD**********************************@microsof t.com... Merk,
If only we could all be as ignorant as you... you probaably have one of
those websites that are advertising FireFox--getting $1 each user you
"convert", as long as they have the Google (DataMining) Toolbar...

Evidently, you've never heard of a DOCTYPE. The word DEPRECATED means don't
use it, we're phasing it out. I don't advocate following all standards, if
you use the DOCTYPE, you can tell the browser which standards you are
following. Finally, Kool-Aid is spelt with a "K", moron.

Wow. You're pretty uptight.
Tim
"Merk" wrote:
<< Believe it or not standards do matter.>>
Good start - nice and condescending.

<<if you get in the habit of obeying all standards,>>

Oh, come on. Believe it or not, the HTML standard is one of the biggest
piles of cr@p out there. You present the case that *all* standards can be
followed perfectly and consequently *should* be. Even if you were to do it
the browers all interpret the inadequate HTML standard on their according to
their creator's ideas of the way things should be.

<<If you adhere to standards, your pages will look the same across all
browsers>>
That is simply false: Have you ever seen the box model and all the problems
different browser implementations have created for us in their differing
implementations? If not, you can read up a bit at
http://www.quirksmode.org/css/box.html

Basically your direct implication that life will be good if we were to only
follow the standards carefully is bunk BECAUSE the browsers don't do it
themselves. You follow the standards and the browsers will screw things up
for you.

<< Obey them all and theoretically, you won't have any issues >>
Good grief man! Do you actually think that? What about all those depracated
tags (<FONT... ./> etc.)

<<"cause I'm your father and I said so" ----- if it is a standard the
w3c made it up for a reason, so do it>>
Enjoy your Coolaid man (appologies to Bill O'Reilly)

<< First off, XHTML is beautiful>>
Point well taken - but you are advocating following ALL standards (read your
OP if you don't think you said that).

"timkling" <ti******@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
> Hi Jason,
>
> Believe it or not standards do matter. If you adhere to standards, your
> pages will look the same across all browsers. When you "bend the rules",
> the
> browser has to make a decision of how to interpret your HTML and there is
> no
> guarantee the browsers will decide the same way. This particular standard
> may not seem important to you, but if you get in the habit of obeying all
> standards, it will save you headaches down the road. If you break
> standards
> you are going to end up with tons of work having to be redone because some
> client will tell you that your app doesn't run in the latest version of
> some
> obscure browser. Obey them all and theoretically, you won't have any
> issues
> (or at least a lot less). I could go on and on, but there are two big
> reasons why standards are good. First off, XHTML is beautiful. When you
> want to manipulate a page with XSL and morph it into something different
> on
> the fly, you'll be glad your HTML is XML (and well formed). Second off, I
> have a handheld. It has IE--not some WAP crap, but Pocket IE. It is a
> pretty cool browser, I can go to any "normal" web page, but it looks a
> heck
> of a lot better if it was standards compliant (and it loads a LOT
> quicker).
> The world's changing and we don't just have to program for IE and FireFox
> on
> Windows anymore, the next visitor to your page could be someone on a
> phone!
>
> Oh, so the answer to your question is kind of like the old "cause I'm your
> father and I said so", if it is a standard the w3c made it up for a
> reason,
> so do it. Also, a SPAN is an inline element and a P is a block element.
> You
> are not supposed to put block elements (like DIVs) in inline ones.
>
> Tim
>
> "Jason Gogela" wrote:
>
>> Does anyone out there know why I should care whether a <span> is nested
>> in a
>> <p> or vice versa? What is the bennafit of adhering to this standard? It
>> seems to me that regardless of which way you write it, the page will
>> render
>> the same, sans errors, in any browser. All responces will be greatly
>> appreciated.
>>
>> ~Jason Gogela
>>
>>
>>


Nov 19 '05 #6
Thanks Juan for that.
We don't need that here!!
Patrick

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:#S*************@TK2MSFTNGP11.phx.gbl...
re:
If only we could all be as ignorant as you.
moron
You're pretty uptight.


http://www.microsoft.com/communities...t/default.mspx

Please avoid personal attacks and slurs in your posts.

Let's keep this newsgroup on the technical level.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"timkling" <ti******@discussions.microsoft.com> wrote in message
news:CD**********************************@microsof t.com...
Merk,
If only we could all be as ignorant as you... you probaably have one of
those websites that are advertising FireFox--getting $1 each user you
"convert", as long as they have the Google (DataMining) Toolbar...

Evidently, you've never heard of a DOCTYPE. The word DEPRECATED means don't use it, we're phasing it out. I don't advocate following all standards, if you use the DOCTYPE, you can tell the browser which standards you are
following. Finally, Kool-Aid is spelt with a "K", moron.

Wow. You're pretty uptight.
Tim
"Merk" wrote:
<< Believe it or not standards do matter.>>
Good start - nice and condescending.

<<if you get in the habit of obeying all standards,>>

Oh, come on. Believe it or not, the HTML standard is one of the biggest
piles of cr@p out there. You present the case that *all* standards can be followed perfectly and consequently *should* be. Even if you were to do it the browers all interpret the inadequate HTML standard on their according to their creator's ideas of the way things should be.

<<If you adhere to standards, your pages will look the same across all
browsers>>
That is simply false: Have you ever seen the box model and all the problems different browser implementations have created for us in their differing implementations? If not, you can read up a bit at
http://www.quirksmode.org/css/box.html

Basically your direct implication that life will be good if we were to only follow the standards carefully is bunk BECAUSE the browsers don't do it
themselves. You follow the standards and the browsers will screw things up for you.

<< Obey them all and theoretically, you won't have any issues >>
Good grief man! Do you actually think that? What about all those depracated tags (<FONT... ./> etc.)

<<"cause I'm your father and I said so" ----- if it is a standard the w3c made it up for a reason, so do it>>
Enjoy your Coolaid man (appologies to Bill O'Reilly)

<< First off, XHTML is beautiful>>
Point well taken - but you are advocating following ALL standards (read your OP if you don't think you said that).

"timkling" <ti******@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
> Hi Jason,
>
> Believe it or not standards do matter. If you adhere to standards, your > pages will look the same across all browsers. When you "bend the rules", > the
> browser has to make a decision of how to interpret your HTML and there is > no
> guarantee the browsers will decide the same way. This particular standard > may not seem important to you, but if you get in the habit of obeying all > standards, it will save you headaches down the road. If you break
> standards
> you are going to end up with tons of work having to be redone because some > client will tell you that your app doesn't run in the latest version of > some
> obscure browser. Obey them all and theoretically, you won't have any
> issues
> (or at least a lot less). I could go on and on, but there are two big > reasons why standards are good. First off, XHTML is beautiful. When you > want to manipulate a page with XSL and morph it into something different > on
> the fly, you'll be glad your HTML is XML (and well formed). Second off, I > have a handheld. It has IE--not some WAP crap, but Pocket IE. It is a > pretty cool browser, I can go to any "normal" web page, but it looks a > heck
> of a lot better if it was standards compliant (and it loads a LOT
> quicker).
> The world's changing and we don't just have to program for IE and FireFox > on
> Windows anymore, the next visitor to your page could be someone on a
> phone!
>
> Oh, so the answer to your question is kind of like the old "cause I'm your > father and I said so", if it is a standard the w3c made it up for a
> reason,
> so do it. Also, a SPAN is an inline element and a P is a block element. > You
> are not supposed to put block elements (like DIVs) in inline ones.
>
> Tim
>
> "Jason Gogela" wrote:
>
>> Does anyone out there know why I should care whether a <span> is nested >> in a
>> <p> or vice versa? What is the bennafit of adhering to this standard? It >> seems to me that regardless of which way you write it, the page will
>> render
>> the same, sans errors, in any browser. All responces will be greatly
>> appreciated.
>>
>> ~Jason Gogela
>>
>>
>>


Nov 19 '05 #7
> Oh, come on. Believe it or not, the HTML standard is one of the biggest
piles of cr@p out there.
Incorrect. Standards are extremely important, for reasons that you
apparently do not realize or understand, and Tim apparently does not either.
Let me see if I can explain. I'll start with a bit of history.

Back when HTML was first developed, the WWW could probably have been
accurately dubbed the "Wild West Web." There were standards for the most
basic types of things, like network protocols, SMTP, NNTP, and HTTP, but
that was about it. HTML, which relies on the HTTP transport, is still an
HTTP message. The markup used, based on SGML (Standardized Graphics Markup
Language), was a brand-new invention, developed with very little
forethought. Nobody imagined how popular it would be, what it could
potentially be used for, or what could be done over the Internet. HTML was
simply a markup language which could be used to graphically format
heretofore plain text messages in static documents. It was a great idea that
was poorly thought-out.

It became *extremely* popular in a short period of time, and soon, everybody
and their brother (or sister) wanted to get online and surf. Now, all that
was necessary to view HTML documents was a piece of software that could read
and interpret HTML, and, due to its popularity, a whole slew of software
companies started writing browsers to interpret and display it.

The popularity of it quickly fueled the demand to be able to do more with
it. Humanity was not satisfied with static documents, and competition being
what it is (a fact of life), HTML began to be extended. Unfortunately, as I
mentioned earlier, it was not designed with extensibility on the scale that
was demanded in mind. New tags sprang into existence. Who developed them?
Why, the software companies that manufactured the browsers, of course. After
all, competition being what it is (a fact of life), every browser
manufacturer wanted their browser to be able to do more than every other
browser manufacturer's did. JavaScript reared its ugly head, and now HTML
could do all sorts of tricks. Again, who determined what the Document Object
Model (a brand new concept at the time) would be, and how JavaScript would
work with it? You guessed it: the browser manufacturers. And so began the
infamous "Browser Wars" of the late 1990's.

Those were bloody times indeed. Not only were the manufacturers competing
against each other with every available weapon at hand, including the U.S.
Federal Court System, but there was horrible collateral damage as well.
Users all over the globe were bewailing the fact that certain things didn't
work in their favorite browser. HTML developers were crying out in pain over
having to study all sorts of documentation in order to make their web pages
work in all browsers (at least the most popular ones). Their clients were
wailing, and asking *why* the web sites they paid good money for looked so
much different in different browsers, and of course couldn't understand the
technical reasons given them by their contractors. And all the while,
competition being what it is (a fact of life), new technologies were
proliferating like rabbits; ASP, PHP, Cold Fusion, CSS, ActiveX, Shockwave,
Java Applets, the list is too long and frightful to write.

Meanwhile, a consortium of professionals, who realized that if the situation
got much worse, the "Powers That Be" would start to meddle in the affairs of
the Internet, decided to work out some standards, which would level the
playing field somewhat, and provide some semblance of sanity for all those
poor AOL users and Couch Potatoes who had enough trouble filtering all their
SPAM and cleaning out all the viruses they caught from their flirtations
with porn sites and other less-reputable districts of the WWW. Nobody wanted
any "Imperial Interference" from the "Powers That Be" to destroy what was
arguably a really good thing, in the way that only the "Powers That Be" are
capable of.

And so, these Standards organizations were formed, in a truly egalitarian
spirit. Anyone could participate. Everyone would agree to leave their
lawsuits at the door. And the Five Families of the Internet came together
and formed a "Cosa Nostra" for the WWW.

Fast forward to the present.

We are now in a "transitional phase" as a result of all this. The Five
Families have agreed in principle to adhere to these standards, for the good
of everyone. After all, there are plenty of other ways to compete, without
making all the soccer moms bawl their eyes out, and having to make a
plethora of lawyers wealthy instead of spending our money on new
technological toys to play with.

But these things take time. In fact, the invention of XML, and all of its
derivatives, has led to some really promising possibilities. XML is
self-describing, extensible, and simple. The permutations of it are complex
and infinite, but the language itself is a thing of simple, but strict
beauty. It is cross-platform compatible, since text is text (at least since
Unicode, another *gasp* standard, came out). Eventually, HTML will quietly
fade away, along with all of our memories of the browser wars, and all that
brou-ha-ha.

In the meantime, though, we still have some issues to deal with. But we may
remain confident in the knowledge that things are getting better. As a web
application developer, I can say that this is truly a *good* thing!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Complex things are made up of
Lots of simple things.
"Merk" <A@B.COM> wrote in message
news:OY**************@tk2msftngp13.phx.gbl... << Believe it or not standards do matter.>>
Good start - nice and condescending.

<<if you get in the habit of obeying all standards,>>

Oh, come on. Believe it or not, the HTML standard is one of the biggest
piles of cr@p out there. You present the case that *all* standards can be
followed perfectly and consequently *should* be. Even if you were to do it
the browers all interpret the inadequate HTML standard on their according
to their creator's ideas of the way things should be.

<<If you adhere to standards, your pages will look the same across all
browsers>>
That is simply false: Have you ever seen the box model and all the
problems different browser implementations have created for us in their
differing implementations? If not, you can read up a bit at
http://www.quirksmode.org/css/box.html

Basically your direct implication that life will be good if we were to
only follow the standards carefully is bunk BECAUSE the browsers don't do
it themselves. You follow the standards and the browsers will screw things
up for you.

<< Obey them all and theoretically, you won't have any issues >>
Good grief man! Do you actually think that? What about all those
depracated tags (<FONT... ./> etc.)

<<"cause I'm your father and I said so" ----- if it is a standard the
w3c made it up for a reason, so do it>>
Enjoy your Coolaid man (appologies to Bill O'Reilly)

<< First off, XHTML is beautiful>>
Point well taken - but you are advocating following ALL standards (read
your OP if you don't think you said that).

"timkling" <ti******@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
Hi Jason,

Believe it or not standards do matter. If you adhere to standards, your
pages will look the same across all browsers. When you "bend the rules",
the
browser has to make a decision of how to interpret your HTML and there is
no
guarantee the browsers will decide the same way. This particular
standard
may not seem important to you, but if you get in the habit of obeying all
standards, it will save you headaches down the road. If you break
standards
you are going to end up with tons of work having to be redone because
some
client will tell you that your app doesn't run in the latest version of
some
obscure browser. Obey them all and theoretically, you won't have any
issues
(or at least a lot less). I could go on and on, but there are two big
reasons why standards are good. First off, XHTML is beautiful. When you
want to manipulate a page with XSL and morph it into something different
on
the fly, you'll be glad your HTML is XML (and well formed). Second off,
I
have a handheld. It has IE--not some WAP crap, but Pocket IE. It is a
pretty cool browser, I can go to any "normal" web page, but it looks a
heck
of a lot better if it was standards compliant (and it loads a LOT
quicker).
The world's changing and we don't just have to program for IE and FireFox
on
Windows anymore, the next visitor to your page could be someone on a
phone!

Oh, so the answer to your question is kind of like the old "cause I'm
your
father and I said so", if it is a standard the w3c made it up for a
reason,
so do it. Also, a SPAN is an inline element and a P is a block element.
You
are not supposed to put block elements (like DIVs) in inline ones.

Tim

"Jason Gogela" wrote:
Does anyone out there know why I should care whether a <span> is nested
in a
<p> or vice versa? What is the bennafit of adhering to this standard?
It
seems to me that regardless of which way you write it, the page will
render
the same, sans errors, in any browser. All responces will be greatly
appreciated.

~Jason Gogela


Nov 19 '05 #8
Hi Jason,

As was mentioned in passing by another respondent, a <span> tag is an inline
tag, and a <p> tag is a block tag. If you put a <p> tag inside a <span> tag,
I don't know how different browsers would handle it, as a block tag is in a
line by itself by definition, and an inline tag is "in line" with the tags
that surround it, also by definition.

Perhaps it might look the same in whatever browser you're using, and for all
I know all different browsers may handle this error in the same way
(whatever that is). But what if you need to do something with the style of
either one? What if you want to do some JavaScript magic with either one?
And this is dynamic HTML we're talking about here (we are talking about
ASP.Net here, right?). How is this going to affect the output of your app?

A browser is software. Good software handles exceptions gracefully. But how
exceptions in markup are handled is largely dependent upon the software that
handles them. Browsers expect certain symbols, and they expect those symbols
to adhere to a set of rules. When those symbols break the rules, all bets
are off.

So, why should you care whether a <span> is nested in a <p> or vice versa?
Well, how difficult do you want your life to be? How much do you care how
your HTML is going to look in different browsers? If your client complains
after you release your software to them (we are talking about ASP.Net here,
right?), are you willing to slog through all your code to find the causes of
the badly-formed HTML in your output? Or would you prefer to do it right the
first time, and only have to deal with a minimal set of problems?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Complex things are made up of
Lots of simple things.

"Jason Gogela" <wh******@gogela.com> wrote in message
news:eu**************@TK2MSFTNGP10.phx.gbl...
Does anyone out there know why I should care whether a <span> is nested in
a <p> or vice versa? What is the bennafit of adhering to this standard?
It seems to me that regardless of which way you write it, the page will
render the same, sans errors, in any browser. All responces will be
greatly appreciated.

~Jason Gogela

Nov 19 '05 #9
On Thu, 10 Nov 2005 18:48:19 -0700, Jason Gogela wrote:
Does anyone out there know why I should care whether a <span> is nested in a
<p> or vice versa? What is the bennafit of adhering to this standard? It
seems to me that regardless of which way you write it, the page will render
the same, sans errors, in any browser. All responces will be greatly
appreciated.

~Jason Gogela


The easiest answer is that browsers are virtually guaranteed to follow the
standards in the future, while quirky behavior may disappear. (Please, no
jokes about IE standards support, MS is making great efforts to follow
standards lately and should be commended).

The standard defines the way the browser should interpret the html/css.
There is no guarantee that browsers will continue to work with malformed
code.
Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
71
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's...
195
by: Torbjørn Pettersen | last post by:
As you might have noticed I'm trying to clean up my web site's HTML code. The way I do it is simply more or less redoing to complete site, testing it on a web server I have set up on my local...
81
by: sinister | last post by:
I wanted to spiff up my overly spartan homepage, and started using some CSS templates I found on a couple of weblogs. It looks fine in my browser (IE 6.0), but it doesn't print right. I tested...
7
by: Kersh | last post by:
I'm trying to implement XHTML standards in my ASP.NET web pages but whenever I use web controls I get problems because of the very strict nature of W3C XHTML (transitional version is picky but...
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
41
by: deko | last post by:
A web page can be created using either strict or transitional HTML. The DOCTYPE for strict is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> And...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.