|
|
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
| |
|
Should I learn HTML or XHTML?
11-26-2010, 04:27 AM
|
Should I learn HTML or XHTML?
|
Posts: 2
Name: Anders
|
Hi,
This is my first post ever here.
I'm 15 years old, I really want to learn how to design websites and maybe become a web designer in the future. I have started learning basic HTML, but I have been hearing that I should forget about HTML and learn XHTML. Is it true that HTML is no longer used anymore.
What one should I learn? Should I learn both of them? Any other tips for me?
Thank you so much! 
|
|
|
|
11-26-2010, 04:38 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 59
Location: Netherlands.
|
You could not say that HTML isn't being used anymore. A lot of people do, and with HTML5 becoming a standarization in the (near-)future, things will pretty much look a lot like transitional doctypes, and the "old" way of typing along with new functionalities.
I'd say stick to XHTML, as knowing that would also pretty much mean you'd also get familiarized with HTML generally. I'd personally prefer XHTML strict, if it comes to doctype.
You could also start learning HTML5 if you're interested, but knowing the basics is a must.
__________________
$gocore = new gakoyucore();
$con = mysql_connect($gocore->server, $gocore->username, $gocore->password) or die(mysql_error());
|
|
|
|
11-26-2010, 08:25 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
There's hardly any difference between those two, so it really doesn't matter which one you study. The both do the (exact) same thing to a browser.
The main difference between the two is that XHTML self-closing tags are supposed to be expressed /> and HTML self closing tags simply close >. The reality is that you can do it either way whether you have an HTML doctype or an XHTML doctype, browsers won't care. HTML 5 officially supports both ways, so if you get used to doing it one way or another, it really won't matter.
I personally only use an HTML 5 doctype any more. It doesn't matter that the specification hasn't been finalized yet. This doctype simply puts all the browsers into standards mode, and you can proceed to code as normal. It is much easier to remember the doctype, also:
HTML Code:
<!doctype html>
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|
|
|
|
11-26-2010, 09:39 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
|
Well not 100% true...
If you code HTML5 you can get problems with IE6/7/8.
Check out this site: http://drewwilson.com/
Open it with Chrome/FF and with IE6/7/8. You will see the difference.
If this site would have been coded with XHTML all browser would open it. Even IE6.
If you start with HTML you won't do anything wrong. The basics are a must anyway. If it's HTML 4.01/XHTML or HTML5 (I do not code HTML5 because the specs are not final)...
I would recommend to bundle your studies with CSS, too (not CSS3, learn the basics first!!!).
When HTML5 is standard I will recode all our business portals, but I think this will still take some time. For me XHTML is the way to go.
__________________
Chief Web Officer / Front-End Developer / System Engineer
Please login or register to view this content. Registration is FREE - Please login or register to view this content. Registration is FREE
|
|
|
|
11-26-2010, 09:49 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 1,184
|
I suggest you read this thread from last year which I think explores the whole XHTML vs HTML5 issue quite thoroughly.
http://www.webmaster-talk.com/html-f...ive-html5.html
But if your a 15 year old gen-Z kid then you probably can't be bothered reading so I'll give you the gist.
* XHTML is at a dead end
* HTML5 is the way of the future.
CSM is referring to features in HTML5 that do not have consistent browser support, which is fair enough but nobody says you have to use those features.
90% of it is identical to HTML4 so just update your DocType to the new HTML version and carry on as before.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals" Please login or register to view this content. Registration is FREE
|
|
|
|
11-26-2010, 11:37 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
|
Well mate... if XHTML would be at a dead end... then HTML 4.01 would have died long time ago.
It did not...
If you code business portals like I am doing then you can not switch to a "technology" that is not supported by older browsers, that is not even standard!
Does not make any sense, the loss would be enormous.
Too many people still use IE7/8 that does not support HTML5 by default. It is not about the features of HTML5.
Imagine you code a site in HTML5 that works fine now, and when HTML5 will become standard only one of the tags got kicked out or the name changed... have fun fixing.
His question was "Should I learn HTML or XHTML?" and I said begin with the basics... that is HTML 4.01.
__________________
Chief Web Officer / Front-End Developer / System Engineer
Please login or register to view this content. Registration is FREE - Please login or register to view this content. Registration is FREE
|
|
|
|
11-26-2010, 11:42 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 56
Location: WebVille
|
I will go along CSM way ==^
Get hold of the basics first.
__________________
Please login or register to view this content. Registration is FREE
Professional & Quality Website Design
Custom Layout Design, PSD to XHTML, Wordpress
|
|
|
|
11-26-2010, 12:09 PM
|
Re: Should I learn HTML or XHTML?
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Quote:
Originally Posted by CSM
Well not 100% true...
If you code HTML5 you can get problems with IE6/7/8.
Check out this site: http://drewwilson.com/
Open it with Chrome/FF and with IE6/7/8. You will see the difference.
If this site would have been coded with XHTML all browser would open it. Even IE6.
If you start with HTML you won't do anything wrong. The basics are a must anyway. If it's HTML 4.01/XHTML or HTML5 (I do not code HTML5 because the specs are not final)...
I would recommend to bundle your studies with CSS, too (not CSS3, learn the basics first!!!).
When HTML5 is standard I will recode all our business portals, but I think this will still take some time. For me XHTML is the way to go.
|
Problems on that site with in IE have nothing to do with the HTML 5 DOCTYPE. I suggest you check out this site: http://google.com which performs just fine in IE6/IE7/IE8 . Google has used the HTML 5 doctype for a couple years. As I said, the HTML 5 DOCTYPE just puts IE into Standards Mode, which will cause it to perform in a manner consistent with an HTML 4.01 Strict DOCTYPE. Explorer does not support HTML 5 elements, which is where the confusion comes from.
The website you pointed to is using SECTION and HEADER elements, which are not supported by IE.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
Last edited by wayfarer07; 11-26-2010 at 12:25 PM..
Reason: grammer
|
|
|
|
11-26-2010, 12:11 PM
|
Re: Should I learn HTML or XHTML?
|
Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
|
Why using HTML5 DOCTYPE when not using the benefits of HTML5?
Makes no sense to me...
Anyway, we will use XHTML for now until HTML5 IS standard
__________________
Chief Web Officer / Front-End Developer / System Engineer
Please login or register to view this content. Registration is FREE - Please login or register to view this content. Registration is FREE
|
|
|
|
11-26-2010, 12:19 PM
|
Re: Should I learn HTML or XHTML?
|
Posts: 2
Name: athel
|
Today both are important for anyone.Because basic knowledge of html is necessary if you want to learn Xhtml perfectly.Xhtml means extensible markup language means it has some new thing more than just html.So if you first learn html then xhtml is not hard to learn for you.
|
|
|
|
11-26-2010, 12:27 PM
|
Re: Should I learn HTML or XHTML?
|
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Quote:
Originally Posted by CSM
Why using HTML5 DOCTYPE when not using the benefits of HTML5?
|
Because the doctype is future proof. It performs fine now, is easy to memorize, and will pretty much last forever.
Besides, many of the sites I build these days do use HTML 5 elements, especially the VIDEO element. I use this HTML 5 player from Jw Player: http://www.longtailvideo.com/support...ayer-for-html5 which is just a <video> tag that gets replaced with a Flash Player if Flash is present, but will still work in browsers that do not support Flash (iPhone, iPad, most Android, etc).
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
Last edited by wayfarer07; 11-26-2010 at 12:30 PM..
|
|
|
|
11-26-2010, 05:14 PM
|
Re: Should I learn HTML or XHTML?
|
Posts: 1,184
|
Quote:
Originally Posted by CSM
Well mate... if XHTML would be at a dead end... then HTML 4.01 would have died long time ago.
It did not...
|
It's not an opinion. It's a fact that XHTML is a dead end.
This is the final "goodbye" news posting on the W3C XHTML2 Working Group website.
http://tinyurl.com/3nwxb
Quote:
|
2009-07-02: XHTML 2 Working Group Expected to Stop Work End of 2009, W3C to Increase Resources on HTML 5. Today the Director announces that when the XHTML 2 Working Group charter expires as scheduled at the end of 2009, the charter will not be renewed. By doing so, and by increasing resources in the HTML Working Group, W3C hopes to accelerate the progress of HTML 5 and clarify W3C's position regarding the future of HTML.
|
So the W3C have stated that XHTML is going nowhere , so in all probability one day will be deprecated by browsers.
HTML is the future proof option.
And there is no reason you cant use HTML5 now,
if you keep using the same standard html tags common to all browsers.
Google are using it on their home page, after all!
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals" Please login or register to view this content. Registration is FREE
Last edited by TWD; 11-26-2010 at 05:19 PM..
|
|
|
|
11-27-2010, 05:17 AM
|
|
Posts: 156
|
I think learning the basics in HTML is great so XHTML will be a breeze
I think getting the hang of the basics in HTML will stand you in good stead for XHTML
Last edited by chrishirst; 11-28-2010 at 08:39 AM..
|
|
|
|
11-28-2010, 02:00 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 2
Name: Anders
|
Thank you all for answering!! I really appreciate it!
-Anders
|
|
|
|
11-28-2010, 08:46 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
|
Quote:
Originally Posted by dagaul101
I think learning the basics in HTML is great so XHTML will be a breeze
I think getting the hang of the basics in HTML will stand you in good stead for XHTML
|
Ok then so which bit of ...
Quote:
Originally Posted by TWD
It's not an opinion. It's a fact that XHTML is a dead end.
This is the final "goodbye" news posting on the W3C XHTML2 Working Group website.
http://tinyurl.com/3nwxb
So the W3C have stated that XHTML is going nowhere , so in all probability one day will be deprecated by browsers.
HTML is the future proof option.
And there is no reason you cant use HTML5 now,
if you keep using the same standard html tags common to all browsers.
Google are using it on their home page, after all!
|
...
Did you NOT understand???
I mean, far be it from me to prevent some people demonstrating how little they know or how little they can be bothered actually LEARNING but there is a limit!!!
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
11-28-2010, 07:48 PM
|
Re: Should I learn HTML or XHTML?
|
Posts: 1,184
|
ha ha ha
I wonder if there is a way to explain this with sock puppets?
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals" Please login or register to view this content. Registration is FREE
|
|
|
|
11-28-2010, 08:32 PM
|
Re: Should I learn HTML or XHTML?
|
Posts: 78
|
Have a look at: http://diveintohtml5.org/ as a start.
@CSM
Yeah HTML5 may break in some cases in IE browsers but you help by using a bit of JS http://www.modernizr.com/. I realise this a bit of a hack around to get some things to work in IE but how different is it to the other hacks that are currently required (i realise some features will not work). I know it will bloat your code a bit but is the alternative of making something that will work for everyone fair? MS is slowing the progression of the web just because they have the majority.
Last edited by Mug; 11-28-2010 at 08:35 PM..
|
|
|
|
11-28-2010, 11:48 PM
|
Re: Should I learn HTML or XHTML?
|
Posts: 12
|
From HTML > XHTML > CSS + DIV ...are where you going to learn...
|
|
|
|
11-29-2010, 03:00 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 143
Name: maheshadodis
Location: USA
|
I'd say stick to XHTML, as knowing that would also pretty much mean you'd also get familiarized with HTML generally. I'd personally prefer XHTML strict, if it comes to doctype.
You could also start learning HTML5 if you're interested, but knowing the basics is a must.When HTML5 is standard I will recode all our business portals, but I think this will still take some time. For me XHTML is the way to go.
|
|
|
|
11-30-2010, 05:47 AM
|
Re: Should I learn HTML or XHTML?
|
Posts: 3
Location: Romania
|
Hi,I would go with HTML(the basics),and then moving on with php.Don't lose your time with graphics(design),go create web application or more functionality to a web site.
|
|
|
|
|
« Reply to Should I learn HTML or XHTML?
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|