0% found this document useful (0 votes)
3 views8 pages

Comprehensive HTML Interview Questions

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views8 pages

Comprehensive HTML Interview Questions

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HTML Interview Questions - Basic to Advanced

Introduction

HTML (HyperText Markup Language) is the standard markup language for creating web pages. It describes

the structure of a webpage using elements represented by tags.


HTML Interview Questions - Basic to Advanced

Basic Interview Questions

1. What is HTML?

2. What are HTML tags and attributes?

3. What is the difference between block-level and inline elements?

4. What are semantic tags in HTML?

5. What is the role of <!DOCTYPE> in HTML?


HTML Interview Questions - Basic to Advanced

Intermediate Questions

1. What is the use of the <form> tag?

2. List different types of input in HTML5.

3. How do you embed audio and video in HTML?

4. Explain the structure of an HTML table.

5. What is accessibility in HTML and how can it be improved?


HTML Interview Questions - Basic to Advanced

Advanced Questions

1. What are data-* attributes?

2. Explain the <canvas> and <svg> tags.

3. What are the differences between localStorage and sessionStorage?

4. What is the purpose of the <template> tag?

5. How does HTML support ARIA roles?


HTML Interview Questions - Basic to Advanced

Tricky Questions

1. Difference between <b> and <strong>?

2. What are void elements in HTML?

3. What is collapsing whitespace in HTML?

4. Explain relative vs absolute URLs.

5. What does the <base> tag do?


HTML Interview Questions - Basic to Advanced

MCQs

1. HTML stands for:

a) Hyper Text Makeup Language

b) Hyper Text Markup Language

c) HighText Machine Language

d) None of these

Correct: b

2. The correct sequence of HTML tags for starting a webpage is:

a) Head, Title, HTML, Body

b) HTML, Body, Title, Head

c) HTML, Head, Title, Body

d) HTML, Title, Head, Body

Correct: c

3. Which tag is used to display a picture in a HTML page?

a) picture

b) image

c) img

d) src

Correct: c

... (add 47 more MCQs)


HTML Interview Questions - Basic to Advanced

Practice/Scenario-Based Questions

1. Create a resume layout using HTML and semantic tags.

2. Build a form to collect user feedback with validations.

3. Create a photo gallery layout using only HTML and minimal CSS.
HTML Interview Questions - Basic to Advanced

Tips for Interview

- Always use semantic tags for better accessibility and SEO.

- Keep your HTML clean and properly nested.

- Validate HTML using the W3C validator.

You might also like