/99-HTML-INTTERVIEW-QUESTIONS

This repository contains the pdf of the 99 HTML Interview Question from basic to advance. Also the questions are given topicwise so that one can easily do these question accordinlgy.

HTML Interview Questions

This document contains 100 HTML questions covering various concepts, theory, and code. These questions will help you prepare effectively for an interview.

How to Use This Document

  • Each section is collapsible to make navigation easier.
  • Click on the section headers to expand and view the questions.
  • Use this as a study guide to review important HTML concepts.

Table of Contents

  1. Basic HTML
  2. Text Formatting
  3. Lists
  4. Links and Navigation
  5. Images
  6. Tables
  7. Forms
  8. Semantic HTML
  9. Multimedia
  10. HTML5 New Features
  11. HTML Attributes
  12. Responsive Design
  13. Accessibility
  14. Best Practices
  15. Advanced Topics
  16. Performance

Questions

Basic HTML
  1. What does HTML stand for?
  2. What is the purpose of the <!DOCTYPE html> declaration?
  3. What are the main sections of an HTML document?
  4. What is the difference between an element and a tag?
  5. How do you write a comment in HTML?
  6. What is the purpose of the <head> element?
  7. What is the purpose of the <title> element?
  8. What is the purpose of the <body> element?
  9. How do you create a hyperlink in HTML?
  10. What is the difference between an absolute URL and a relative URL?
Text Formatting
  1. How do you create a paragraph in HTML?
  2. How do you create a line break in HTML?
  3. How do you make text bold in HTML?
  4. How do you make text italic in HTML?
  5. How do you create a heading in HTML?
  6. How many levels of headings are there in HTML?
  7. What is the <blockquote> element used for?
  8. How do you create a horizontal line in HTML?
  9. What is the <pre> element used for?
  10. How do you create a superscript and subscript text in HTML?
Lists
  1. How do you create an unordered list in HTML?
  2. How do you create an ordered list in HTML?
  3. How do you create a list item in HTML?
  4. What is the difference between the <ul> and <ol> elements?
  5. How do you create a nested list in HTML?
Images
  1. How do you embed an image in an HTML page?
  2. What is the purpose of the alt attribute in an image tag?
  3. How do you specify the dimensions of an image in HTML?
  4. How do you make an image a clickable link?
  5. What is the difference between inline and block-level elements?
Tables
  1. How do you create a table in HTML?
  2. How do you create a table row in HTML?
  3. How do you create a table cell in HTML?
  4. What is the purpose of the <thead>, <tbody>, and <tfoot> elements?
  5. How do you merge cells in a table?
Forms
  1. How do you create a form in HTML?
  2. What is the purpose of the <form> element?
  3. How do you create a text input field in HTML?
  4. How do you create a password input field in HTML?
  5. How do you create a radio button in HTML?
  6. How do you create a checkbox in HTML?
  7. How do you create a dropdown list in HTML?
  8. How do you create a submit button in HTML?
  9. What is the purpose of the action attribute in a form?
  10. What is the purpose of the method attribute in a form?
Semantic HTML
  1. What is semantic HTML?
  2. Why is semantic HTML important?
  3. What is the <article> element used for?
  4. What is the <section> element used for?
  5. What is the <nav> element used for?
  6. What is the <aside> element used for?
  7. What is the <header> element used for?
  8. What is the <footer> element used for?
  9. What is the <main> element used for?
  10. What is the <figure> and <figcaption> elements used for?
Multimedia
  1. How do you embed a video in HTML?
  2. How do you embed an audio file in HTML?
  3. What is the purpose of the <source> element in multimedia?
  4. How do you embed a YouTube video in HTML?
  5. What is the <canvas> element used for?
HTML5 New Features
  1. What are some new features introduced in HTML5?
  2. How do you create a date input field in HTML5?
  3. What is the <datalist> element used for?
  4. What is the <output> element used for?
  5. What is the <progress> element used for?
HTML Attributes
  1. What are attributes in HTML?
  2. How do you specify an attribute in an HTML tag?
  3. What is the purpose of the id attribute?
  4. What is the purpose of the class attribute?
  5. What is the purpose of the style attribute?
Responsive Design
  1. What is responsive design?
  2. How do you make an image responsive in HTML?
  3. What is the viewport meta tag, and why is it important?
  4. How do you create a responsive navigation menu?
  5. How do you use media queries in HTML?
Accessibility
  1. What is web accessibility?
  2. How do you make an HTML page accessible?
  3. What is the purpose of the alt attribute in images for accessibility?
  4. How do you use ARIA (Accessible Rich Internet Applications) in HTML?
  5. What is the purpose of the role attribute in HTML?
Best Practices
  1. What are some best practices for writing HTML?
  2. Why is it important to validate your HTML code?
  3. How do you validate HTML code?
  4. What are meta tags, and why are they important?
  5. What is the purpose of the <meta charset="UTF-8"> tag?
Advanced Topics
  1. What is the DOM (Document Object Model)?
  2. How do you manipulate the DOM using JavaScript?
  3. What is the difference between HTML and XHTML?
  4. What is the purpose of the data-* attributes?
  5. How do you include a favicon in an HTML document?
Performance
  1. How do you optimize the performance of an HTML page?
  2. What is lazy loading, and how do you implement it in HTML?
  3. How do you defer the loading of JavaScript files in HTML?
  4. What is the purpose of the async attribute in script tags?