HTML Flashcards

1
Q

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

A

You would put non-visible content inside of the head element. This contains information about 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

You would put visible content inside of the body element. Everything inside of the body element is displayed inside of the main browser window.

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

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

A

In a valid HTML document the head element would go above the body element and below the DOCTYPE declaration. As for the body element this would go below the head 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

The purpose of the DOCTYPE declaration is to tell the browser which version of HTML the page will be using given that many different versions of HTML exist.

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
  1. h1
  2. p
  3. img
  4. body
  5. title
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

The purpose of an HTML attribute is to provide additional information about elements.

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

An example of an HTML entity is the Pound sign.

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

Block-level elements take up all of the width available and always begin on a new line.

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

Inline elements will always appear to continue on the same line as their their neighboring elements and inline elements will only take up as much width as they need to.

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

Block-level elements default width and height would be 100%

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

Due to the fact that inline elements take as much space as they need to inline elements would not have a fixed width and height like block-level elements do.

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

The difference between an ordered list and an unordered list is that ordered lists would be numbered and unordered lists would contain bullet points.

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

HTML lists are block-level elements.

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

The HTML tag used to link another website is “a” which has an attribute of href in which you place the url in.

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

What is an absolute URL?

A

An absolute URL contains the entire address from the protocol (HTTPS) to the domain name (www.example.com) and includes the location within your website in your folder system (/foldernameA or /foldernameB) names within the URL.

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

What is a relative URL?

A

A relative URL does not contain the protocol only the domain name. This can be good because you can create links to pages when they are on your computer before you have a domain name or upload them to the web.