Sunday, April 7, 2019

HTML 5 Interview Questions & Answers


What is HTML 5 ? 


HTML 5 is latest version of HTML,HTML stand for hypertext markup language.

HTML 5 has introduced many new features i.e. new semantic elements, form elements, media tags and many more.

New semantic elements - <header>,<footer><aside><section><nav>

Form element input types - email,telephone,url,number,date,range etc.

Form validation attributes - required

Media tags - <video><audio><canvas><svg>

It also introduces many API's helping in progress web application development listed below.
  • Storage - Local storage and session storage 
  • Web workers 
  • Geolocation API 
  • Drag and drop 
  • Contacts access of mobile devices 
  • File API 
  • Fullscreen api 
  • History
  • Indexed database 
  • Offline apps 
  • Server-sent events
  • Web Messaging
  • Web Audio API
  • Proximity API

What is semantic HTML ?

Semantic HTML terms is used for accessibility, semantic html are meaning full tags help to organize the html in systematic and more meaningful way.

HTML 5 introduced many semantic tags header, footer, aside, section, navigation.

Earlier we used to div with class like .header,.footer,.navigation class which was not so meaningful.


What is doctype tag in html 5 ?

doctype is html 5 tags which tells the browser which version of html are going to develop application.

What is web storage API ?

 Web storage is storage API 


.