KEMBAR78
Top 10 HTML Interview Questions | PDF
0% found this document useful (0 votes)
6 views2 pages

Top 10 HTML Interview Questions

The document provides a list of the top 10 HTML interview questions along with their answers. It covers fundamental concepts such as HTML tags, the difference between HTML and HTML5, semantic tags, and the use of various HTML elements. Key topics include the <doctype> declaration, void elements, image insertion, and the distinction between <id> and <class> attributes.

Uploaded by

fekada9794
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)
6 views2 pages

Top 10 HTML Interview Questions

The document provides a list of the top 10 HTML interview questions along with their answers. It covers fundamental concepts such as HTML tags, the difference between HTML and HTML5, semantic tags, and the use of various HTML elements. Key topics include the <doctype> declaration, void elements, image insertion, and the distinction between <id> and <class> attributes.

Uploaded by

fekada9794
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
You are on page 1/ 2

Top 10 HTML Interview Questions with Answers

1. What is HTML?

HTML stands for HyperText Markup Language. It is the standard markup language used to create web

pages.

2. What are HTML tags?

HTML tags are used to define elements in a web page. Tags are enclosed in angle brackets like <p>, <div>,

etc.

3. What is the difference between HTML and HTML5?

HTML5 is the latest version of HTML with new features like audio, video support, semantic elements, and

more APIs.

4. What is a semantic tag in HTML?

Semantic tags clearly describe their meaning to both the browser and the developer, like <article>, <section>,

<header>, <footer>.

5. What is the use of the <doctype> declaration?

<!DOCTYPE> declares the document type and version of HTML being used. It helps the browser to render

the page correctly.

6. What are void elements in HTML?

Void elements are HTML elements that do not have closing tags, like <br>, <img>, <hr>, <input>.

7. How do you insert an image in HTML?

You can insert an image using the <img> tag with src and alt attributes: <img src='image.jpg'

alt='Description'>

8. What is the difference between <id> and <class> in HTML?

id is unique and used for a single element. class can be used for multiple elements.

9. What is the use of the <meta> tag in HTML?


<meta> tag provides metadata about the HTML document, like character set, author, and viewport settings.

10. What are the different types of lists in HTML?

HTML supports three types of lists: ordered list (<ol>), unordered list (<ul>), and description list (<dl>).

You might also like