HTML, CSS AND JAVASCRIPT TEST.

Hi everyone! 

No matter how many years you have been codering, or how this is your first website, it never to hurt to check the foundations. On this day, I assembled a fast multiple-choice test about the top three web development languages, HTML, CSS, and JavaScript.

Get a coffee, no Googling, and then we will see what score you got!


Part 1: The Structure (HTML) 

1. What is the strict HTML tag that is used to define an internal style sheet?

A) <script>

B) <style>

C) <css>

D) <design>

2. What would be the type of input of a field that could not be seen by the user?

A) <input type="hidden">

B) <input type="invisible">

C) <input type="private">

D) <input type="none">

3. What is the right HTML element to play video files?

A) <movie>

B) <media>

C) <video>

D) <play>


Part 2: The Style (CSS) 

4. What is the way to choose an element with the id navbar?

A) .navbar

B) navbar

C) #navbar

D) navbar

5. What is the layer between the content and the border in the CSS Box Model?

A) Margin

B) Padding

C) Outline

D) Spacing

6. What is the CSS property that regulates the text size?

A) font-style

B) text-size

C) font-size

D) text-style

7. How can you make a list of its items with squares?

A) list-type: square;

B) list-style-type: square;

C) ul-style: square;

D) list: square;


Part 3: The Logic (JavaScript) 

8. Where is the JavaScript code that we write?

A) <js>

B) <scripting>

C) <javascript>

D) <script>

9. What is the JavaScript syntax of an IF statement?

A) if i = 5 then

B) if i == 5 then

C) if (i == 5)

D) if i = 5

10. What happens when the user clicks on an element in an HTML?

A) onmouseclick

B) onchange

C) onclick

D) onmouseover


The Answer Key

Look down slowly to see whether you are correct!

.

.

.

.

.

Answers:

1. B (<style>)

2. A (hidden)

3. C (<video>)

4. C (ID uses the hashtag #)

5. B (Padding within the border; Margin within the border)

6. C (font-size)

7. B (list-style-type)

8. D (<script>)

9. C (In JS, parentheses are mandatory: i.e. if (i = 5)

10. C (onclick)


How did you do?

0-4: Time to review the basics! 

5-8: Solid effort! You know your stuff. 

9-10: Web Master status! 

Post your score in the comments below. I would like to know who scored 10/10! 

Looking for learning English? Please, kindly read our post about Phrasal Verbs here

Post a Comment

Previous Post Next Post