Listed below are a few HTML questions for discussing HTML in an interview setting. Each answer should be a short sentence and be answerable over the phone. The question format is more to spur conversation rather than to define merit.
What is the default style display property value of an image (<img>
)? What is one reason why this is signicant?
it
display: inline-block
in browsers that supportdisplay: inline-block
it can cause random spacing issues within a content space
When the DOM is rendering in a browser, what element loads after the html element? Why is this signicant?
the
<head>
element
it can/could cause random race conditions
the
<main>
element it semantically defines unique information with a page. It excludes elements that are re-used—think navigation (<nav>
) which should generally be repeated on pages/routes.
the
<details>
element