Web Design Midterm Study Guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

10 Terms

1
New cards

What does HTML stand for?

Hyper Text Markup Language

2
New cards

Which of the following is an example of metadata about a webpage

a) The title of the webpage

b) The body of the webpage

c) A <h1> tag on the webpage

d) All of the above

a) The title of the webpage (Why?: Metadata is data about data. The webpage is the data, and the title describes the webpage, so the title is data about data)

3
New cards

True or False: As long as you cite your sources, you can put any image you find online on your website.

False (Why?: Depending on the copyright license that the author has, you might not be able to put their image on your website.)

4
New cards

Which of the following HTML code snippets is the proper way to set the background color of an <h1> tag to be blue?

a)<blue><h1>Hello</h1></blue>

b)<h1 background-color=“blue”>Hello</h1>

c)<h1 style=“blue”>Hello</h1>

d)<h1 style=“background-color:blue;”>Hello</h1>

d) <h1 style=“background-color:blue;”>Hello</h1>

5
New cards

What is the function of the Cascade in CSS?

The Cascade determines which CSS rules will be applied when multiple rules for an item are contradictory.

6
New cards

In what order does the Cascade look at factors to determine which CSS rule to follow?

Importance, Specificity, Order

7
New cards

True or False: It is possible to embed any website inside IFrames.

False (Why?: For security reasons, some sites won’t allow themselves to be embedded inside IFrames.)

8
New cards

What is the difference between <span> and <div>?

<span> is used to group and style inline elements, while <div> creates a line break

9
New cards

Which of the following selects all <p> tags with the class alert and makes them red?

a) p.alert { color: red; }

b) .alert p { color:red; }

c) p alert { color:red; }

a) p.alert { color: red; }

10
New cards

How can I select all <h1> tags that are immediate children of <div> tags?

a) div h1 { … }

b) div > h1 { … }

c) div { h1 { … } }

d) .h1 div { … }

b) div > h1 { … }