HTML
CSS
JavaScript
100

Where does the <title> tag belong and what does it do?

Nested in the <head> tag to display the web title in the browser tab

100

If we want to target the ID of an HTML element with a CSS selector, the selector will have to start with this character.

#

100

A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?

let apples = 20; 

200

Give an example of an HTML attribute.

src, alt, href, ...

200

Give an example of a CSS property.

width, color, font-size, opacity, ...

200

What is the data type of: 132?

Number

300

Name an HTML tag that does not need a closing tag.

<img>, <input>...

300

Fill in the blanks. In the following CSS rule, "img" is a __________, "width" is a __________, and "100px" is a __________.

img { width: 100px; }

(1) selector (2) property (3) value

300

What is a boolean variable?

A variable that can only hold true or false

400

What is the correct HTML for inserting an image?

1. <img href="image.gif">

2. <image src="image.gif">

3. <img>image.gif</img>

4. <img src="image.gif">

4. <img src="image.gif">

400

What is border-radius?

This property is used to add rounded corners to an element.

400

Write the code that repeats your name 5 times using for loop.

for (let i = 1; i>=5; i++) {

alert("Name");

}

500

Which of the following elements will create a hyperlink on a webpage that when clicked will take the user to google.com?

1. <a href="http://www.google.com">Google</a>

2. <a src="http://www.google.com">Google</a>

3. <a name="Google">http://www.google.com</a>

4. <link href="http://www.google.com">Google</link>

5. <link src="http://www.google.com">Google</link>

6. <link name="Google">http://www.google.com</link>

1. <a href="http://www.google.com">Google</a>

500

What is the box model?

This term describes the way margins and padding are added to elements using CSS. Also you can set border, height, width settings.

500

Write it: Write a conditional statement that alerts "yes" if x is greater than 100, and "no" if it isn't.


if (x>100) {

alert("yes");

} else {

alert("no");

}