HTML Flashcards

1
Q

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

A

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

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

within html element, head first then body

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

What is the purpose of a declaration?

A

declare the version of html

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

body, head, html, img, a, p, div, span, h1-h6

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

An attribute either modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them.

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

© COPYRIGHT SIGN
® REGISTERED SIGN
€ EURO SIGN
™ TRADEMARK

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

takes up the width of the page

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

the are placed within texts or elements

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 of the page and as much height as it needs

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

it is the height and width of the content

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

ordered will have numbers to indicate an order and unordered are just dots

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

a or anchor

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

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

What is a relative URL?

A

A relative URL is a URL that only includes the path. The path is everything that comes after the domain, including the directory and slug. Within the application

17
Q

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

A

../

18
Q

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

A

list the name of the directory with the file

19
Q

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

A

../../

20
Q

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

A

type the name of the file

21
Q

What is the purpose of an HTML form element?

A

HTML element represents a document section containing interactive controls for submitting information.

22
Q

Give five examples of form control elements.

A

button, input, select, fieldset, option

23
Q

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

A

email, password, submit, checkbox, radio

24
Q

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

A

inline but more specifically inline-block

25
Q

What are the six primary HTML elements for creating tables?

A

td, th, tr, tbody, thead, tfoot

26
Q

What purpose do the thead and tbody elements serve?

A

Distinguish between the first line, body and last line

27
Q

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

A

stock stats, sport stats