Overview
In HackerRank Tests, Questions based on HTML, CSS, or JavaScript are designed to assess the website coding and designing skills of Candidates. These types of questions are included in HackerRank Tests for Front-end development roles which involve building dynamic and interactive websites with essential web development skills.
For example, to design an online shopping cart page with a given set of specifications for the website look and feel, accessibility options, and navigation.
In your HackerRank Tests, an HTML, CSS, or JavaScript question typically includes a project structure defined by the test setter, and you will be expected to build your web pages on top of it. Some questions may not include any website project and may require coding for a web page. While answering these questions, click Render to quickly test how your code displays as web pages in a browser.
Answering HTML/CSS/JavaScript Based Questions
Here is a quick video to get you started with answering an HTML, CSS, or JavaScript question workflow.
Or, if you prefer to follow directions, here are the steps for your ready reference.
- In your Test, select the HTML/CSS/JavaScript Question or click Solve Question.
- Read the problem statement carefully and understand the specifications for the web pages you're expected to develop. If the test setter has set up a website project already, use the code editor and write your HTML, JSS, or CSS code in the relevant project files.
- If the question does not include a project, write your code using the editor in three separate tabs provided for HTML, CSS, and JavaScript.
- Click Render to test how your code renders in a browser.
- You can check the rendered view of your code by clicking on Rendered View. You can also view that in a new tab by clicking the new tab icon as shown below.
- Click Submit to submit the solution. You can revisit this question, change your submitted code and resubmit the answer any number of times by clicking on Modify before the Test ends.
Modifying the answer
Note: Your test setter may organize the Questions across different sections in the Test, and these sections can have specific time limits to complete and submit the answers. In some cases, if the time allocated for a section has elapsed or you have already submitted the answer, you will not be allowed to change the answer submissions.
See the following topics for detailed information: