HTML5 vs HTML4?

Chris Worner

Well-known member
Joined
Apr 15, 2016
Messages
503
Points
28
Almost time I created my own websites with html4, I read that html5 is modern and having more advantages, i would like to know what are pros and cons of html5 and html4? and which one is better? why?
 

TerranceM

Member
Joined
Jul 25, 2019
Messages
34
Points
8
Best answer
New elements have been added to HTML5 so as to bring both more structure and more tools to enrich HTML.

New elements that enhance structure and semantics are section, article, main, aside, header, footer, nav, figure, figcaption, and template.

Some of the new elements that provide new tools are video, audio, track, embed, canvas.

New types to the input element have been added, like tel, search, URL, email, date, time, number, range and color. These types help the browser know about the type of input you need, so for example on your phone would be shown a specific type of keyboard when you want to fill in a phone number.

One popular attribute that was added to input and text area is a placeholder, which helps you indicate what you are expecting in an input.

Some other elements have found their meaning changed, like strong, which now represents importance rather than strong emphasis.

New APIs have been added to accompany new elements, some elements became obsolete, and much much more.
 

Require

ForumWeb Supporter
Forum Supporter
Joined
Feb 12, 2020
Messages
62
Points
6
Most websites newer website today use HTML5 as it has more features has added to compared to HTML4 but I think @TerranceM answered the question very well so you got your answer^^
 

Demon_skeith

Member
Joined
Feb 27, 2020
Messages
27
Points
1
Pretty much all there is to it, it became annoying when I was in school because when I transferred to another they wouldn't take my html4 class credit and had to take it again learning some of html5, which there is a bit to it and would be wise to find some video or online class for it.
 
Newer Threads
Latest Threads
  • Deleted
  • Deleted by fwh
Replies
0
Views
1
  • Deleted
  • Deleted by fwh
Replies
0
Views
1
Replies
0
Views
49
Replies
3
Views
104
Similar Threads
Replies
9
Views
3,159
Replies
2
Views
1,769
Replies
3
Views
1,789

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top