JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
HTML interview questions part 1
HTML interview questions part 1
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What indicates the content in file is HTML when delivered on the network.
A. The extension of the file “.html”
B. The “content-type” header
C. Both “.html” extension and “content-type” header
D. The “content_type” header
Show Correct Answer
Correct Answer is :
The “content-type” header
2. Which of the following is not a difference between HTML and XHTML?
A. Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
B. Charset in both html and xhtml is “text/html”
C. Tags and attributes are case-insensitive in HTML but not in XHTML
D. Special characters must be escaped using character entities in XHTML unlike HTML
Show Correct Answer
Correct Answer is :
Charset in both html and xhtml is “text/html”
3. Which of the following is not a function of robots meta tag?
A. noindex
B. nofollow
C. norepeat
D. noarchive
Show Correct Answer
Correct Answer is :
norepeat
4. What is the role of charset attribute? It specifies
A. a scheme to be used to interpret the value of the content attribute
B. a name for the metadata
C. the character encoding for the HTML document
D. the character decoding for the HTML document
Show Correct Answer
Correct Answer is :
the character encoding for the HTML document
5. __________ prevents the page from being indexed altogether.
A. noarchive
B. nofollow
C. noindex
D. novalue
Show Correct Answer
Correct Answer is :
noindex
6. Which of the following is not supported in HTML5?
A. scheme
B. content
C. http-equiv
D. name
Show Correct Answer
Correct Answer is :
scheme
7. ___________ prevents search engines from following links inside the page.
A. noarchive
B. nofollow
C. noindex
D. novalue
Show Correct Answer
Correct Answer is :
nofollow
8. Different meta tags are defined by changing the __________ attribute to a valid value.
A. scheme
B. content
C. http-equiv
D. name
Show Correct Answer
Correct Answer is :
name
9. __________ prevents search engines from showing a cached link for the page.
A. nobot
B. nofollow
C. noarchive
D. nosearch
Show Correct Answer
Correct Answer is :
noarchive
10. The value of the ___________ attribute refers to the time interval in seconds before the refresh is performed.
A. scheme
B. content
C. http-equiv
D. name
Show Correct Answer
Correct Answer is :
content
11. __________ is an HTML specification used to add more information to HTML tags.
A. Macrodata
B. Microdata
C. Minidata
D. Modifydata
Show Correct Answer
Correct Answer is :
Microdata
12. The microdata model consists of groups of name-value pairs known as ________
A. Item
B. Property
C. Value
D. URL
Show Correct Answer
Correct Answer is :
Item
13. Every HTML element may have an ____________ attribute specified.
A. itemtype
B. relevant types
C. itemscope
D. itemref
Show Correct Answer
Correct Answer is :
itemscope
14. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a meta element?
A. The value is the item created by the element
B. The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
C. On getting, if the element has a datetime content attribute, the IDL attribute must return that content attribute’s value
D. The value is the element’s textContent
Show Correct Answer
Correct Answer is :
The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
15. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a time element?
A. The value is the element’s datetime value
B. The value is the value of the element’s content attribute, if any, or the empty string if there is no such attribute
C. The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
D. The value is the element’s textContent
Show Correct Answer
Correct Answer is :
The value is the element’s datetime value
16. The ___________ of an item is the value of its element’s itemid attribute.
A. token
B. typed item
C. global identifier
D. scope
Show Correct Answer
Correct Answer is :
global identifier
17. If the element has an itemscope attribute, it returns an __________ object with all the element’s properties.
A. itemscope
B. dom object
C. collection.namedItem
D. itemtype
Show Correct Answer
Correct Answer is :
dom object
18. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a data element?
A. The value is the value of the element’s value attribute if it has one, or the empty string otherwise
B. The value is the item created by the element
C. The value is the element’s datetime value
D. The value is item’s scope
Show Correct Answer
Correct Answer is :
The value is the value of the element’s value attribute if it has one, or the empty string otherwise
19. Which method takes a string that contains an unordered set of unique space-separated tokens that are case-sensitive, representing types?
A. document.getItems
B. element.itemProp
C. collection.namedItem
D. object.itemref
Show Correct Answer
Correct Answer is :
document.getItems
20. What does ‘On-Screen Action’ means in the testing of HTML5 applications?
A. Using Drag action
B. Using new input type
C. Using play and pause action of audio and video elements
D. Verifying SVG and Canvas elements
Show Correct Answer
Correct Answer is :
Using Drag action
Similar Interview Questions
Search for latest jobs
Find Jobs