Interview questions for web developers
Interview questions
Web standards
- What is the W3C and what does it do?
- What is HTML validation? Do you ever validate your HTML? Why?
- What is the current W3C recommendation for hypertext markup?
- What are web standards?
Accessibility
- What is the W3C's Web Accessibility Initiative and what does it do?
- What are the Web Content Accessibility Guidelines produced by the W3C?
- What is meant by A, AA, and AAA accessibility conformance?
- List 3 ways that content can be made more accessible to visually impaired users
Design approaches
- How would you decide which browsers your company's web design should support?
- Faced with the choice between a fixed-width and fluid layout for a new website design, which would you choose? Why?
- What is user-centred design?
- At what stage/s of the development lifecycle should end users be involved?
Maintaining knowledge
- How do you keep your web design/development knowledge up to date?
- Do you read any web development related blogs? Which ones? What do you like about these?
- Do you participate in any web development related mailing lists? Which ones? What do you like about these?
- What web-related conferences have you been to recently?
Exercises
Correct the errors in the following HTML mark up
<html>
<body>
<title>Company X</title>
<h1>Welcome to the Company X home page</h2>
<table width=100% bgcolor=ffffff border=0>
<td align=top><center>Latest News & Information</center>
<p> </p>
<p>This page provides the latest news
and information from Company X.</p>
</table>
</body>
</html>
Errors included
- There is no document type declaration
- The
title should appear between head elements
- The closing heading tag is incorrect. It should be an
h1. This would cause the whole document to be formatted at heading level 1.
- The
table attribute values should be quoted
- The table background colour,
bgcolor, should be expressed as #ffffff or #fff or better still, presentation should be handled in a stylesheet
- The table cell,
td, needs to be enclosed by a table row, tr
-
Top is not a valid attribute for align. It is an attribute of valign, and valign is a deprecated attribute in XHTML.
- The
center element is deprecated. Use a stylesheet for presentation
- There is no closing table cell element,
/td
- An HTML entity,
&, should replace the ampersand in Latest News and Information
- The paragraph containing the non-breaking space entity,
, should be removed. These are frequently generated by WYSIWYG HTML editors and unnecessarily bloat code
- A smart candidate may suggest a more descriptive page title or the use of meta data to increase the chances of the page being usefully indexed by search engines.
Correct the errors in the following stylesheet
body {
color: #000000
background-color: #ffffff
font-face: "Arial, Helvetica, sans-serif"
font-size: "medium"
}
code pre {
color: #000000
background-color: #ffffff
font-face: "monospace"
font-size: "small"
}
.footer {
color: #666666
background-color: #ffffff
font-face: "Arial, Helvetica, sans-serif"
font-size: "tiny"
}
Errors included
- Each property/value pair needs to have a semi-colon separator (not needed for the last pair)
-
Font-face is not a valid property. Font-family should be used
- Property values do not need to be quoted
- A comma should be used between the selectors
code and pre
-
Tiny is not a valid value for the font-size property
Related (external) links