Jump to content

Can I skip HTML?


Guest yusri

Recommended Posts

I am just starting to learn to be a web developer.I have read almost all of the tutorials regarding HTML and XHTML.But one confusion remains... since XHTML is the new recommended HTML by W3C then can I skip learning HTML then? Straight away learn XHTML... :) Is it possible? Your ideas really appreciated.

Link to comment
Share on other sites

well its not much in diffrence. this is just an exampelIn HTML some elements can be improperly nested within each other like this:

<b><i>This text is bold and italic</b></i>

In XHTML all elements must be properly nested within each other like this:

<b><i>This text is bold and italic</i></b>

XHTML must all be closed if you used tags like <br> then you have to change it to <br />here can you see what the diffrence are with more information *XHTML*with html the codes can be very messy like the exampel i copyd from the tutorials.xhtml makes sure that the code thouse not get nested within other codes and make it much easyer to read the code. and in that way save alittle time

Link to comment
Share on other sites

As Mimika says, there isn't much difference between them so shifting from one to the other isn't all that difficult. However learning HTML can teach you practices which are considered by XHTML to be bad. Since everything is shifting towards the XML way of thinking its probably not such a bad idea to start with XHTML so you don't have to unlearn those bad practices later. Obviously if you're going to be working with someone elses HTML you might need to learn what all the deprecated HTML tags do too so you can understand it, but better to work that way around I would say.

Link to comment
Share on other sites

Well thank you Mimika Pollux and Dale.Yes I did notice the syntax differences during tutorial readings. XHTML is more systematic for me.I'll go for XHTML straight away then. I am a newbie, want to start learning and I don't want to get involved with past HTML 'sins' :) Start fresh and clean.Thank you again.

Link to comment
Share on other sites

I started learning HTML, because at that time, XHTML was not all that known (I think... :) ). So sadly, I have a few bad habbits that need to be changed. :) If you are choosing, do XHTML. By knowing XHTML, you are basicly learning very strict HTML. It will also mean you can easily do HTML if needed. You won't be able to easily make an XHTML page if you learn HTML though.alzable

Link to comment
Share on other sites

Thank you alzable.By the way I've just started learning PHP, MySQL and Apache also.Is there any compatibily problems so far between those three and XHTML? I guess it doesn't because XHTML is just a better HTML, right?

Link to comment
Share on other sites

Nope, no compatibility problems since they'll all sit on the server side and spew out the (X)HTML which is read by the client browser. The php will generate the XHTML but won't really be aware or even care, what it means, it is just text to php. The XHTML will get processed at the client, by which point no php will remain.

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...