HTML interview questions part 1

HTML interview questions part 1

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.

Correct Answer is : The “content-type” header

2. Which of the following is not a difference between HTML and XHTML?

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?

Correct Answer is : norepeat

4. What is the role of charset attribute? It specifies

Correct Answer is : the character encoding for the HTML document

5. __________ prevents the page from being indexed altogether.

Correct Answer is : noindex

6. Which of the following is not supported in HTML5?

Correct Answer is : scheme

7. ___________ prevents search engines from following links inside the page.

Correct Answer is : nofollow

8. Different meta tags are defined by changing the __________ attribute to a valid value.

Correct Answer is : name

9. __________ prevents search engines from showing a cached link for the page.

Correct Answer is : noarchive

10. The value of the ___________ attribute refers to the time interval in seconds before the refresh is performed.

Correct Answer is : content

11. __________ is an HTML specification used to add more information to HTML tags.

Correct Answer is : Microdata

12. The microdata model consists of groups of name-value pairs known as ________

Correct Answer is : Item

13. Every HTML element may have an ____________ attribute specified.

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?

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?

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.

Correct Answer is : global identifier

17. If the element has an itemscope attribute, it returns an __________ object with all the element’s properties.

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?

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?

Correct Answer is : document.getItems

20. What does ‘On-Screen Action’ means in the testing of HTML5 applications?

Correct Answer is : Using Drag action

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon