You are on page 1of 5

1.What does HTML stand for?

a. Hypertext Medium Language


b.Hippo Tries Making Licorice
c.Hypertext Markup Lingo
d.Hypertext Markup Language

2.The content of the web (such as your pictures, text, links) will show up here.
a.Head
b.Style
c.Body
d.Folder

3.Which of the following is the largest heading?


a.H2
b.H3
c.H4
d.H6

4.The following tag will show a bulleted list


a.<ul>
b.<ol>
c.<li>
d.<list>

5.What is the difference between HTML and CSS?


a.CSS is one type of HTML
b.HTML gives a webpage structure. CSS provides styling.
c.CSS structures a webpage. HTML strictly provides styling.
d.There is no difference.

6.What is wrong with this tag:


<img src="mypic.jpg" />

a.Should be replaced with href


b.The alt attribute is missing.
c.The </img> tag is missing.
d.There are no errors.

7.Which of these has correct syntax?


a.<!DOCTYPE html>
b.!<DOCTYPE html>
c.<DOCTYPE! html>
d.<DOCTYPE html !>

8.Which of these is an HTML attribute?


a. table
b. border
c. tr
d. td

9.Which tag is used with the <figure> tag to display an image?


a.<img>
b.<src>
c.<fig>
d.<a>

10.What section of a web page contains the author of the document, copyright information, links to the terms of the
use, contact information, etc.
a.Header
b.Footer
c.Nav
d.Div

11.Which is the correct code to insert a horizontal line in a web page?


a.<br>
b.<h1>
c.<hr>
d.<li>

12.In the code below, which line indicates the end of an HTML document?
a. </body>
b.<title>Document title</title>
c. </html>
d. <body>

13. Which of these three componenets is


a. XML
b. HTML
c. CSS
d. JavaScript

14. What is the function of the <p> tag?


a. Defines a paragraph.
b. Makes the text purple.
c. It pushes the text to the right.
d. Prints the webpage.

15. You should save HTML files with which file extension?
a .htm
b. .index
c. .webpage
d. .html

16. Which is the correct tag to change the colour of Hello to RED?
a. <font color="Pink">This is some text!</font>
b. <font color="red">Hello</font>
c. <font color="red">hello//</font>
d. <font colour="red">This is some text!</font>

17. Which code will make your background red?


a. <body style=background-color:red;>
b. <body bgcolor=red>
c. <background color=red>
d. <background =red>

18. Which of the following codes would create a horizontal line


a. <br>
b. <h1></h1>
c. <hr>
d. <p>

19. Which code below is correct for a hyperlink


a. <a>"https://google.com"Click Me</a>
b. <a herf="https://google.com">Click Me</a>
c. <a>Click Me>"https://google.com"</a>
d. <a href="https://google.com">Click Me</a>

20. Why won't the following anchor tag work?


a. <a href=https://www.google.com/>click here</a>
b. The link is incorrect. it should be ref, not href
c. The URL is missing quotation marks
d. There is no anchor tag in the code
e. The href is missing a closing tag

21. Which attribute contains the URL to a linked web page?


a. href
b. type
c. src
d. name

22. Which of the following is the closing tag for a hyperlink?


a. </link>
b. </a>
c. </a href>
d. </hyperlink>

23. Which tag is used to make text bold?


a. <a>
b. <b>
c. <I>
d. <strong>

24. Which tag is used to italicize text?


a. <a>
b. <em>
c. <b>
d. <i>
25. Which tag will display text in the browser's tab?
a. <html>
b. <heading>
c. <title>
d. <tab>

26. Which tag tells the browser to display the text in a paragraph?
a. <displaytext>
b. <text>
c. <paragraph>
d. <p>

27. Which symbol do we use to close a tag?


a. #
b. ?
c. /
d. $

28. Which tag do we have at the end of our HTML document?


a. <end>
b. </end>
c. <html>
d. </html>

29. Tags that don't hold information between an opening and closing tag (<hr /> and <br />) are referred to as
a. Opening tags
b. Closing tags
c. Empty tags
d. Single tags

30. What does this mean:


#main { background-color: red; }

a. The object with ID of main has a background colour of red


b. The object with CLASS main has a background colour of red
c. All objects on the page are red
d. The body of the page is red

31. Which of the following attribute specifies a keyboard shortcut to access an element in HTML5?
a. accesskey
b. key
c. contextmenu
d. contextkey

32. Which of the following input control represents a time (hour, minute, seconds, fractional seconds) encoded accor
ding to ISO 8601 in Web Form 2.0?
a. week
b. time
c. number
e. range

33.Which of the following tag is used to represent the result of different types of output in HTML5?
a. output
b. placeholder
c. autofocus
e. required

34. Which of the following is true about 'audio' tag in HTML5?


a. Commonly used audio formats ogg, mp3 and wav are supported.
b. You can use <source> tag to specify media along with media type and many other attributes.
c. An audio element allows multiple source elements and browser will use the first recognized format.
d. All of the above.

You might also like