UI developer interview questions
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.