HTML Flashcards

1
Q

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

A

Inside 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

Inside 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

Inside 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 declaration?

A

To let the brownser know which version of html this document is written in

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

< head >, < body >, < tittle >, < p >, < a >

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 give more information to the element: modifying it in cases; specifying types or sources in others; etc.

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

© or © , the Copywright (©) symbol.

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

They break lines and occupy the whole 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

They do not break the line, so the flow of text continues.

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

In a ordered list, the items sequence matter, and are usually denoted with a counting from 1. onwards.

In an unordered list, the items sequence don’t matter, and thus they’re usually denoted with a simple dot.

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

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 to another website?

A

< a > tag

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

What is an absolute URL?

A

the link to a file/web-page that includes its internet domain

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

What is a relative URL?

A

the path to a file from the current file’s directory.

17
Q

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

18
Q

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

A

child-directory/file.file-type

19
Q

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

20
Q

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

A

file.file-type

21
Q

What is the purpose of an HTML form element?

A

To collect user’s input

22
Q

Give five examples of form control elements.

A

< input >, < label >, < select >, < textarea >, < button >, < option >

23
Q

Give three examples of type attribute values for HTML elements.

A
< input type="button" >, 
< input type="checkbox" >, 
< input type="email" >, 
< input type="file" >, 
< input type="password" >, 
< input type="text" >
24
Q

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

A

it’s a block-inline element

25
What are the six primary HTML elements for creating tables?
< table >, < th >, < tr >, < td >, < thead >, < tbody >, < tfoot >
26
What purpose do the thead and tbody elements serve?
differentiate regions of the table, but with simillar capabilities
27
Give two examples of data that would lend itself well to being displayed in a table.
Financial data, Populational Data (basically, any statistics based data)