HTML Flashcards

(27 cards)

1
Q

Where to put non-visible content?

A

in the <head> element

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

Where to put visible content?

A

in the <body> element

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

Where do the <head> and <body> tags go?

A

in the <html> element

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

What is the purpose of a <!DOCTYPE> declaration?

A

it tells the browser what type of html we are using

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

Give five html element types

A

<body> <h1> <p> <img></img> <title>
</title></p></h1></body>

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

What is the purpose of HTML attributes?

A

it gives more information about the contents of an element

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

Give an example of an HTML entity(escape characters)

A

© × & ®

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

How do block-level elements affect the document flow?

A

It separates into blocks creating a container.

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

How do inline elements affect the document flow?

A

It doesn’t. It changes the element in a line so it doesn’t change the flow.

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

What is the default height and width of a block-level element?

A

Size of the entire width of the page.

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

What is the default height and width of a inline element?

A

It is the size of the content.

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

Difference between ordered and unordered lists.

A

Ordered <ol> lists are either numbered or lettered while unordered <ul> are listed in bullet points.

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

Is an HTML list a block or inline element?

A

It is a block element.

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

What HTML tag is used to link another website?

A

anchor tag <a></a>

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

Example of an absolute URL

A

https://www.google.com

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

Example of a relative URL

A

../example/example.html

17
Q

Relative link to a parent directory

18
Q

Relative link to a child directory

19
Q

Relative link to a grandparent directory

A

../../example

20
Q

Relative link to the same directory

21
Q

Purpose of the HTML <form> element

A

Used to create forms that would submit information to the server

22
Q

Five examples of form control elements

A

<input></input> <button> <select> <textarea> <label></label></textarea></select></button>

23
Q

Give examples of type attribute

A

“text” “radio” “email” “checkbox” “password”

24
Q

Is an HTML <input></input> element a block or inline element?

A

Inline. <form> is a block

25
What are the six primary HTML elements used for creating tables?
and element?
the
element is used for the titles or headers of that table. while the element is used for the normal contents/data
27
Give two examples of data that would lend itself well to being displayed in a table.
kills and deaths in a video game a used car model year and mileage
26
What is the purpose of the