HTML Flashcards

1
Q

The tag that encapsulates the entire page

A

html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Contains metadata for the page, nothing stored here is ever displayed on the page.

A

head

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Contains all the elements displayed on a page

A

body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Defines a section of the document, uses the full width of the page

A

div

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Defines a section of the document, only uses the space required to display the element

A

span

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Boldens text

A

b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Italicizes text

A

i

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Creates a paragraph with space above and below the element

A

p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Creates a hyperlink

A

a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

This is where the link in an <a></a> tag goes

A

href=””

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

An unordered list, bulletpoints basically

A

ul

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

An ordered, numbered list

A

ol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The tag given to each element in a list

A

li

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The various heading tags

A

h1, h2, …, h6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The image tag

A

img

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What 2 attributes does an img tag need?

A

src=”” and alt=””

17
Q

How do you make an a tag link to another part of the page?

A

href=”#id” the place you’re linking to must have an id attribute in the tag

18
Q

How do you get text input from the user?

A

input type =”text”

19
Q

How do you create placeholder text in an input tag?

A

placeholder=””

20
Q

What tag allows the submission of data

A

form

21
Q

what do you add to an input tag to make it required

A

required

22
Q

How do you create a set of radio buttons

A

input type=”radio”
nest it inside a label tag with a for attribute that’s the same as the id attribute of the input tag. All related radio buttons should have the same name attribute

23
Q

How do you create a set of checkboxes

A

input type=”checkbox”
nest it inside a label tag with a for attribute that’s the same as the id attribute of the input tag. All related checkboxes should have the same name attribute

24
Q

How do you make radio buttons or checkboxes checked by default?

A

add checked to the input tag

25
Q

How do you tell if a page is HTML5?

A

at the top it will say !DOCTYPE html