HTML Flashcards

1
Q

HTML-skeleton

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

A

in between the head element

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

HTML-skeleton

Where do you put visible content about the HTML document?

A

in between the body element

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

HTML-skeleton

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

A

in between the html tag

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

HTML-skeleton

What is the purpose of a !DOCTYPE declaration?

A

to tell a browser which version of HTML is used

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

HTML-syntax

Give five examples of HTML element types

A

p tag, body tag, head tag, h1 tag, h2 tag, img tag, etc

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

HTML-syntax

What is the purpose of HTML attributes?

A

= to provide additional information about the contents of an element.
= to give functionality to an element

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

HTML-syntax

Give an example of an HTML entity (escape character)?

A

less-than sign, greater-than sign, cent sign, ampersand (&) sign, quotation mark, copyright symbol, etc.

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

HTML-block and line

How do block-level elements affect the document flow?

A

= block level elements 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

HTML- block and inline

How do inline elements affect the document flow?

A

inline elements will always appear to continue on the same line as their neighboring elements.

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

HTML- block and inline

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

A

width: 100%
height: auto

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

HTML- block and inline

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

A

auto (size of the content)

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

HTML - lists

What is the difference between an ordered list and an unordered list in HTML?

A

ordered list is numbered list,

unordered list is bullet point list

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

HTML- lists

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

HTML-links

What HTML tag is used to link to another website?

A

anchor tag (a) element

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

HTML-links

What is an absolute URL?

A

= contains the entire address from the protocol (HTTPS) to the domain name (www.example.com).
= a full URL that’s linking out to another website that is not using the same server as your website.

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

HTML-links

What is a relative URL?

A

= a URL that only contains the location following the domain. (Only includes the path)
= It assumes that the link you add is on the same site and is part of the same root domain.

17
Q

HTML-relative links

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

A

= use ../ to indicate the folder above the current one

ex. ../index.html

18
Q

HTML-relative links

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

A

= just putting child directory name.

ex. music/listings.html

19
Q

HTML-relative links

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

A

= indicating ../../
ex. ../../index.html
../ is linking FROM the parent, linking downwards.

20
Q

HTML-relative links

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

A

= providing the file name

ex. reviews.html

21
Q

HTML-forms

What is the purpose of an HTML form element?

A

= to create and control the core HTML structure that contain interactive controls for submitting information.

22
Q

HTML-forms

Give five examples of form control elements

A

= input, select, text area, option, form

23
Q

HTML-forms

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

A

type=”checkbox”
type=”radio”
type=”text”

24
Q

HTML-forms

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

A

= inline element

25
Q

HTML-tables

What are the six primary HTML elements for creating tables?

A

= table element, thead, tbody, th (table header), tr (table row), and td (table data)

26
Q

HTML-tables

What purpose do the thead and tbody elements serve?

A

= thead: defines a set of rows defining the head of the columns of the table.
= tbody: encapsulates a set of table rows (tr elements), indicating that they comprise the body of the table (table element).

27
Q

HTML-tables

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

A

= stock data, sports results, and train schedule