HTML5

What is HTM5 and How it is different from HTML4 and XHTML?

HTML5



HTML5 is the latest revision of html4 and xhtml with strict standards. HTML5 has introduced new tags like audio, video, input fields, graphical elements and many more. You can see them in HTML5 Elements Page. But for now we will discuss HTML5 that; 

What is HTML5 and how to make a website using HTML5?
Is HTML5 easy to learn and how long does it take to be expert in HTML5?


How different is HTML5 from XHTML?

The major different between both is the document type which defines that what kind of document is running.

XHTML Document Type examples are as below;

1-  XHTML 1.0 Strict

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"

2- XHTML 1.0 Transitional


!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"

3- XHTML 1.0 Frameset

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"

You can use document type as per your requirement. Document Strict is highly recommended if you are using xhtml.

If you are using HTML5 then you must add HTML5 document at the top of the page. HTML5 document type is mentioned below;

!DOCTYPE html 

Note! don't forget to add less than sign and greater than sign in start and end of your document type.

Comments

Popular posts from this blog

What is Heading in html and how to add h1 in a web page or post?

What is the difference between HTML4 and HTML5?

What is img tag and how to add src (source or path) in html website?