SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question HTML 4 and HTML 5

    Any body help me. What is the difference between HTML 4 and HTML 5 ?

    Thanks
    Tridhara

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,225
    Mentioned
    264 Post(s)
    Tagged
    5 Thread(s)
    HTML4 is an established standard, whereas HTML5 is still a work in progress.

    If you want an in-depth analysis of the differences, there is an article here: http://www.w3.org/TR/html5-diff/ and a discussion of that article in this thread: http://www.sitepoint.com/forums/show...ce+HTML4+HTML5

    Does that help?

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,826
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    HTML 4 became a standard in 1997
    HTML 5 might become a standard in 2017 (although it might take longer)

    It took about eight years after HTML 4 came out before everyone was using browsers that supported it.

    Almost everything in HTML 4 is also in HTML 5 so you need to know HTML 4 in order to use HTML 5.

    Some of the things proposed for HTML 5 are only needed to fix IE6 problems and so presumably now that browser is dead those things can be dropped from the proposal (eg. embed). There are also some proposals for HTML 5 that provide more than one way of doing the same thing and so presumably only one will make the final standard eg. the input 'required' attribute provides a subset of what can be specified with the 'pattern' attribute..

    Basically HTML 5 is currently available for testing so that people can provide feedback on what works and what doesn't so a decision can be made on which of the new proposals will survive into the standard.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    HTML5 includes various tags that are intended to be used as semantic/structural elements (such as "header", "nav", and "footer", instead of using divs with IDs and classes).

    HTML5 also introduces native multimedia features, a scripting canvas that can be used without plugins like adobe flash, and geolocation support.

    Many modern browsers support these new features, but older browsers do not, so you will have issues with backwards compatibility.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  5. #5
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by John325 View Post
    HTML5 is more powerful than its previous version HTML 4, which can not only play audio and video files, also able to run video games in internet browser on its own.
    Yes HTML 4 is Previous version and have Full support with browser While HTML 5 still Supported by top browsers .
    A New Version is launched in order to be Advanced with old . HTML 5 is latest version or say New Standard of HTML and Comes with New Elements , New Attributes , Full CSS3 Support , Video and Audio , web application etc
    In HTML 5 featured to play audio and video files with <video> and <audio> elements for media playback .
    thanks

  6. #6
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,826
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by himans View Post
    Yes HTML 4 is Previous version
    No it is the current version.


    Quote Originally Posted by himans View Post
    HTML 5 is latest version
    No it is the proposed new version that is still some way from being finalised.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  7. #7
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    No it is the current version.




    No it is the proposed new version that is still some way from being finalised.
    Thanks , I got that .
    Thanks

  8. #8
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DOCTYPE is much more time as HTML4 is depending on SGML-based and DOCTYPE is needed in HTML 5 to allow requirements method for HTML records. After that video and audio are not aspect of HTML4 requirements and at the other side, these two are essential aspect of HTML5 requirements e.g. <audio> and <video> labels. So, these two difference are very essential between HTML 4 and 5.
    Advanced photoshop training melbourne

  9. #9
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,826
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by madelinekim View Post
    DOCTYPE is needed in HTML 5 to allow requirements method for HTML records.
    HT<L 5 uses the short version of the HTML 2 doctype that doesn't have the information that identifies which version of HTML it is. So you can't tell by looking just at the doctype whether you are looking at HTML 2, HTML 3.2, HTML 4.01 or the proposed HTML 5. Even with the version information people don't understand what version of HTML is being used - for example there are HTML 4 transitional and frameset doctypes to indicate that the page uses both HTML 3.2 and HTML 4. Only when a full HTML 4 strict doctype is specified can you be sure that the page is only using HTML 4 and then only if it validates with that doctype. To be able to do the same with HTML 5 once it becomes a standard there will need to be a long HTML 5 strict doctype added.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  10. #10
    SitePoint Member
    Join Date
    Feb 2013
    Location
    India
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As cool as it is to see what HTML5 can do for you, it hasn’t been unvarying like HTML4. You don’t have to concern about updating pages built using HTML4. It’s further than ten years old and it’s a set standard.

  11. #11
    SitePoint Member
    Join Date
    May 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML5 has many new and interesting features. like:
    You can play a audio/video
    You can draw/animate everything on canvas
    You can store large data in browser (cookie alternative)
    Two pages can talk to each other with messages
    and much more

  12. #12
    SitePoint Member pauldmitchell13's Avatar
    Join Date
    Jan 2013
    Location
    USA
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Shafiqul, HTML5 owns a lot of new features. It will change a user browsing experience. People will enjoy a new era of browsing.

    HTML5’s New Features:
    1) <canvas> element to draw 2D.
    2) <video> and <audio> element for media playback.
    3) New certain subject element like <article>, <footer>, <header>, <nav>, <section>
    4) New form control like calendar, date, email, URL, inquiry etc.


Tags for this Thread

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
  •