Basic HTML Elements
Attributes & Links
The Style Attribute
Text Formatting Tags
Mixed Challenge
100

What does HTML stand for?

HyperText Markup Language

100

What attribute tells the browser where an image file is?

src

100

What does the style attribute control?

How the element looks (its visual style).

100

Which tag makes bold text?

<b>

100

What is the name of the program we installed to write HTML code?

Visual Studio Code

200

Which tag is used for the largest heading?

<h1>

200

What attribute tells a link where to go (the website address)?

href

200

Which style property changes the background color?

background-color

200

Which tag makes italic text?

<i>

200

True or False: HTML comments are visible on the webpage.

False

300

Which tag is used for a paragraph?

<p>

300

Write a simple link to Google: the text should say “Google”.

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


300

Which style property changes the text size?

font-size

300

Write a sentence where the word “important” is strong using HTML.  

<p>This is <strong>important</strong>.</p>


300

Fix the mistake: 

<p>This is <b>bold<p></b>

<p>This is <b>bold</b></p>


400

Which tag makes a line break (go to a new line)?

<br>

400

Which attribute is used to show alternative text if the image doesn’t load?

alt

400

Write a heading <h1> that shows blue text using style.

<h1 style="color: blue;">My Title</h1>


400

Which tag is used to show superscript, like the 2 in 10²?

<sup>

400

How do you write a comment in HTML that says:

“This is my quote section”?  

<!-- This is my quote section -->


500

Write a simple line of HTML that shows the text:Welcome to my website as a heading.  

<h1>Welcome to my website</h1>

500

Write code for an image that:

  • uses src="cat.jpg"

  • has width 200

  • alt text: “Cute cat”

 

<img src="cat.jpg" width="200" alt="Cute cat">


500

Make this text centered and big:
“Hello Students!” (as a paragraph).

<p style="text-align: center; font-size: 24px;">

Hello Students!

</p>


500

Write HTML for:
“Water is H₂O” where 2 is subscript.

<p>Water is H<sub>2</sub>O</p>

500

Which tag is used for a short, inline quote?

<q>