HTML Flashcards

1
Q

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

A

Non-visible content is placed in the head tag.

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

Visible content is placed in the body tag.

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

The head and body tags belong within the 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

The !doctype declaration lets the browser know what the document contains and/or 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 tags.

A
html - Encompasses the entire project.
head - Used for non-visible elements.
body - Used for visible elements.
p - Paragraph tag.
h1-h6 - Heading tags.
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

HTML Attributes are used to edit the ‘settings’ of the targeted 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 character).

A

An escape character is used in text to encode a symbol. e.g. &’amp’ for ‘&’.

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 take up an entire row of screen space and add spacing before and after the content.

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 use extra spacing and simply affect the content selected.

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

The default width of a block-level element is equal to the entire horizontal space of its parent element/container. The height is equal to its contents.

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

The default height and width of an inline element are equal to the contents.

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 lists will add numerical bullet points to your list items while an unordered lists uses default 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 element or an inline element?

A

An HTML list is a block element. It takes up all horizontal space.

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, ‘a’.

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 link to another 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 relative URL is the path to another file within the same server.

17
Q

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

A

To ‘step out’ into the parent directory you would use ‘../file-name’.

18
Q

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

A

To ‘step in’ the child element you would use the folder name followed by the file name. e.g. ‘folder/filename’.

19
Q

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

A

A grandparent directory would be stepping out twice. This can be done with ‘../../filename’.

20
Q

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

A

For a link to the same directory nothing but the direct filename is needed. e.g. ‘filename’.

21
Q

What is the purpose of an HTML form element?

A

A form element is used to get values from the user and submit them to a server.

22
Q

Give five examples of form control elements.

A

form - Used to encapsulate the form and how to send the data to the server.

input - Used to create a section for input from user.

label - Typically a question attached to an ‘input’.

textarea - Creates a textbox for longer text answers.

button - Creates a clickable button.

23
Q

Give three examples of type attributes for HTML input elements.

A

radio - Creates a single choice prompt out of multiple answers.

checkbox - Creates a multiple choice prompt.

submit - Creates a submit button to send your answers to the server.

24
Q

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

A

An HTML input element is an inline level element.

25
Q

What are the six primary HTML elements for creating tables?

A

thead - Encapsulates the header of the table.

th - Differentiates and bolds the header data cells.

tbody - Encapsulates the body of the table.

tr - Creates a table row.

td - Creates a table data cell.

tfoot - Encapsulates the footer of the table.

26
Q

What purpose do the thead and tbody elements serve?

A

The thead and tbody elements exist to seperate the header of the table and the body of the table. Very helpful for CSS purposes.

27
Q

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

A

Anything with large amounts of data would be nice for a table. e.g. Accounting data/Grades/etc.