HTML Flashcards

1
Q

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

A

Non-visible content will be in the head 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

Visible content will be in the body element

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

The head and the body tags go in 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 doctype declaration?

A

There are different versions of HTML and doctype tells the browser what 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

p

span

div

h1 h2 h3 h4 h5 h6

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

Provides additional information about the 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

Allows you to escape the HTML code enforcement for certain characters

Such as a left angled bracket, you need to use & lt ;

ampersand symbol will be & amp ;

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

They will always appear to start on a new line in 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

They affect the text content of the inline element being selected

Inline is prepared to share space

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

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

A

Block-level elements take up 100% of the space available.

Height is auto, however much height is needed

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

Inline elements take up space to accommodate its content

Width and Height are dependent on the content

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

Numbered lists is a list that is numbered (Legal contracts or things that must be performed in order). Order is meaningful.

An unordered list is a list that begins with a bullet point (Rather than characters that indicate 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

An HTML list is a block element.

ol ul li are all block 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

a href = www.linkToAnotherWebsite.com TEXTCONTENTFORLINK /a

You need to use an Absolute URL

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 is a URL that starts with the domain name for whatever webpage you are being directed to, which is usually 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 relative URL is a URL that will redirect you from one webpage to another webpage within the same website

You do not need to specify the domain name in the URL.

17
Q

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

A

Use ../ to indicate the folder above the current one, then follow it with the file name

18
Q

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

A

For a child folder, use the name of the child folder, followed by a forward slash, then the file name

19
Q

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

A

Use ../../ to indicate that you want to go up two folders, then follow it with the file name

20
Q

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

A

To link to a file in the same folder, just use the file name.

21
Q

What is the purpose of an HTML form element?

A

Forms contain interactive controls for submitting or collecting information

22
Q

Give five examples of form control elements.

A

Input, textarea, select, option, button

23
Q

Give three examples of type attributes for HTML input elements.

A

Submit, text, radio, e-mail, url

24
Q

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

A

input is an inline element

25
Q

What are the six primary HTML elements for creating tables?

A

Table, tr, td, th, thead, tbody, tfoot

26
Q

What purpose do the thead and tbody elements serve?

A

They separate the head and the body of the table.

Separated elements can have different behaviors

27
Q

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

A

Names and Class Grades

Food and Calories