HTML_Interview_QA
HTML_Interview_QA
1. What is HTML?
HTML (HyperText Markup Language) is the standard language used to create
and structure content on the web. It uses a series of elements and tags to define
the structure and presentation of text, images, and other multimedia.
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
27. How do you handle forms with multiple inputs and file uploads in
HTML?
Forms with multiple inputs can be managed using the <form> tag with
various input elements. File uploads are handled using <input type="file">,
and server-side scripts typically process the uploaded files.
29. How does the <progress> tag differ from the <meter> tag in HTML?
The <progress> tag represents the completion progress of a task (like a
download), showing a range from 0 to 1. The <meter> tag represents a scalar
measurement within a known range, such as disk usage
30. What are the new form elements introduced in HTML5?
HTML5 introduced new form elements like <input type="email">, <input
type="date">, <input type="number">, <input type="range">, and <input
type="color">, along with new attributes like placeholder, autofocus, and
required.
31. How do you use the <link> tag for preloading and prefetching resources
in HTML?
The <link> tag can use rel="preload" to preload critical resources and
rel="prefetch" to load resources that might be needed soon, improving page
performance.
Example:
<link rel="preload" href="style.css" as="style