HTML Links and Forms Flashcards

1
Q

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

A

Use ../ to indicate the folder above the current one, then follow it with the file name.

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

For a child folder, use the name of the child folder, followed by a forward slash, then the file name. <a>Listings</a>

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 grand parent directory?

A

Repeat the ../ to indicate that you want to go up two folders (rather than one), then follow it with the file name. <a>Home</a>

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

To link to a file in the same folder, just use the file name
<a>Reviews</a>

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

HTML form on a web page allows a user to enter data that is sent to a server for processing.

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

label, input, select, form, and textarea

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

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

A

type=”submit”, type=”password”, type=”radio”

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

Is an HTML <input></input> 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, table head<th>, table heading<th>, table body<tbody> table row<tr>, table data<td>

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

The <thead> HTML element defines the head of the columns of the table.
The <tbody> HTML element encapsulates a set of table rows (<tr> elements), indicating that they comprise the body of the table (<table>).

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

Financial reports and sport results

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

What are the names of the individual pieces of a CSS rule?

A

Selector and declaration

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

In CSS, how do you select elements by their class attribute?

A

.class-name{}

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

In CSS, how do you select elements by their tag name?

A

put the tag name and curly braces

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

In CSS, how do you select an element by its id attribute?

A

id-name{}

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

Name three different types of values you can use to specify colors in CSS

A

Rgb value, Hex Code and color name