![]() |
|
#1
|
|||
|
|||
Html Xhtml?Ok so i've seen this come up quite a lot and still have no idea on what the difference is between html and xhtml. Can someone help me out, show me the light?
|
|
#2
|
||||
|
||||
|
In a nutshell, xhtml is the "new" html. It's designed to move web developers to the xml mindset while allowing compatiblity for HTML-only browsers (which are very few nowadays). XHTML keeps the data seperate from the presentation code; CSS and other schemes are used for presenting the HTML data, allowing for easier changes.
For example, if you wanted to change every title in your page to a different font, you used to have to manually change every heading block. If you use CSS, you can make one change in the CSS stylesheet and it's shown on every heading you have it tied to. HTML is "sloppy" in that you can pretty much do what you want and the browser will still be able to show your page. XHTML is stricter: every tag must be closed (e.g. you have to use <p> & </p> instead of just <p>), many features are truncated because CSS takes over, and other things. For more information, I'd recommend going to the source: www.w3c.org. They created the standards for HTML, XHTML, XML, etc. __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What should I use? XHTML 1.0 or HTML 4.01 Strict? | retxedz | Web Design Forum | 0 | 24-Dec-2004 15:56 |
| how do i make it so the image around my html slice expands when typed in ? | gameshow863 | Web Design Forum | 6 | 03-Jun-2004 05:48 |
| XHTML / HTML BBCode Suggestion | BobbyDouglas | GIDForums™ | 1 | 01-Feb-2004 01:06 |
| html to php | tenaki | Web Design Forum | 17 | 28-Oct-2003 16:18 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The