HTML Flashcards

1
Q

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

A

../filename - parent directory (../)

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

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

A

parentname/childname/filename

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

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

A

../../filename

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

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

A

Filename

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

What is the purpose of an HTML form element?

A

Hold the content of the form, to set out the boundaries for the form element

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

Give five examples of form control elements.

A

Input, textarea, select, option, button

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

Give three examples of type attributes for HTML elements.

A

checkbox,radio,submit

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

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

A

Inline element

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

What are the six primary HTML elements for creating tables?

A

Table, thead,tbody,td,tr,th

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

What purpose do the thead and tbody elements serve?

A

To separate the body and head of the tables, so the title of the main row titles would go on the thead and everything else in tbody

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

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

A

Numbers, text, string

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

Give five examples of HTML element tags.

A

Head, body HTML, title, and paragraph.

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

What is the purpose of HTML attributes?

A

To give more information about the elements and tags.

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

Give an example of an HTML entity (the escape character).

A

Trademark character

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

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

A

An ordered list must be followed in the right order like a series of steps and numbered to follow it by. An unordered list is one where the order doesn’t matter like a list of grocery items.

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

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

A

Block element

17
Q

What is the purpose of a declaration?

A

To declare the HTML version

18
Q

Where do the and tags go in a valid HTML document?

A

The head tag goes before the body tag

19
Q

Where do you put visible content about the HTML document?

A

Between the body tag

20
Q

What HTML tag is used to link to another website?

A

The anchor a tag

21
Q

What is an absolute URL?

A

The absolute URL contains all the information to locate a resource

22
Q

What is a relative URL?

A

A relative URL uses an absolute URL to locate a source

23
Q

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

A

width: 100% height: auto

24
Q

How do inline elements affect the document flow?

A

They don’t affect the document flow

25
Q

How do block-level elements affect the document flow?

A

They make the text or content start in a new line

26
Q

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

A

It takes as much width and height as it needs