HTML5 vs HTML4?

Chris Worner

Well-known member
Registered
Joined
Apr 15, 2016
Messages
612
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
Registered
Joined
Jul 25, 2019
Messages
35
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

Active member
Registered
Joined
Feb 12, 2020
Messages
68
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
Registered
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
Replies
4
Views
2,041
Replies
11
Views
5,952
Replies
3
Views
2,079
Latest Threads
Replies
1
Views
24
Replies
0
Views
179
Replies
1
Views
39
Replies
2
Views
81

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

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