Jump to content
xisto Community
Sign in to follow this  
viplanet

Html Or Xhtml Which one do you prefer

Recommended Posts

I converted my site to XHTML 1.0 Transitional from html 4.01 a while back, it doesn't really make much difference yet as all browsers will still render html but the w3c do say that it is more of a future standard so eventually they will probably stop using html in favour of xhtml (feel free to correct me if any of this is wrong I'm not 100% sure about it). Anyway I found it was easier to code xhtml as it requires that the code be structured correctly which I thought not only help the parser that was reading the code it aslo makes it easier to find a spacific piece of code, so yeah purely as a developer it is worth transferring to xhtml. plus xhtml does sound alot sexier than html. Please note that alot of this comes from (a very poor) memory so if its wrong or I forgot anything really obvious please add/correct/point and laugh.

Share this post


Link to post
Share on other sites

HTML is and will be the standar code in web at least for the next five years, remember that exist more than 100 millions of web pages and the 80% is builded in html.xhtml is just html improved, the most important change is with html you organize all your page (structure and design), with xhtml you create the structure of your page and need a .css file for your design.In other words, the big difference is that you won?t use anymore the "FONT" tags.

Share this post


Link to post
Share on other sites

In other words, the big difference is that you won´t use anymore the "FONT"  tags.

The font tag actually became deprecated with HTML 4.0, so it's not just XHTML that it's no longer valid for.
I design all my pages with XHTML 1.0 Strict cos I like the rigour that it imposes on the code you create.

Share this post


Link to post
Share on other sites

The font tag actually became deprecated with HTML 4.0, so it's not just XHTML that it's no longer valid for.

I design all my pages with XHTML 1.0 Strict cos I like the rigour that it imposes on the code you create.

213603[/snapback]


Well, I think you are a programmer, anyway, with html & xhtml you have two equally powerful choices, depending on your needs and working environment you are likely to prefer one over the other.

 

If anyone don't have a preference today, my suggestion is to go for XHTML because it's the most recent suggestion from the W3C. Other than that, decide what available tools you have, and which HTML-flavor best suits your tools & taste.

Share this post


Link to post
Share on other sites

I converted my site to XHTML 1.0 Transitional from html 4.01 a while back, it doesn't really make much difference yet as all browsers will still render html but the w3c do say that it is more of a future standard so eventually they will probably stop using html in favour of xhtml (feel free to correct me if any of this is wrong I'm not 100% sure about it). Anyway I found it was easier to code xhtml as it requires that the code be structured correctly which I thought not only help the parser that was reading the code it aslo makes it easier to find a spacific piece of code, so yeah purely as a developer it is worth  transferring to xhtml. plus xhtml does sound alot sexier than html. Please note that alot of this comes from (a very poor) memory so if its wrong or I forgot anything really obvious please add/correct/point and laugh.

213432[/snapback]

Thank you for your view i'll transform ny site to XHTML from HTML.

But i will prefer HTML for its simplicity

thank you

Share this post


Link to post
Share on other sites

The main different between HTML and xHTML is the format.

xHTML can be used as an XML document. Therefore, I think you are no need to change the web to xHTML if your web site do not need any XML transformation.

 

I know that XML and XHTML have taken long straids.Which one do you prefer.

Is transferring my site to XHTML from HTML worthy

Comment your views

;)

213415[/snapback]

Share this post


Link to post
Share on other sites

I am still yet to be convinced about xhtml, I understand it is recommended by W3C, but with the differences in how browsers read code, there does not appear to be a standard. I know the idea is for xhtml to be a standard for all browsers to follow, but given the number of different browsers out there, I can't see that happening soon. So aside from trying to enforce a code standard, are there any other benefits of xhtml?Personally, I prefer html because already I try to structure my code in a logical format similar to xhtml, purely because I find it easier to read and work with. I also use CSS wherever possible because it gives more flexibility. But even there, different browsers will allow different attributes so there is no standard there either.While it would be really good if all browsers displayed the same code in the fashion so we don't have to worry about the tags and attributes we use, but I can't see that happening in a hurry.

Share this post


Link to post
Share on other sites

Im using and better prefer HTML because I know how to write codes with ity and it's pretty simple... about the xhtml once I tryed but it was too hard to understand (maybe only that thing I tryed)... dunno better like html ;)

Share this post


Link to post
Share on other sites

I prefer html, it is the standard...what more can a person say. Even thou XHTML is being used in places I have found many web editors that still only give HTML reference and dont even believe in the existance of XHTML.XHTML will catch on to every where but then again why?, I am perfectly happy adding HTML aspects to my PHP code, will I be adding XHTML code and will we have to learn new parts to a code...some new functions which just make ours lives harder; I think so..I am quite happy with my HTML and XHTML can stay in the shadows for a bit longer i think..

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.