HTML Flashcards

1
Q

Give five examples of HTML element types.

A

h1, img, a, ul, p

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

What is the purpose of HTML attributes?

A

HTML attributes provide additional information to the given element it is

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

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

A

Copyright Symbol = ©
Pound sign = £
Ampersand = &

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

How do block-level elements affect the document flow?

A

Will appear to start on a new line

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

How do inline elements affect the document flow?

A

Will appear to start immediately after the previous element on same line

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

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

A

100% width and auto height

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

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

A

auto for both

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

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

A

Ordered lists are numbered, unordered lists are bullet pointed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
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
10
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
11
Q

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

A

State directory then forward slash

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

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

A

../ to go up one and then ../ to go up again to grand parent

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

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

A

Simply state directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • What is the purpose of an HTMLformelement?
A

to get user input and send to server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • Give five examples of form control elements.
A
input 
textarea
select
button
label
fieldset
legend
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  • Give three examples oftypeattribute values for HTMLelements.
A

radio
checkbox
submit

17
Q
  • Is an HTMLelement a block element or an inline element?
A

inline

18
Q
  • What are the six primary HTML elements for creating tables?
A
th
td
tr
thead
tbody
table
19
Q
  • What purpose do thethreadandbodyelements serve?
A

thead for headings of columns or rows and tbody is for data stored inside those columns or rows

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

product and price, students and grades, car and mpg