wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Attributes and Structure

Total questions: 25

Worksheet time: 18mins

Name
Class
Date
1.

What is the correct structure of an html document?

a)

<html>

b)

<img src="file">

c)

<!DOCTYPE html>

d)

<br>

2.

How do you correctly add an image into html?

a)

<html>

b)

<img src="file">

c)

<a href="link">

d)

<link rel="link">

3.

Box model's layout consists of...

a)

Content

b)

Padding

c)

Borders

d)

Margin

e)

All of the above

4.

Define and name 3 attributes

4 lines
5.

How many list types are there?

(a)  

6.

What are the names of the different types of lists?

a)

ordered

b)

definition

c)

lettered

d)

unordered

e)

numbered

7.

To create a table you need the ___ tags.

a)

<tr> <td>

b)

<li> <ul>

c)

<br> <a>

8.

A type of css is (a)   .

9.

What are the different types of css position?

(a)  

10.

What is needed for adding borders into html?

a)

pixels

b)

what it looks like

c)

color

d)

length

e)

height

11.

To round the edges of your border you need..

(a)  

12.

A class in html is..

a)

an attribute assigned to an element that allows you to apply specific styles or functions to multiple elements.

b)

a tag that changes the color of just one element.

c)

an attribute that changes your elements position only.

d)

a attribute that specifies a unique id for an HTML element.

13.

A class in html is..

a)

a group of elements that are the same or similar.

b)

a group of elements that are unrelated.

c)

a group of elements that are different.

14.

How do you build and and use classes?

4 lines
15.

What tag do you use to group different elements into a box?

a)

"class"

b)

<div>

c)

<table>

16.

Name a CSS property

(a)  

17.

Name the psuedoclass we covered

(a)  

18.

Whats the tag to link a CSS style sheet?

a)

<link rel>

b)

<a href>

c)

<img src>

d)

<css>

19.

The target_blank attritube...

a)

loads your link on another page.

b)

makes the background color white.

c)

loads your link onto the same page/

20.

What tag do do you use to add a link into your html?

a)

<a href>

b)

<link rel>

c)

<img src>

d)

<p>

21.

Where does the <title> tag go in your html page?

(a)  

22.

What does the <title> tag do?

a)

create a header

b)

create a paragraph

c)

create the title for your html page

d)

labels a div

23.

HTML stands for (a)   .

24.

CSS stands for

(a)  

25.

What is an iframe?

a)

A little picture that goes in the tab

b)

an embedded element

c)

a link

d)

a border