HTML Flashcards

1
Q

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

A

We put in the head tag element. The head element is a container for metadata (data about HTML document, which is not displayed). Ex) title, link.

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

We put in the body tag element. The body element contains the entire content of a webpage. Ex) h1, p, img.

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

We placed head tag element between the html tag element and the body tag element, and placed body tag element right after the end of head tag element. It should be placed between /head tag element and /html tag 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

The purpose of a !DOCTYPE is an instruction to the web browser about what version of HTML the document is using. It helps the browser to handle and load it properly.

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

head, title, body, h1, p, a, 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

An attribute gives more about the content of that 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

Starts a new line and it uses the full width of the page or container. It also has a line break before and after the element.

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 occupy only the space bounded by the tag defining the element.

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 of a block-level element is 100% and the default height is whatever height it needs to have.

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

I can’t set the width or height for the inline element because this element doesn’t start on a new line and only occupy just the width it requires.

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 ordered list will have items ordered by number. On the other hand, the unordered list will have just 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

The list elements are a block-level 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 tag href attribute.

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 full URL or the entire address of the page and can be followed by the path to a specific page. If no page is specified, then the site will display the homepage.

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

What is a relative URL?

A

It’s like a shorthand version of the absolute URL that shows the current URL’s relation to the linked page’s URL. A relative URL locates a resource using an absolute URL as a starting point

17
Q

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

A

anchor tag element, href attribute, ../ then the file name.

18
Q

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

A

anchor tag element, href attribute, name of a child folder / then the file name.

19
Q

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

A

ahchor tag element, href attribute, ../ ../ then the file name.

20
Q

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

A

anchor tag element, href attribute, just file name.

21
Q

What is the purpose of an HTML form element?

A

To represent a document section containing interactive controls for submitting information.

22
Q

Give five examples of form control elements.

A

Text input, checkbox, submit button, file upload, drop-down box.

23
Q

Give three examples of type attributes for HTML input elements.

A

input type text, radio, checkbox, image, search, submit, button, range.

24
Q

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

A

The input element is an inline element.

25
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, tbody, (tfoot) elements.

26
Q

What purpose do the thead and tbody elements serve?

A

It used to group table rows into logical sections based on their content and to allow the body element to be scrolled independently.

27
Q

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

A

Quantitative data, which is the result of counting or measuring, and Qualitative data, which is the result of categorizing or describing.