QuestPond’s interview questions and answers on HTML 5
HTML 5 is one of the hot topics in market nowadays so have a glance to the following .NET interview questions on HTML 5.
It doesn’t matter where your interview is, it doesn’t matter if the interviewing company is using HTML 5 or not, you will face this HTML5 question for sure
How HTML 5 doctype is different from prior versions?
In prior versions of HTML with the help of doctype we specify which DTD will be used for parsing the HTML document.
DTD defines the document structure with legal elements and attributes.
<! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
HTML 5 is completely a new standard which don’t require any DTD. It has its own set of attributes and tags which are right now not supported by all the browsers.
In HTML 5 doctype will be much simpler.
Can you name some of the new page structure tags introduced in HTML 5?
Header,Footer,Section,Article,Aside,Nav etc.
How this tags are different from older div approach where we used to have multiple div tags with custom CSS classes etc?
From technical point of view both are same. Actually for positioning them in proper location we need CSS in both the cases. Only advantage we get from HTML 5 with these custom tags is, we get semantic meaning for our markup.
Name some of the Form elements introduced in HTML 5?
They are color, date, datetime, email, month, week, URL, datalist, range, search etc.
What will you do if I want to incorporate autocomplete feature in the textbox?
Let’s say we have a form tag with more than 15 input elements into it. Now what I want is as soon form loads first textbox should get focus. How will I achieve it?
We have to add AutoFocus attribute to first textbox.
I want to set watermark in one of the textbox. Is it possible?
Yes, using placeholder attribute of input element.
Also see HTML 5 canvas interview questions asked in one of the interview.
For technical trainings on various topics like WCF (Windows Communication Foundation), MVC (Model View Controller), Business Intelligence, Design Patterns, WPF, TFS and Basic fundamentals feel free to contact [email protected] or visit www.sukesh-marla.com or www.JustCompile.com