Which HTML tag is NOT valid in strict DHTML structure ?
Tripura Public Service Commission - 2026,
Answer: B
The tag not valid in the strict structure is <font>.
The <font> element sets typeface, size and colour directly in the markup. HTML 4.01 deprecated it and left it out of the Strict document type (and XHTML Strict), which keeps structure in HTML and presentation in CSS. DHTML is built on exactly that split: HTML for structure, CSS for appearance and JavaScript to change both through the DOM.
<script>, <span> and <div> are all valid in Strict, and they are the core of DHTML: scripts manipulate div and span elements to show, hide, move and restyle content.
Please log in or register to report this question.