HTML Flashcards

1
Q

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

A

Inside the HEAD tag

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

Inside the BODY tag

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

Inside the HTML tag

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 tell a 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 types:

A

Head, Body, Paragraph, H1, 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

They provide additional information about 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

© | ®

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 affect the document flow by occupying the entire horizontal space, and pushing all other elements into a new line. It’s height is determined by the content but can be set customized.

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-Level elements affect the document flow differently because it does not start on a new line and only takes up as much space (vertically & horizontally) as needed.

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

The default width is 100% (taking the full width available, and the height is determined by the content but is customizable.

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

The default width and height is determine by content only, you cannot adjust or customize.

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

An ordered list is numbered and each item is in a specific order

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> along with </a><a> </a>

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

What is an absolute URL?

A

A link which goes to a different website.

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

What is a relative URL?

A

A link which goes to a page/section within the same site.

17
Q

What HTML tag is used to link to another website?

A

<a></a>

18
Q

What is an absolute URL?

A

A link which goes to a different website.

19
Q

What is a relative URL?

A

A link which goes to a page/section within the same site.

20
Q

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

A

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

../ followed by the file name

21
Q

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

A

Name of child folder followed by a forward slash

22
Q

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

A

../../ followed by the file name

23
Q

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

A

Just use the file name

24
Q

What is the purpose of an HTML form element?

A

Its purpose is to collect data from your users through a set of elements.

25
Q

Give five examples of form control elements.

A

input, label, text area, file picker, buttons

26
Q

Give three examples of type attribute values for HTML elements:

A

Text, password, radio

27
Q

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

A

Inline-block

28
Q

What are the six primary HTML elements for creating tables?

A
29
Q

What purpose do the thead and tbody elements serve?

A

thead : Its defines a set of rows defining the head of the columns of the table

tbody: contains a set of table rows to indicate that it consists of the body of the table.

30
Q

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

A

Grocery item price and sales

Students grades