HTML Flashcards

1
Q

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

A

In between the opening & closing 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

In between the opening & closing body tag.

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

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

A

Inside the html tag. Head tag goes first, then body 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

Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document.

In quirks mode, layout emulates nonstandard behavior in Navigator 4 and Internet Explorer 5.

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

body element, head element, div element, p element & h1 element.

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 are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want.

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

© (This is the copyright 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 always take up the whole line & will also appear to start on a new line on the browser window.

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

Unlike block-level elements, inlines do not start on a new line and stay on their same line as their neighboring elements.

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

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

A

A block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents (aka auto), thereby creating a “block”.

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

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

A

An inline element does not start on a new line and only takes up as much width as necessary. The vertical space equal to the height of its contents, aka “auto”.

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 whereas an unordered list uses bullets.

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

An HTML list is 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

The anchor tag.

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

What is an absolute URL?

A

When you link to a different website, the value of the href attribute will be the full web address, showing the domain aka the “absolute URL”.

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

What is a relative URL?

A

When you are linking to other pages within the same site, you don’t need to specify the domain name in the URL. You can use a shorthand known aka a “relative URL”.

17
Q

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

A

../

This indicates the folder above your current one.

18
Q

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

A

Name the child folder, followed by a forward slash, then the name of the file.

19
Q

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

A

../../

This is basically parent of the parent folder, aka “grand parent” directory.

20
Q

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

A

Just write the name of the file!

21
Q

What is the purpose of an HTMLformelement?

A

An HTML form is usedto collect user input. The user input is most often sent to a server for processing.

22
Q

Give five examples of form control elements.

A

Button, Input, TextArea, Select & Fieldset.

23
Q

Give three examples oftypeattribute values for HTMLinputelements.

A

Button, Checkbox, Date, File, Password, & Radio.

24
Q

Is an HTMLinputelement a block element or an inline element?

A

Inline element.

25
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, & tbody element.

26
Q

What purpose do thetheadandtbodyelements serve?

A

They are there to better distinguish between the different contents of a table.
Thead element should only hold the headings of the table.
Tbody element should only hold the body of the table.

27
Q

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

A

Test scores, multiplication chart, calendars.