Skip to content

Instantly share code, notes, and snippets.

@em
Created August 4, 2011 18:54
Show Gist options
  • Save em/1125933 to your computer and use it in GitHub Desktop.
Save em/1125933 to your computer and use it in GitHub Desktop.
my usual interview questions for html/css
HTML
============================
1) Meaning of design vs intent bad/good uses of some elements
2) How do you mark up navigation
3) When is it appropriate to use divs
4) Some HTML5 elements and how you could use them
CSS
============================
1) What is specificity
2) 3 column layouts (as many as they can think of)
3) Difference been display visibility vs hidden
4) What's hasLayout, how do you get it on an element, how's it help with IE
5) How can you make this layout:
(left navigation, window centered fixed-width content)
-----------------
|nav|content| |
| | | |
| | | |
| | | |
-----------------
and make it so when the page resizes:
- the nav does not go beyond the left side of the window
- the nav never overlaps the content
- the nav sticks to the left side of the content
note: Only the content is centered, not the enclosure of nav+content. That's way too easy.
6) Various display types and difference between them
7) Rant about float rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment