HTML Flashcards

1
Q

Where do you put non-visible content about the HTML document?

A

In the head element

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

Where do you put visible content about the html document?

A

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 in an html document?

A

head and body tags are children of the html element and siblings of each other.

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

What is the purpose of the !DOCTYPE declaration?

A

To let the browser know what kind of document to display.

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

What is the purpose of html attributes?

A

To allow you to customize elements.

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

What is the syntax of an html entity (escape character)?

A

ampersand + word + ;

Example ©

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

How do block-level elements affect the flow of the html documents?

A

They begin on a new line

Take up 100% of the width available

Let the content dictate the height

height: auto
width: 100%

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

How do inline-level elements affect the flow of a html document?

A

Does not start on a new line

Width and height are determined by the content of the element

Height: auto
width: auto

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

What is the “i” element used for?

A

Icon

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

What is the difference between ordered and unordered lists?

A

Ordered lists are number and have order while unordered lists are bulleted without order.

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

Is an html list a block or inline element?

A

Block level element.

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

What HTML tag is used to link to another website?

A

An “a” tag

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

What is an absolute URL?

A

full address of a website

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

What is a relative URL?

A

URL for navigation within your own website or current website

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

How do you indicate the relative link to the parent directory?

A

../file.html

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

How do you indicate the relative link to a child directory?

A

directory/file.html

17
Q

How do you indicate the relative link to a grand parent directory?

A

../../file.html

18
Q

How do you indicate the relative link to the same directory?

A

file.html

19
Q

What is the purpose of the html form element?

A

The form element represents a document with interactive controls for submitting information.

20
Q

5 Examples of form control elements:

A
input
text area 
radio button 
select
submit button
21
Q

Give 3 examples of type attribute values for html input elements

A
button
checkbox
email 
file 
image 
password
radio 
search 
submit
22
Q

Is an html input element a block or inline element?

A

Inline element

23
Q

What are the 6 primary html elements for creating tables?

A
table
thead
tr
th
tbody
td
24
Q

What purpose do THEAD and TBODY elements serve?

A

THEAD helps distinguish content that should define the head of the columns of the table. This helps with SEO.
TBODY helps distinguish content in rows that should be in the body of the table. This helps with SEO.

25
Q

Examples of data that would lend itself to be displayed in a table:

A
stock info
bank info 
sports stats
schedules
multiplication table