XHTML Standards

website support and requests
User avatar
smurphster
Advanced Member
Posts: 149
Joined: Fri Jan 03, 2003 5:57 pm
Location: Wisconsin, USA
Contact:

Postby smurphster » Mon Oct 06, 2003 7:26 pm

i'm sure you've all heard of XHTML. not many people know what it is though so here's some insight:

XHTML is the creation of a few large internet corporations trying to make a standardized web programming language. what most people don't understand that it's still HTML! the only differences are a few tags have been removed and everything is more "strict". the goal of the language is to render your web site identically on every browser, every server, and every OS. while the vast majority of users are browsing with IE 6+ on a windows-based system, there are hundreds of other browsers and OS's that you don't want to exclude. so if you've got a site, i'd suggest taking a look in case you're having compatability issues or if you're considering to restart from scratch (i wouldn't hack through the code to convert it all if you're satisfied as it is). if you're starting a site, DON'T BOTHER WITH HTML!!! start with XHTML (HTML teaches you bad habbits).

some links:
<a href='http://www.w3c.org' target='_blank'>www.w3c.org</a> = lots of documentation on the project
<a href='http://validator.w3.org' target='_blank'>validator.w3.org</a> = scripts to check if your code is valid

mSparks
Advanced Member
Posts: 995
Joined: Fri Jan 03, 2003 2:54 pm
Location: North West UK
Contact:

Postby mSparks » Tue Oct 07, 2003 1:59 pm

hmmm, html teaches you bad habbits...
Im not sure how much I agree with this, its true thats there's a lot of html based code that doesn't work properly in all browsers, however, im pretty sure its still the backbone of all online interfaces.
I'd be interested to see which tags are nolonger used in xhtml, and also how these pages perform with the search engines.
the other thing is, I've learnt to be extremely warey of these 'new' standards, and also to pay more attention to which 'voids' they fill within a connected environment.
PHP and cgi already cover the vast majority of server administered data, and the only problem your ever likely to run into within cross platform code is that of the more advanced gfx features (which btw should be avoided anyway in favour of the potential partially sighted vistors to your site, and kept to non essential areas).
Client side code is also problematic from a users POV, firstly, it increases bandwidth usage, since more data is initially required to be sent to your visitor, and secondly its always going to require testing accross all the platforms for compatibility, if you stick to making computations and formatting on the server that is distrubuting the data, and mearly output the results to the client the overall testing and compatibility overhead is much smaller. Dispite the fact that network bandwidth is continually expanding, it should be rembered that it is still 'catching up' on the overall requirements, whereas processing power has always been ahead of any requirements.
© Mark 'mSparks' Parker 2010
<pubkey>AJXzWKeV59HaoUkmrCwP9f+kMr8aOIM
jMKy7ACsaRDCE/XuF0orj/jActtfWDMKjg/CixI7JP0Z6lbS99dc
86fxDIQOmfIU8BNYKPmlPA/uY3ZpT9/4iQY0XwKad5eJhDFW
cZ2Z4VUWJzlbuoX/QV4ihTVkr9JnyJb+fN9AOqXH9AQAB</pubkey>

User avatar
smurphster
Advanced Member
Posts: 149
Joined: Fri Jan 03, 2003 5:57 pm
Location: Wisconsin, USA
Contact:

Postby smurphster » Wed Oct 08, 2003 5:58 am

bad habits of html: meaning HTML is much more lenient with how a page is legally coded. there are ambiguous lines in HTML that different browsers will display differently. XHTML is more strict and removes the ambiguities.

basically XHTML is what you said... its browser and search engine friendly. formatting is limited to mostly CSS. the only other tags you get are <strong></strong> (bold) and <em></em> (italics). there's no longer an underline tag (but you can still do it w/ CSS). all tags and attributes are now required to be lower case and several tags are more strict. for instance you now need to do image tags like this:

Code: Select all

<img src="pic.jpg" alt="Picture of me" />

you need the "alt" attribute and the "/" at the end. same w/
and <hr />. that's shorthand though... you can also do <br></br> etc.

i'm just pulling some random examples... if you really want to see more, take a look at those sites.

i see what you're saying about compatability. the problem with HTML is that each browser kept coming out with their own proprietary tags or their own way of interpreting the language. one goal of XHTML is to restrict browsers to render the page identically. browsers will still have proprietary tags (nobody can really prevent that) but they won't be in the XHTML standard. so i guess what i'm trying to say is that XHTML is a programmer's safeguard from proprietary tags and variances.

User avatar
smurphster
Advanced Member
Posts: 149
Joined: Fri Jan 03, 2003 5:57 pm
Location: Wisconsin, USA
Contact:

Postby smurphster » Wed Oct 08, 2003 6:07 am

my instructor gave a good explanation of what is different about XHTML...

XHTML lets you define the structure of a document with no specific format. CSS lets you define the style/formatting.

whereas classical HTML does both...

just thought of another set of tags XHTML got rid of:
<center></center>
<left></left>
<right></right>
<font ...></font>


i'm tired... i'm probably not making sense anymore... g'night

mSparks
Advanced Member
Posts: 995
Joined: Fri Jan 03, 2003 2:54 pm
Location: North West UK
Contact:

Postby mSparks » Mon Apr 25, 2005 4:01 am

^bump^
© Mark 'mSparks' Parker 2010

<pubkey>AJXzWKeV59HaoUkmrCwP9f+kMr8aOIM
jMKy7ACsaRDCE/XuF0orj/jActtfWDMKjg/CixI7JP0Z6lbS99dc
86fxDIQOmfIU8BNYKPmlPA/uY3ZpT9/4iQY0XwKad5eJhDFW
cZ2Z4VUWJzlbuoX/QV4ihTVkr9JnyJb+fN9AOqXH9AQAB</pubkey>

User avatar
smurphster
Advanced Member
Posts: 149
Joined: Fri Jan 03, 2003 5:57 pm
Location: Wisconsin, USA
Contact:

Postby smurphster » Tue May 10, 2005 3:59 pm

you liked my post? awww :D


Return to “HTML/Websites”

Who is online

Users browsing this forum: No registered users and 1 guest