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
(h1, p, ul, li)

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
(img, em, b, i, sup, sub)

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 or parent container
height of a block element is auto (height 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 than the one you’re on

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 (your 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

nameOfChildFolder/thenFileName

19
Q

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

A

../../thenFileName

20
Q

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

A

just the file name

21
Q

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

A

an HTML form element is a boundary of the form
collects information from a user and sends it to a server

22
Q

HTML Forms:
Give five examples of form control elements

A

input, select, textarea, button, option, label

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=”checkbox” (allows users to select [and unselect] a checkbox)
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, thead, tbody, tr, td, th

26
Q

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

A

organizational purposes

27
Q

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

A

tv schedules, stock reports, sport statistics, timetables