HTML Flashcards

1
Q

what is the purpose of HTML attributes?

A

Attributes provide additional information about the contents of an element. They appear on the opening tag of the element and are made up of two parts: a name and a value.
customize html element.

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

what is an HTML entity?

A
  • it is used to display invisible characters and reserved characters that would otherwise be interpreted as HTML code .
  • ampersand(&) + word + semicolon(;)
  • timesaving.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how do block level elements affect the document flow?

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, thereby creating a “block”.
  • these may appear only within a element.
  • address, h tags, header, div etc.
  • default width: 100/ height: auto
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how do inline elements affect the document flow?

A
  • inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of content.
  • an inline element does not start on a new line and only takes up as much width as necessary.
  • a, abbr, br, button, cite, code, del, em, data, img, input, label, span, strong, sub, sup, template etc.
  • width: auto / height: auto
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the difference between unordered list & ordered list?

A
  • the <ul> element is for grouping a collection of items that do not have a numerical ordering, and their order in the list is meaningless. typically, unordered-list items are displayed with a bullet, which can be of several forms
  • the ordered list items display with a preceding marker, such as a number or letter. therefore the order is meaningful.

</ul>

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

where do you put non visible content about the HTML document?

A

head tag

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

where do you put visible content about the html document?

A

body tag

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

where do the and tags go in a valid HTML document?

A

inside the html tags.

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

what is the purpose of a declaration?

A

The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in.

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

is an html list a block element?

A

yes

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

what HTML tag is used to link to another website?

A

<a> (anchor tag). dropping an ‘anchor’ at some point in the html document.</a>

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

what is an absolute URL?

A

An absolute link is a hyperlink containing a full URL, which includes all the information needed to find a particular site, page or document or other addressable item on the Internet. This information includes: The protocol to use, such as HTTP (Hypertext Transfer Protocol) or FTP (File Transfer Protocol).

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

what is a relative URL?

A

A relative URL is a URL that only includes the path. The path is everything that comes after the domain, including the directory and slug. Because relative URLs don’t include the entire URL structure, it is assumed that when linking a relative URL, it uses the same protocol, subdomain and domain as the page it’s on.

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

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

A

../filename

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

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

A

name of child folder/ filename

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

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

A

../../filename

17
Q

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

A

just use the file name.

18
Q

what is the purpose of an HTML form element?

A

HTML form elements are used to capture user input. boundary of the info.

19
Q

Give five examples of form control elements

A

text input, radio button, checkbox, drop down list box, multiple select box etc.

20
Q

Give three examples of type attribute values for HTML input elements

A

button, checkbox, color, date …

21
Q

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

A

inline elements

22
Q

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

A
23
Q

what are the six primary html elements for creating tables?

A

table, thead, tbody, th, tr, td

24
Q

what purpose do the thead and tbody element serve?

A

works for search engines.

-The element is used in conjunction with the and elements to specify each part of a table (body, header, footer). Browsers can use these elements to enable scrolling of the table body independently of the header and footer.

25
Q

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

A

table grid type system. sport statistics.. stocks.. tabular data.