HTML Flashcards

1
Q

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

A

the element

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

the element

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

the element

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 declare which language/documenty type the browser will run

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

, , , <h1>, </h1><p>, etc</p>

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

attributes provide additional information about their element(s)

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

Give an example of an HTML entity

A

©

®

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 while unordered lists are bulleted

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

What three HTML elements do you use to build a description list?

A
  1. Description list <dl>
  2. Description term <dt>
  3. Description definition </dt><dd></dd></dl>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an absolute URL?

A

A link to a full web address

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

What is a relative URL?

A

A link to another page on the same site

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

What other ways can we use an anchor tag?

A
  • Making an email link
  • linking to different part on the same page
  • opening a new window
  • linking to a different part on a different page
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you indicate the parent folder in a path?

A

Use “../” then name of file

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

How do you indicate the child folder in a path?

A

Use the name of the child folder, then forward slash “/”, then name of file

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

How do you indicate the grandparent folder in a path?

A

Use “../../”, repeating the parent folder and then follow with the name of file

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

How do you indicate the current folder in a path?

A

Simply use the file name - nothing else needed.

17
Q

What are the six primary elements for creating tables?

A
  1. 6.
18
Q

What purpose do the and elements serve?

A
  1. is used to display the headings of the table

2. is used to display the actual body/contents of the table

19
Q

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

A

Grades and sports statistics

20
Q

Why are forms useful?

A

They compile data in an easy/simple way

21
Q

What attribute do you have to match between a and an

A

the ‘for’ attribute in and the ‘id’ attribute in

22
Q

What type of input allows you to select multiple items in a dropdown?

A

the attribute

23
Q

What is the action of a form?

A

The location of where the data is being sent

24
Q

What is the purpose of an HTML form element?

A

To create a form on the webpage

25
Q

Give five examples of form control elements:

A

Possible answers:

  • text input
  • password input
  • text area
  • radio buttons
  • checkboxes
  • drop-down boxes
  • submit buttons
  • image buttons
  • file upload
26
Q

Give three examples of type attributes for the HTML elements

A

Possible answers:

  • text
  • password
  • radio
  • checkbox
  • file
  • submit
  • image
  • hidden