HTML Flashcards

1
Q

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

A

Inside the title tags

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

Inside the body tags

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

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

A

Inside the HTML tag

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

What is the purpose of a declaration?

A

to inform a website visitor’s browser that the document being rendered is an HTML document

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

Give five examples of HTML element tags.

A
anchor tag: <a>
image tag: <img>
body tag: 
title tag: 
h1 tag: <h1></h1></a>
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

Modify/enhance tags

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

< : &lt

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

A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).

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

An inline element does not start on a new line and only takes up as much width as necessary.

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

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

A

Ordered: has numbers
Unordered: no numbers

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

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

A

Block element

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

What HTML tag is used to link to another website?

A

Anchor tags: <a></a>

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

What is an absolute URL?

A

A URL to a different page, the exact URL address

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

What is a relative URL?

A

A URL on the same site, usually just redirects to the folder directory

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

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

A

../parentName.html

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

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

A

Just the name of the folder then / then file name

17
Q

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

A

../../grandParentName.html

18
Q

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

A

just the file name

19
Q

What is the purpose of an HTML form element?

A

Allows your HTML document to collect user input (and then send that info over to a server)

20
Q

Give five examples of form control elements.

A
Radio button
	Text box
	Checkbox
	Select (with options)
	Button
21
Q

Give three examples of type attributes for HTML elements.

A

Submit
Radio
Text
Checkbox

22
Q

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

A

Inline

23
Q

What are the six primary HTML elements for creating tables?

A
Table
Td
Tr
Td
Thead
tbody
24
Q

What purpose do the thead and tbody elements serve?

A

Thead: heading data
Tbody: all the main content

25
Q

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

A

Student grades

Population data

26
Q

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

A

Width is the width of the document (width is 100% of the parent container by default)
Height is how much height it needs

27
Q

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

A

The width and height will be whatever the width and height of the content the inline element contains.

28
Q

Why would a tag need to be placed at the bottom of the HTML content instead of at the top?

A

So that all of the html code will be loaded in the document before you can query it with dom
If you put it first, the dom will query nothing.

29
Q

Which HTML meta tag is used in mobile-responsive web pages?

A

Viewport meta tag