Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Differences between HTML & XHTML

  1. #11
    alena123 is offline Junior Member
    Join Date
    Sep 2008
    Posts
    11

    Default

    fantastic.......

  2. #12
    aathuls is offline Member
    Join Date
    Sep 2008
    Posts
    30

    Default

    HTML, is an application of SGML.XHTML, is an application of XML.It provides a shorthand notation for empty elements.HTML allows an author to omit certain tags and use attribute minimization. .
    Last edited by aathuls; 09-25-2008 at 10:31 AM.

  3. #13
    gkumar is offline Member
    Join Date
    Aug 2009
    Posts
    61

    Default

    The differences are actually pretty minor. xHTML is basically more correct and more strict interpretation of HTML. HTML 4.0 allows designers to be rather sloppy with how the tags are written, which results in some browsers interpreting things radically different. While they can still display some things differently with xHTML of course, it's just an effort for things to be more standard and more correct. Here is a list of some of the differences between the two. And another article that also describes the different doctypes such as strict and transitional, which will change how the browser renders the xHTML.



    If you are re-learning HTML it's a good idea to just go ahead and code to the more strict standards of xHTML in my opinion. It is backwards compatible with HTML 4 and there is no reason to avoid using the better and more correct standard. Using one won't give you any extra features over the other, except for horrible things like the < blink> tag being removed from xHTML.



    Another thing that ties into xHTML is the web standards project, which is a major effort started a few years ago to get designers to markup their web pages in a standard way across all web sites. Previously when the internet first began you'd frequently see an Internet Explorer version and a Netscape version, due to the major differences between how the two interpreted the HTML. It's also a collection of best-practices to allow web pages to be more accessible to people with disabilities, to be more friendly to search engines, and just all around better. It also encourages the separation of presentation from structure. For example you wouldn't want to define the colors you use for a table or a font color in the xHTML itself, you would want to do that in the CSS (Cascading Style Sheets) document. Another advantage of this is that you can update a single CSS document that you use for your entire site, and those changes will immediately take effect for everywhere that particular style is used in your entire site. So rather than the old way of having to change every < FONT> tag on hundreds of pages to change the font size you want to use for your site, you can simply change one line in your CSS file and update hundreds or thousands of pages that your site contains.



    dHTML simply stands for dynamic HTML and is kind of an out-of-date term to describe the combination of HTML and Javascript. These days you'll see the term AJAX (asynchronous Javascript and XML) used a lot more often, which is also a combination of xHTML, Javascript, CSS, and XML. AJAX allows you to update a portion of the page without reloading the entire page. The terms are slightly different but still have a bit of overlap. You'll see this technique used a lot here on Askville. Such as when you click to insert an image or link in a browser, or when you click on My Askville and notice all the little boxes along the right hand siding loading individually even after the main page has already loaded.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Why using text/html for XHTML is bad
    By shaun in forum XHTML Forums
    Replies: 1
    Last Post: 12-20-2007, 08:39 PM
  2. If u Use XHTML
    By shaun in forum XHTML Forums
    Replies: 0
    Last Post: 11-30-2007, 10:06 AM
  3. URL Differences?
    By clangallacher in forum General Webmaster Talk
    Replies: 4
    Last Post: 11-08-2007, 06:24 AM
  4. The purpose of XHTML
    By ForumJoiner in forum General Webmaster Talk
    Replies: 6
    Last Post: 03-27-2007, 11:13 AM
  5. html 4.0 or xhtml 1.0 ?
    By OldDarkstarAccount in forum General Webmaster Talk
    Replies: 0
    Last Post: 01-08-2007, 01:08 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124