Jump to content

xhtml


myncv

Recommended Posts

There aren't many large differences. Xhtml is extensible though, which means you can add new tags into it with different xml namespaces. An example of this is using xhtml+mathml together in web pages. Personally, I haven't figured out how to do it, but I'm told it's possible. :)You should use xhtml though. It's the future of html, and it's not very hard to deploy if you already write pages in html 4.01 strict.

Link to comment
Share on other sites

the biggest difference you will see are of two types:a.) stand alone tags now end with forward slash before the ending carroti.e. <br> is now <br />, <img src="xxx.jpg"> is now <img src="xxx.jpg" />b.) stand alone attributes are fully definedi.e <td nowrap> is now <td nowrap="nowrap">, <option value="xxx" selected> is now <option value="xxx" selected="selected">other things too, but those are the most visible (day to day) changes.

Link to comment
Share on other sites

whats the differance from html and xhtml....any huge changes ect.

Well tags have become much more strict. So <img src="thing.jpg"> should be <img src="thing.jpg" alt="" title="" height="200" width="300" /> for example.Also, XHTML is much more friendly with CSS, esp CSS2. So no more table-based designs (<table width="100%" height="100%" align="center" valign="middle"> is evil).Just that kinda thing. It's great when you learn how to use XHTML web standards, and after that you'll get this nice arrogant glow when you find horrible non-semantic, slow and inaccessiable code on a corporate website. :)
Link to comment
Share on other sites

Just that kinda thing. It's great when you learn how to use XHTML web standards, and after that you'll get this nice arrogant glow when you find horrible non-semantic, slow and inaccessiable code on a corporate website. :)

LOL! :)I know the feeling...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...