HTML Flashcards

1
Q

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

A
  • Non-visible content is in the head tag element. It contains content about the page, not information shown within the page.
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 visible content will be from the body elements.
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
  • Head element comes in after the HTML element. The body tags come in after the head element tag. All within the HTML 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
  • It is to tell the browser which version of HTML the page is using.
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
  • Doctype decl, HTML Head, Title, Body, p, img
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
  • To provide additional informational bout the contents of an element.
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
  • &copy ;= Copyright. ® = Registered trademark.
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
  • Occupies the entire horizontal space of its parent element(container).
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
  • Occupy space bounded by the tags defining the element / content, instead of breaking the flow of the content.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A
  • Takes a new line, takes full width available. Also takes the equal height of its content.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A
  • Takes up as much width as necessary.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A
  • Ordered Lists- lists where each item in list is numbered. Unordered = lists with bulletpoints instead of letter/number ordered.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
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
14
Q

What HTML tag is used to link to another website?

A
  • <a>Context</a>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an absolute URL?

A
  • The full web address for the site. Has the https:.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a relative URL?

A

Does not have the https,, and the pages are in the same folder.

17
Q

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

A
  • To go to the parent you indicate going up a directory by ../, then file name.
18
Q

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

A
  • Too go to the child you go with the name of the child folder, then the forward slash and file name. ./ -indicates the current directory.
19
Q

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

A
  • Grand parent would be ../../ file name.
20
Q

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

A
  • Same directory is just the file name if its in the same folder. Single period = this directory.
    Double period = up a directory. Just forward slash “/” is the root.
21
Q

What is the purpose of an HTML form element?

A
  • Allow users to get user input, get the input, store in a server.
22
Q

Give five examples of form control elements.

A
- Type=”text” just a text field
 = open text area multiline
 = multiple choice, 1 pick. 
 = checkbox many as you want. 
 drop down list box. 
<br> = upload a file. 
= subscribe / submit value. 
 = helpful for longer forms,
23
Q

Give three examples of type attributes for HTML elements.

A
  • Submit, radio, text. Checkbox, email, number, date, phone number,
24
Q

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

A
  • inline element?
25
Q

What are the six primary HTML elements for creating tables?

A
- - header
 = Table row
 = Table data
 = Table headings
 body should sit inside here. 
 footer belongs inside here.