HTML Flashcards

1
Q

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

A

head element

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

HTML Skeleton:
Where do you put visible content about the HTML document?

A

body element

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

HTML Skeleton:
Where do the <head> and <body> tags go in a valid HTML document?

A

inside html element, head first and body after head

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

HTML Skeleton:
What is the purpose of a <!DOCTYPE> declaration?

A

a DOCTYPE declaration tells the browser which version of HTML the page is using

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

HTML Syntax:
Give five examples of HTML element types

A

<html>, <head>, <body>, <p>, <h1>
</h1></p></body></head></html>

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

HTML Syntax:
What is the purpose of HTML attributes?

A

the HTML attribute provides 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

HTML Syntax:
Give an example of an HTML entity (escape character)

A

© (copyright symbol)

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

HTML Block and Inline:
How do block-level elements affect the document flow?

A

block elements always starts on a new line

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

HTML Block and Inline:
How do inline elements affect the document flow?

A

inline elements continues on the same line as their neighboring elements

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

HTML Block and Inline:
What are the default width and height of a block-level element?

A

width of a block element is the full length of the page
height of a block element is auto (length of content)

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

HTML Block and Inline:
What are the default width and height of an inline element?

A

the width and height of an inline element are auto

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

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

A

an ordered list numbers its list items
an unordered list has bullet points for the list items

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

HTML Lists:
Is an HTML list a block element or an inline element

A

an HTML list is a block element

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

HTML Links:
What HTML tag is used to link to another website?

A

<a> anchor tag</a>

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

HTML Links:
What is an absolute URL?

A

an absolute URL is a link to a different website to yours

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

HTML Links:
What is a relative URL?

A

a relative URL is a link from the same website

17
Q

HTML Relative Links:
How do you indicate the relative link to a parent directory?

A

../ followed by the file name

18
Q

HTML Relative Links:
How do you indicate the relative link to a child directory?

A

name of the child folder, forward slash, then file name

19
Q

HTML Relative Links:
How do you indicate the relative link to a grandparent directory?

A

../../ then the file name

20
Q

HTML Relative Links:
How do you indicate the relative link to the same directory?

A

just use the file name

21
Q

HTML Forms:
What is the purpose of an HTML form element?

A

an HTML form is a boundary of the form

22
Q

HTML Forms:
Give five examples of form control elements

A

input, select, textarea, button, option

23
Q

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

A

type=”text” (creates a single-line text input)
type=”password” (creates a text box that acts just like a single-line text input, but the characters are blocked out)
type=”radio” (allows users to pick just one of a number of options)

24
Q

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

A

an HTML <input></input> element is an inline element

25
Q

HTML Tables:
What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, tbody, tfoot

26
Q

HTML Tables:
What purpose do the thead and tbody elements serve?

A

organizational

27
Q

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

A

financial reports, tv schedules, sport statistics, stock reports, timetables