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

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 in a valid HTML document?

A

Underneath the DOCTYPE declaration and the opening html tag

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

To let the browser know what type of document it is loading

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

Give five examples of HTML element types.

A
html
head
body
style
meta
title
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

to configure the elements or adjust their behavior to meet the criteria users want.

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 character).

A

& amp ;

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

Block-level elements typically cause a line break to occur

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

Inline elements do not force a new line to begin in the document flow

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

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

A

Width: 100%
Height: Auto

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

What are the default width and height of an inline element?

A

Width: Auto
Height: Auto

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

What is the difference between an ordered list and an unordered list in HTML?

A

An ordered list is a list where numerical order matters (i.e. steps to bake cookies from scratch), while an unordered list is a list where order doesn’t matter (i.e. grocery list or list of students in class)

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

Is an HTML list a block element or an inline element?

A

Block

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

What HTML tag is used to link to another website?

A

the anchor tag

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

What is an absolute URL?

A

An absolute URL is a ‘full’ URL or one that contains the entire address of the page. These types of URLs are often found when a website is linking out to another website that is not using the same server as your website.

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

What is a relative URL?

A

A URL that only includes the path (everything after the domain) because it is assumed that when linking a relative URL, it uses the same protocol, subdomain and domain as the page it’s on.

17
Q

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

A

Using “../” followed by the file name

18
Q

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

A

Using name of the of the child folder, forward slash, then file name

19
Q

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

A

Using “../” then “../” again to go up two folders rather than one, then the file name

20
Q

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

A

Just use the file name. Nothing else.

21
Q

What is the purpose of an HTML form element?

A

Collect data from users

22
Q

Give five examples of form control elements.

A

Input, text area, select, option, legend, fieldset

23
Q

Give three examples of type attribute values for HTML input elements.

A

Text, checkbox, radio

24
Q

Is an HTML input element a block element or an inline element?

A

Inline

25
Q

What are the six primary HTML elements for creating tables?

A

Table, tr, td, th, thead, tbody, tfoot

26
Q

What purpose do the thead and tbody elements serve?

A

thead is where the headings of the table goes, while tbody is where the data of the table goes

27
Q

Give two examples of data that would lend itself well to being displayed in a table.

A

Financial reports and sports stats

28
Q

Which HTML meta tag is used in mobile-responsive web pages?

A

Viewport tag