DIFFERENCES OF HTML AND HTML5

 HTML is a Hypertext Markup Language.

DocType!  -  Version of HTML



use -design wed pages using a markup Language.{ reaction And Display of attractive interactive and dynamic web pages} 


HTML

1.work with old browsers 

2.didn't Support audio and video without the use of flash  player support

3.Doesn't allows JS to run in browser.

4.Doesn't allow drag and drop effect .

5.HTML  can not handle inaccurate syntax .


HTML 5

1.Support by all new  browsers 

                ex-  Chorme , Firefox ,Safari   

 2.Support audio and video without the use of  <audio>  <video>  together.

3.Allows JS to run in background .this is possible due to JS web worker API in HTML 

4.Doesn't allow drag and drop effects.

5.Allows to draws shapes like circle, rectangle etc.

6.HTML 5 It is capable of  handling  inaccurate syntax .


Element of HTML 5 

<applet> changed to  <object>

<dir> change to <ul>

<frameset> remove < frame>


<DocType>

Not a html tag tells the browser about the HTML version the document  is written in .


no need to close <img> , <br>, <hr>


HTML 5 new Tags

<nav> , <audio><progress> , <rp,<rt,<video>,<figure,<command> ,<time>

<data list> ,<meta> ,<ruby>


  HTML Tags - href / src/ alt/ style / lang 

href Attribute - specifies the URL of the page the link.


<a>- hyperlink 

<pre>- Display the text as it is keep space and line break.

<span>-grouping and applying styles to inline element.


Src Attribute  - Specific the path to the image to be displayed.

<img> used to embed on image in an HTML

                <img src = " img.png">


lang Attribute - to declare the languages of the web page.

Title Attribute define some extra information about and element. .

Comments

Popular posts from this blog

DEMYSTIFYING THE POWER OF x86 ARCHITECTURE

A GUID TO BEACOMING A SOFTWARE ENGINEER

JAVA LAMBDA EXPRESSION