HTML Flashcards

1
Q

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

A

Non-visible content goes in the <head> element. It 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

The visible content goes within 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

Within the HTML element. Head first then body.

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

It provides the browser with which version of HTML the web 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

<html> <head> <Title> <body> <h1>
</h1></body></Title></head></html>

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 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

Characters that are used in and reserved by HTML Code. Special codes that can be used to show symbols.
Copyright symbol = (ampersand) ©

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 element always starts on a new line and takes up the full width of the parent element/element that contains it.

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

An inline element does not start on a new line and only takes up as much width as necessary. capable of sharing space.

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

Default width of a block-level element it 100%. Height auto - whatever the text content will take up.

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

Default width and height: auto. As much space 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 use numbers/sequential and unordered lists use 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

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> (anchor tag) which have an attribute of href. Href attribute contains the value of the link/url you want people to go to when they click the link.</a>

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

What is an absolute URL?

A

It is a link to a different website using their web address. It needs a domain name and HTTPS(hypertext transfer protocol).

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

What is a relative URL?

A

Links to other pages within the same site. Do not need to specify the domain name.

17
Q

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

A

../

18
Q

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

A

the name of the directory.

19
Q

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

A

../../

20
Q

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

A

Name of the file

21
Q

What is the purpose of an HTML form element?

A

To allow users to interact with the website and collect information from visitors. It allows the form content.

22
Q

Give five examples of form control elements.

A

<select><textarea><button><option><input></input> takes in information about the content.</option></button></textarea></select>

23
Q

Give three examples of type attribute values for HTML <input></input> elements.

A

Radio, button and checkbox. <radio><button><checkbox></checkbox></button></radio>

24
Q

Is an HTML <input></input> element a block element or an inline element?

A

Inline

25
Q

What are the six primary HTML elements for creating tables?

A

<table> <tr> <td> <th> thead><tbody>
</tbody></th></td></tr></table>

26
Q

What purpose do the thead and tbody elements serve?

A

Headings of the tables sit in the <thead> element and <tbody> indicates that rows comprise the body of the table. Organizational and semantic purposes.

27
Q

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

A

FX rates of different countries on different days. Income levels of various age groups/gender. Financial reports.