HTML Flashcards

1
Q

What is the purpose of an HTML form element?

A

to collect data from users

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

Give five examples of form control elements

A
  • *totally wrong??**
  • text input
  • text area
  • password input
  • radio buttons
  • checkboxes
  • drop-down boxes
  • submit buttons
  • image buttons (subscribe image)
  • file upload
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give three examples of TYPE attribute values for HTML input elements

A

“text”
“password”
“radio”
“checkbox”

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

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

A

in-line block

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

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
6
Q

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
7
Q

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

A

nested within the html element

- head is above body

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

What is the purpose of a declaration?

A
  • to tell us what type of html is being used

- to help browser render correctly

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

Give five examples of HTML element types.

A
  • html
  • head
  • body
  • img
  • h1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the purpose of HTML attributes?

A

provides additional info about the contents of an element

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

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

A

Ampersand - &

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

How do block-level elements affect the document flow?

A

They always start on a new line

Ex: <h1>, </h1><p>, </p><ul>, and <li></ul>

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

How do inline elements affect the document flow?

A

They continue on the same line as their neighboring elements

Ex: <a>, <b>, <em>, <img></img></em></b></a>

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

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

A

height of the content x width of the webpage

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

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

A

exactly the width and height of the content

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

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

A
  • ordered list is numbered / alphabetized

- unordered list is bullet points

17
Q

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

A

block

18
Q

What HTML tag is used to link to another website?

A

a / anchor tag

19
Q

What is an absolute URL?

A

A link to a page with the domain name

20
Q

What is a relative URL?

A

Link to a page that exists on the same website

21
Q

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

A

ex: ../index.html

22
Q

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

A

name of the child folder, forward slash, file name

ex: music/listing.html

23
Q

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

A

repeat the ../ twice to go up two folders (parent –> grandparent)
ex: ../../index.html

24
Q

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

A

value of the href attribute is just the name of the file

25
Q

What are the six primary HTML elements for creating tables?

A
  • table
  • tr: table row
  • th: table header
  • td: table data / a cell within each row
  • thead
  • tbody
  • tfoot
26
Q

What purpose do the thead and tbody elements serve?

A

to separate different parts of the table, for styling purposes. also, to help people who use screen readers

27
Q

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

A
  • sports results
  • time table (train or bus sched)
  • student assessment data
  • should not be used for layout features