Skip to content

Instantly share code, notes, and snippets.

@yowainwright
Last active November 29, 2017 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yowainwright/20dc48cffac7cbd42b1c2f174c5c6f4d to your computer and use it in GitHub Desktop.
Save yowainwright/20dc48cffac7cbd42b1c2f174c5c6f4d to your computer and use it in GitHub Desktop.
General HTML Front-end Interview Questions

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 support display: 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

What is an element that semantically defines unique content within a document?

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.

How can list-like toggling be achieved with only html?

the <details> element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment