COMM 260: HTML quiz

1. What does HTML stand for?

2. What is the HTML tag for inserting a line break?

3. What is correct HTML for adding a background color?

4. What is correct HTML for an unordered list?

5. What is correct HTML for adding a hyperlink?

6. What is correct HTML for adding an image?

7. What is correct HTML for an ordered list?

8. What is correct HTML for boldface text?

9. What is a METATAG often used for?

10. Which HTML tag renders the largest heading?

 

COMM 260 Quiz: CSS

1. What does CSS stand for?

2. Advantages of using CSS for web development include
a. separates content from design.
b. makes it easier to update design on all pages.
c. more flexible than HTML.
d. All of the above.

3. What is the correct HTML for referring to an external style sheet?
a. <stylesheet>mystyle.css</stylesheet>
b. <style src="mystyle.css">
c. <link rel="stylesheet" type="text/css" href="mystyle.css">
d. None of the above.

4. Which HTML tag is used to define an internal style sheet?
a. <style type="text/css">
b. <style="css">
c. <script>
d. All are possible.

5. Which is the correct CSS syntax?
a. {body:color=black(body}
b. body {color: black}
c. body:color=black
d. {body; color: black}

6. Which CSS property controls text size?
a. font-size:
b. text-style:
c. text-size:
d. font-style:

7. How do you change the font of an element in CSS?
a. f:
b. font=
c. font-family:

8. How do you make text bold?
a. style: bold
b. font-weight: bold
c. font: b
d. text-weight: bold

8. Which of the choices below is an example of a CSS pseudoclass?

a. p {font-family: 'gil sans', arial; font-size: 20px; color: midnightblue; font-variant: small-caps;}
b. <p class="samplerule">
c. a:link {color: midnightblue;}
d. <div class="menubar">

9. What is a CSS class used for?
a. Assign HTML tags with more than one style.
b. Assign HTML metatags for better search engine performance.
c. Assign HTML tags for better JavaScript handling.
d. Assign HTML tags with pseudoclasses allowing link rollovers.

10. Which property is used to change the background color?
a. bgcolor:
b. background-color:
c. color:
d. h1 color: