Web Development questions

By Interwoven Maths

Web Development question collection

Review Web Development questions for Computer Science, with correct answers shown and coverage across HTML tags and page structure; attributes, links and images; CSS selectors and styling.

Back to Web Development practice Back to Computer Science

Question 1

What does HTML stand for?
  1. HyperText Markup Language
  2. HighText Machine Language
  3. Hyperlink and Text Machine Language
  4. Home Tool Markup Language

Question 2

Which technology controls a webpage's style?
  1. CSS
  2. HTML
  3. JavaScript
  4. SQL

Question 3

In HTML, which tag is used for the largest heading?
  1. <h1>
  2. <p>
  3. <h6>
  4. <head>

Question 4

In HTML, which tag makes a paragraph?
  1. <p>
  2. <h1>
  3. <a>
  4. <br>

Question 5

In HTML, which tag adds an image?
  1. <img>
  2. <pic>
  3. <image>
  4. <src>

Question 6

In HTML, which image attribute gives the file location?
  1. src
  2. href
  3. alt
  4. id

Question 7

Which tag makes a clickable link in page content?
  1. <a>
  2. <link>
  3. <href>
  4. <url>

Question 8

In HTML, which attribute sets a link destination?
  1. href
  2. src
  3. alt
  4. class

Question 9

In HTML, which tag starts a bulleted list?
  1. <ul>
  2. <ol>
  3. <li>
  4. <list>

Question 10

In HTML, which tag makes one list item?
  1. <li>
  2. <item>
  3. <ul>
  4. <p>

Question 11

Which JavaScript keyword begins a conditional statement?
  1. if
  2. else
  3. for
  4. while

Question 12

In JavaScript, which command shows text in the browser console?
  1. console.log()
  2. print()
  3. echo()
  4. input()

Question 13

In JavaScript, which symbol starts a single-line comment?
  1. //
  2. #
  3. /*
  4. --

Question 14

Which technology mainly adds webpage interactivity?
  1. JavaScript
  2. HyperText Markup Language
  3. Cascading Style Sheets
  4. Structured Query Language

Question 15

In JavaScript, which event happens when a button is pressed?
  1. click
  2. load
  3. scroll
  4. resize

Question 16

In HTML, which tag creates a button?
  1. <button>
  2. <btn>
  3. <click>
  4. <press>

Question 17

In JavaScript, which brackets are used to call a function?
  1. ()
  2. []
  3. {}
  4. <>

Question 18

Which operator checks strict equality in JavaScript?
  1. ===
  2. ==
  3. =
  4. !=

Question 19

Which method selects a page element by its id?
  1. document.getElementById()
  2. console.log()
  3. Math.random()
  4. Array.push()

Question 20

What does addEventListener() connect?
  1. An event to a handler
  2. CSS to HTML
  3. A database to a server
  4. An image to its source

Question 21

Which tag starts an ordered list?
  1. <ol>
  2. <ul>
  3. <li>
  4. <list>

Question 22

What does the alt attribute provide for an image?
  1. Alternative text
  2. Image file type
  3. Image width in pixels
  4. Link destination

Question 23

Which element contains visible webpage content?
  1. <body>
  2. <head>
  3. <title>
  4. <meta>

Question 24

Which element sets the browser-tab title?
  1. <title>
  2. <h1>
  3. <head>
  4. <p>

Question 25

Which CSS selector targets class card?
  1. .card
  2. #card
  3. card
  4. *card

Question 26

Which CSS property changes text colour?
  1. color
  2. background-color
  3. font-size
  4. text-align

Question 27

Which element creates a table row?
  1. <tr>
  2. <td>
  3. <th>
  4. <table>

Question 28

What do meaningful heading levels provide?
  1. Page structure
  2. Text decoration
  3. Image descriptions
  4. Link destinations

Question 29

Which CSS selector targets id menu?
  1. #menu
  2. .menu
  3. menu
  4. *menu

Question 30

Which tag marks the end of a paragraph?
  1. </p>
  2. <p>
  3. </h1>
  4. </body>

About this topic

Review Web Development questions for Computer Science, with correct answers shown and coverage across HTML tags and page structure; attributes, links and images; CSS selectors and styling.

This topic covers

Example question types