In this article, I will try to include some of the most common HTML interview questions with their answers.
1. What is HTML?
- HTML stands for HyperText Markup Language.
- It is a markup language used to create web pages and applications for the World Wide Web.
2. What is the difference between HTML and XHTML?
- HTML and XHTML are both markup languages used to create web pages. However, XHTML is a stricter and more standardized version of HTML, and follows the rules of XML.
- XHTML requires all tags to be closed and all attributes to be quoted, whereas HTML does not have these requirements.
3. What are the basic tags in HTML?
- Basic HTML tags include
, ,
, ,, ,
,
- ,
- ,
,
, , ,
- ,
- ,