= HTML / CSS Interview Questions = == HTML == * Explain the basic components of a typical webpage, e.g. XHTML, CSS, JavaScript, etc. From a high level perspective, what is each used for? * What do we use classes and ids for? What's the difference between them? Can you have more than one element with the same class in the DOM? How about more than one ID? * Can you assign more than one class to a single element (e.g. 'class="foo baz")? How about more than one id? * What are commonly used doctypes? What is the [[front-end-tech:xhtml:html-vs.-xhtml|difference between HTML and XHTML]]? Between XHTML 1.0 Transitional and XHTML 1.0 Strict? * What are pros and cons of using tables for layout? When should you use them, and when should you not? * What does the ''