HTML_Interview_Questions
HTML_Interview_Questions
1. What is HTML?
HTML stands for HyperText Markup Language. It is the standard language used to create web pages.
HTML tags are keywords enclosed in angle brackets like <tagname>. They define elements on a webpage.
HTML5 is the latest version. It supports new elements like <audio>, <video>, and works better for mobile
devices.
Semantic HTML uses tags that describe the meaning of the content, like <header>, <footer>, <nav>.
id is unique and used for one element. class can be reused for multiple elements.
The alt attribute provides alternative text for an image if it fails to load.
HTML Interview Questions and Answers
A hyperlink is created using the <a> tag to link to another page or site.
Empty elements do not have a closing tag. Examples: <br>, <hr>, <img>, <input>.