HTML Flashcards

1
Q

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

A

The head and body tags are children of the HTML element and siblings of each other

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

What is the purpose of a declaration?

A

Instructs the browser what version of HTML is written in

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

Give five examples of HTML element types.

A
h1
header
p
image
div
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of HTML attributes?

A

HTML attributes provide additional information about HTML elements

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

Give an example of an HTML entity (escape character).

A

® registered trademark
© copyright symbol
greater than symbol

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

How do block-level elements affect the document flow?

A

Some elements will always appear to start on a new line in the browser window. These are known as block level elements.Examples of block elements are <h1>, </h1><p>, </p><ul>, and <li>.</li></ul>

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

How do inline elements affect the document flow?

A

Some elements will always appear to continue on the same line as their neighboring elements. These are known as inline elements. Examples of inline elements are <a>, <b>, <em>, and <img></img>.</em></b></a>

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

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

A

By default, the height of a block element is the height of the content, and the width is the length of the page

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

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

A

An inline element does not start on a new line and only takes up as much width as necessary.Width and height are both auto.

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 lists are lists where each item in the list is numbered. For example, the list might be a set of steps for a recipe that must be performed in order, or a legal contract where each point needs to be identified by a section number.
Unordered lists are lists that begin with a bullet point (rather than characters that indicate order).

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 elements

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

a href=”http://www.imdb.com”>IMDB

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

What is an absolute URL?

A

full web address for the site includes domain

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

What is a relative URL?

A

A relative URL is a URL that only includes the path (or everything that comes after the domain

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

../

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

Child directory/(where to look)

17
Q

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

A

../../(where to look)

18
Q

Read: < a href= “about-me/about-me.html” > About Me

A

opening tag for a element There is an href attribute with a value of a relative url pointing to the about-me.html file within the about-me directory with some text content and then a closing tag for the a element

19
Q

Read:<a>home page</a><a></a>

A

Ex. there is an href attribute with a value of a relative url pointing to the index.html file within the parent directory

20
Q

What is the purpose of an HTML form element?

A

The HTML element represents a document section containing interactive controls for submitting information
An HTML form is used to collect user input. The user input is most often sent to a server for processing.

21
Q

Give five examples of form control elements.

A
form
fieldset
legend
textarea
label
button
input
22
Q

Give three examples of type attribute values for HTML elements.

A

The common input types button, checkbox, file, hidden, image, password, radio, reset, submit, and text.

23
Q

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

A

Inline Element

24
Q

What are the six primary HTML elements for creating tables?

A
table 
 tr
 td
 th
 thead 
tbody
25
Q

What purpose do the thead and tbody elements serve?

A

help distinguish between the

main content of the table and the first and last rows

26
Q

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

A

Examples of tables include financial reports, TV schedules, and sports results.

27
Q

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

A
Declaration block(curly braces {}) &
selector{property:value}
28
Q

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

A

id value

29
Q

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

A

RGB
Hex codes
color names