Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
The <p> tag is used to define a paragraph of text and the browser automatically adds space before and after each paragraph.
There are six levels of heading tags: <h1> to <h6>, with <h1> being the largest.
<div> is a block-level container used for grouping elements, while <span> is an inline container used for styling small portions of text.
The <!-- --> tag is used for writing comments, which are not visible in the browser.
The <center> tag is deprecated in HTML5 and its functionality is replaced by CSS (using 'text-align: center;').
You use the <sub> tag: H<sub>2</sub>O.
<i>important</i>
The <pre> tag preserves spaces, tabs, and line breaks exactly as written, displaying preformatted text.
The <u> tag is used to underline text, but CSS is preferred for underlining today.
Deprecated tags are those that are no longer recommended in HTML5, such as <font> and <center>.
The <sup> tag displays text as superscript (above the baseline). Example: a<sup>2</sup>.
Search engines use heading tags (<h1> to <h6>) to understand the structure and important topics of a web page.
<div style="background-color: lightblue;"> <!-- content here --> </div>
The <font> tag is used to set font size, color, and face but is deprecated in HTML5. CSS is now used for all such styling.
<!-- This is a note -->
<div> should be used because it is a block-level element, ideal for grouping multiple elements for styling.
The output displays as: Water: H₂O (2 is shown as subscript).
The <basefont> tag sets the default font size, face, and color for a page; it is deprecated in HTML5.
You should use the <span> tag as it is an inline container suitable for styling part of the text.
Always mention that deprecated tags have been replaced by CSS in modern HTML.