HTML Interview Revision Guide
HTML Interview Revision Guide
1. Introduction to HTML
- HTML (HyperText Markup Language) is the standard language for creating web pages.
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Heading</h1>
<p>Paragraph</p>
</body>
</html>
3. Semantic HTML
Semantic HTML provides meaning to the structure of a web page.
4. HTML Forms
Forms are used to collect user input.
<label for="name">Name:</label>
<button type="submit">Submit</button>
</form>
<input type="email">
<input type="password">
<input type="checkbox">
<input type="radio">
<input type="file">
<input type="submit">
6. Tables in HTML
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
</tr>
</table>
7. HTML5 Features
- Audio & Video Support: <audio> and <video> elements.
8. Accessibility in HTML
- Use alt attribute in images for screen readers.
id is unique, used for a single element, while class can be used for multiple elements.
<b> makes text bold visually, while <strong> has semantic importance.
<video controls>
</video>
sessionStorage stores data for a session (clears on close), while localStorage persists until
manually deleted.
---
This guide covers the essentials needed for HTML interviews. Good luck!