Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 04-23-2009, 02:29 PM Is this correct ?
Experienced Talker

Posts: 44
Name: Alex
Trades: 0
The more I look into HTML coding the more it seems apparant that I should learn XHTML, I already know a small amount of HTML, a book that I have states that XHTML contains all the tags of HTML but adhere to much stricter rules and has additional tags and different methods of doing things. Surely rather than learning straight HTML i would be better learning XHTML as this is also teaching me to adhere to the latest web design rules

Any help or another opinion would be appreciated
chemicalbrother is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-23-2009, 02:48 PM Re: Is this correct ?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Actually, you don't NEED XHTML, you can just go with HTML 4.01 STRICT and get the same strict rules. The 'additional tags' actually only come into play if you're rendering your XHTML as XML and not as text (which many say is an abberation).

With HTML 4.01 strict you still must close ALL tags; all code must be in lowercase; things like <center> <font> and the "target" attribute are NOT allowed (deprecated and should be done using CSS).
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-23-2009, 02:53 PM Re: Is this correct ?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Yes and no. How's that for being definitive?

Both are essentially going to be the same for the most part. If you make sure to use lower case for your tags and remember to close them all you've pretty much got xhtml.

However if you then use an html doctype the page would be perfectly acceptable html. Recently the html 5 spec is making news without much talk about xhtml 2 so maybe in the not too distant future we'll be using html doctypes again to take advantage of it.

I might be confusing you more, but the main point is yes it's a good idea to learn the xhtml way. xhtml is really html that's compliant with xml. And really if you do make sure to use lower case and make sure to close all your tags you're pretty much writing xhtml.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-23-2009, 02:58 PM Re: Is this correct ?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Something that is worth noting, is that the ultimate goal of XHTML has failed, which was to comply with a future standard in which XML would supposedly be the standard for describing all data. This simply has not come about, and it doesn't look like it is going to happen at all.

XHTML is not bad, and I still use it, but it has failed in its intent.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-23-2009, 03:21 PM Re: Is this correct ?
Experienced Talker

Posts: 44
Name: Alex
Trades: 0
Wow have to admit I`m struggling a little to grasp this so

XHTML - Strict form of HTML very similar to HTML 4.01

What situation would you use XHTML ? and what situation would you go for HTML 4.01 ? I think I`m struggling making the definition between the two

XML - What is this and what is it used for, does XHTML lead to XML ?

CSS - I get this, cascading style sheet code that formats the pages in a global fashion that integrates into HTML (put simply)

Thanks for the interest in my questions guys and girls its really helping me !!
chemicalbrother is offline
Reply With Quote
View Public Profile
 
Old 04-23-2009, 03:27 PM Re: Is this correct ?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
The point is, it doesn't matter if you use XHTML or HTML. Neither really has an advantage, except that XHTML is a bit stricter in its transitional DOCTYPE than HTML 4.01.

I use XHTML, but the only reason is I am accustomed to self closing tags /> because that is how I learned. Also, I can't stand capitalized tags, they hurt my eyes. By using XHTML I am minimizing the possibility that other coders will capitalize tags on my pages.

XML is an all purpose markup language that may be used to describe any sort of data. XML writes its own rules, known as a schema. In fact XHTML is a schema of XML. It is HTML described in XML.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 04-23-2009 at 03:28 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-23-2009, 05:29 PM Re: Is this correct ?
Experienced Talker

Posts: 44
Name: Alex
Trades: 0
Ok thanks for clearing that up for me, XHTML it is !! Then CSS next, I feel like I may not be seeing daylight for a while !!
chemicalbrother is offline
Reply With Quote
View Public Profile
 
Old 04-24-2009, 03:24 PM Re: Is this correct ?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Thought I'd ech what Abel said. There really isn't one or the other that's better. I prefer the xhmtl way of coding anyway so I do, but that same code will still be valid html. html is a little more forgiving is all. If you use all lower case and make sure to close all tags, you're pretty much coding xhtml.

html 5 is probably going to be the new standard in the not too distant future too.

css isn't too hard to get the basics down. The hardest part will probably be using it for the layout of a site and understanding cross browser differences. We're here though for any questions you might have along the way.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-25-2009, 10:34 AM Re: Is this correct ?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I found a pretty good comparison article:
http://www.evotech.net/blog/2007/06/...al-deprecated/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-28-2009, 07:46 PM Re: Is this correct ?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Nice article. You know I forgot some of the differences because they've become habit. Things like making sure to use quotes around attributes and nesting tags.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Is this correct ?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.86411 seconds with 12 queries