html Flashcards

1
Q

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

A

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

Body element

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

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

A

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

A

to declare what verison of html

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

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

HTML attributes provide additional information about HTML elements.

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

trademark , copyrights, less than ,greater than

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

What is a HTML entity?

A

An HTML entity is a piece of text (“string”) that begins with an ampersand (&) and ends with a semicolon (;) .

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

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

A

ordered list have its item ordered by number while unorder list just have bullet point

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

What three HTML elements do you use to build a description list?

A

<dl> description list
<dt>description term
</dt><dd> description definition</dd></dl>

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

How do you indicate the parent folder in a path?

A

by typing ../ to locate one level up from the current folder

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

How do you indicate the child folder in a path?

A

by typing /

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

How do you indicate the grand parent folder in a path?

A

by typing ../../

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

How do you indicate the current folder in a path?

A

by typing the full URL to a file

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

What are the six primary HTML elements for creating tables?

A

table tag, tablerow, tabledata, table body, thead, table, th=table header

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

What purpose do the thead and tbody elements serve?

A

to describe the document and separate chunks of code

17
Q

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

A

sports results, stock market data

18
Q

What is an absolute URL?

A

all URL from beginning to end. Contains all the information necessary to locate a resource

19
Q

What is a relative URL?

A

typically consists only of the path, and optionally the resource, but no server.

20
Q

What other ways can we use an anchor tag?

A

movement to a specific point in a page using the id attribute.

21
Q

Why are forms useful?

A

to receive specific information

22
Q

What attribute do you have to match between a label and an input?

A

for attribute in the label and the id attribute in the input

23
Q

What type of input allows you to select multiple items in a dropdown?

A

select element

24
Q

What is the action of a form?

A

action attribute specifies where to send the form-data when a form is submitted.

25
Q

What is the purpose of an HTML form element?

A

to submit information

26
Q

Give 5 examples of form control elements

A

select, textarea, label, input, button

27
Q

Give 3 examples of type attributes for HTML elements.

A

email, text, radio

28
Q

Why would we choose specific element types when we have elements such as div and span which can be used for anything?

A

for Search Engine Optimization SEO. Makes it easier for both people and machines to read

29
Q

What factors contribute to a well-designed HTML document?

A

indentation, readability, using html semantics