HTML interview questions

When and how you should test candidates’ HTML skills

A good knowledge of HTML is usually required in roles like Web Developer, Front-End Developer and UI Engineer. If candidates don’t have enough experience in this markup language, they might not be able to do their job properly.

Since HTML knowledge is a technical skill, you need tangible proof to make sure candidates really know their stuff. There are two good ways to test this:

Note that it’s probably best not to ask candidates to actually write HTML during interviews as this may put undue pressure on them and affect their interview performance. One exception could be to ask them to comment on existing HTML code or demonstrate their way of thinking around the HTML assignment (if they completed one) by repeating parts of it on a whiteboard.

If you’re hiring for junior roles, ask basic questions to see if candidates have enough familiarity with HTML (and also CSS and JavaScript depending on the role). Below you can find both basic and advanced questions.

Examples of HTML interview questions

General Questions

Technical questions

How to evaluate candidates’ answers

Since knowing HTML is basically a hard skill, there’s a definite red flag in candidate answers: not knowing the basics. Candidates should feel fairly comfortable answering knowledge questions (such as “what does this tag do?”) and be able to formulate a logical answer when presented with an HTML exercise.

For senior roles, you can also look at whether candidates seem comfortable making high-level decisions (for example, how they would improve your website’s layout). Also, keep an eye out for candidates with wide experience in using HTML in tandem with CSS and JavaScript.