HTML & CSS Interview Question #1
What is HTML and what is its role in a web page?
HTML Fundamentals, Structure, Semantics, Links, Images, Tables & Forms Junior Beginner
Quick Interview Answer
HTML stands for HyperText Markup Language. It defines the structure and meaning of content on a web page. Browsers parse HTML elements to build the document structure that users see and assistive technologies can interpret.
Detailed Explanation
HTML stands for HyperText Markup Language. It defines the structure and meaning of content on a web page. Browsers parse HTML elements to build the document structure that users see and assistive technologies can interpret.
HTML is responsible for content structure rather than visual styling or application behavior. CSS normally controls presentation, while JavaScript adds dynamic behavior and interaction.
Code Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Product Page</title>
</head>
<body>
<h1>Wireless Charger</h1>
<p>A fast wireless charging product.</p>
</body>
</html>