HTML & CSS Flashcards

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

What does <!DOCTYPE html> do?

Tells the browser the page is using HTML5

2
New cards

What does <head>___</head> contain?

Metadata, title, CSS links, scripts——information not shown on the page.

3
New cards

What does the <body>___</body> contain?

All visible content displayed on the webpage.

4
New cards

What is the purpose of <h1> through <h6> tags?

Define headings; largest to smallest respectively.

5
New cards

What does the <p>___</p> tag represent?

A paragraph of text

6
New cards

What does the <a href=”__”> tag do?

Creates a clickable link to another page or location

7
New cards

What types of targets are used with <a href=”_”>? What does each do?

  • target = “_blank” —> Opens link in new tab/window

  • target = “_self” —> Default behavior; opens link in current tab/window

8
New cards

What do the <ul> and <ol> tags represent?

ul = unordered list

ol = ordered list

Both require <li>___</li> to write the list

9
New cards

What does the <img> tag do?

Displays an image

Use <img src=”___”> 

10
New cards

What is the purpose of the alt=”__” attribute in <img>?

Provides alternate text for screen readers and when the image cannot load

11
New cards

What does <div> represent?

Block-level container used to group elements

12
New cards

What does <span> represent?

Inline container used to style small pieces of text

13
New cards

What’s the difference between class and id in HTML?

Class can be reused on many elements

Id must be unique on the page

14
New cards

What does “color:” control in CSS do?

Controls the text color of an element

15
New cards

What does “background-color:” control?

Background color of an element

16
New cards
17
New cards
18
New cards
19
New cards