HTML & CSS Reviewer

Master the basics — one question at a time

1. What does HTML stand for?
  1. How to Make Lumpia
  2. HyperText Markup Language
  3. How to Make Loop
HyperText Markup Language

HTML is the standard language used to create and structure web pages.

2. What does "<a>" stand for?
  1. HTML <a> href Attribute
  2. HTML <a> align Attribute
  3. HTML <a> alink Attribute
HTML <a> href Attribute

The <a> tag with href creates clickable hyperlinks.

3. Who first invented HTML?
  1. Tim Berners-Lee
  2. Mark Zuckerberg
  3. Bill Gates
Tim Berners-Lee

He invented HTML in 1989 while working at CERN to share documents.

4. Which is the correct HTML image tag?
  1. <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
  2. img src="..." (no <img>)
  3. >img ... < (backwards)
<img src="..." alt="..." width="..." height="...">

The <img> tag needs src and alt for accessibility.

5. Correct HTML element for a line break?
  1. <break>
  2. <br>
  3. <lb>
<br>

<br> forces a new line without creating a new paragraph.

6. Which tag defines an internal style sheet?
  1. <style>
  2. <css>
  3. <script>
<style>

CSS inside <style> in the <head> applies to the whole page.

7. How do you make text bold in HTML?
  1. <strong> or <b>
  2. <bold>
  3. <em>
<strong> or <b>

<strong> is semantic (important), <b> is visual only.

8. CSS property to change background color?
  1. color
  2. background-color
  3. bgcolor
background-color

Use background-color: red; to fill an element’s background.

9. Correct CSS to make paragraph text red?
  1. p {text-color: red;}
  2. p {color: red;}
  3. p {font-color: red;}
p {color: red;}

The color property changes text color in CSS.

10. Which CSS property changes the font?
  1. font-style
  2. font-family
  3. font-weight
font-family

font-family: Arial, sans-serif; sets the typeface.

11. Largest heading in HTML?
  1. <heading>
  2. <h1>
  3. <head>
<h1>

<h1> is the most important heading; <h6> is smallest.

12. Correct element for a paragraph?
  1. <pg>
  2. <p>
  3. <para>
<p>

<p> defines a block of text as a paragraph.

13. Tag to define a hyperlink?
  1. <a>
  2. <link>
  3. <hyper>
<a>

<a href="..."> creates clickable links.

14. Attribute for image alternate text?
  1. title
  2. alt
  3. src
alt

alt text shows if image fails and helps screen readers.

15. CSS property to control text size?
  1. font-size
  2. text-style
  3. font-weight
font-size

Use font-size: 16px; to set text size.

16. CSS property for inner spacing?
  1. margin
  2. padding
  3. spacing
padding

padding adds space inside the border, margin outside.

17. What does CSS stand for?
  1. Creative Style Sheets
  2. Cascading Style Sheets
  3. Computer Style Sheets
Cascading Style Sheets

CSS controls the look and layout of HTML elements.

18. CSS property to align text?
  1. text-align
  2. alignment
  3. font-align
text-align

Use text-align: center; to center text horizontally.

19. How to make a bullet list in HTML?
  1. <ul>
  2. <ol>
  3. <list>
<ul>

<ul> = unordered (bullets), <ol> = ordered (numbers).

20. CSS property for line spacing?
  1. line-spacing
  2. line-height
  3. letter-spacing
line-height

line-height: 1.6; controls space between lines of text.

Home