HTML Flashcards

1
Q

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

A

In between the <title> </title>

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

In between the <body> </body>

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

in between the <html> </html>

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

It is an instruction to the web browser to show what version of HTML the page 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> <title> <p> <img></img> <span> <div>
</div></span></p></title></head>

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

Provide additional information about the contents of an 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

< less than sign
© copyright sign
® registered trademark sign

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 create a new line in the browser.

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 only take the space the content requires.

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 is 100%, Height depends on the content of the element. (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

Default width is the width of the content, and height is the height of the content.
Width and 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

ordered list are numbered. unordered list are not numbered but bulleted.
ordered = <ol> </ol>
undordered = <ul> </ul>

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

It is 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></a> anchor 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 full web address of the site that is being linked.

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

What is a relative URL?

A

when you are linking to other pages within the same site.

17
Q

What is the purpose of an HTML form element?

A

Forms are used to get user input and send it to the server.
Element used to group together data for the form.

18
Q

Give five examples of form control elements

A

<input></input> <textarea> <radio> <option> <select> <button></button></select></option></radio></textarea>

19
Q

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

A

name, value, checked, text, password

20
Q

Is an HTML <input></input> element a block element or an inline element?

A

inline element

21
Q

What are the six primary HTML elements for creating tables?

A

<table> <tr> <td> <th> <tbody> <tfoot>
</tfoot></tbody></th></td></tr></table>

22
Q

What purpose do the thead and tbody elements serve?

A

<thead> Used for headings in the table
<tbody> Used for the body of the table.
</tbody></thead>

23
Q

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

A

Expenditures
Calendar