How html5 is different from html4?
HTML5 is an upgraded version of html4.01 and introduced some new features such as Audio, Video, Canvas, Drag & Drop, Storage, Geo Location, Web Socket etc and also introduced some new html tags such as article, section, header, aside and nav etc which help to create the page layout faster. HTML 5 will handle the inaccurate syntax of the tags and it simplified the doctype and character set declaration. It also deprecated some html tags like center, font, strike, acronym, applet etc.
How browsers detect the html version of a webpage?
We must declare the doctype at the top of the page, it is an instruction to the web browser about what version of HTML the page is written in.
Write down the Doctype declaration of html5 and html4
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
What are the new form attributes in HTML5 ?
Placeholder, novalidate, autocomplete, required , autofocus, pattern, list, multiple, formnovalidate etc
What is SVG?
SVG stands for Scalable Vector Graphics, It is an XML based two-dimensional vector graphics image format.
What is character encoding in HTML ?
Character encoding is a rule for how to interpret raw zeroes and ones into real characters. There are two main character encoding representations used in html documnets such as UTF-8, and ISO-8859-1. The default character set for HTML5 is UTF-8. The following syntax is used to set the character encoding in an html document
What is HTML Entities ?
HTML Entities are some special words which is used to replace the reserved characters or some other characters that are not present on your keyboard can also be replaced by entities in your HTML, For example if you need to display
<( 'Less than' symbol ) In your html document, You can use
What is mean by Responsive Web Site ?
It will looks good in all screen resolutions device type. We can utilize css media quries to re-arrange the with of an element also we can hide or display any elements in a web page. Bootstrap is a widely using css framework to make responsive web pages quikly
List out some HTML5 tags
header, footer, main, nav, section, article, aside etc..
What is the use of HTML5 Canvas element ?
What is the use of 'placeholder' attribute in HTML5?
It is used to display some text with in a textbox or textarea and the text will disappear when user start typing in that box