HTML Flashcards

1
Q

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

A

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

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

inside the HTML tags or 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 inform the web browser about the type and version of HTML used in building the web document

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

header, body, a, footer, div

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

to provide more information for the 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

A

< is < > is > copyright is ©

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

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

A

ordered list is in order usually numerical and unordered list are in bullet points

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

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
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
11
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
12
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
13
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
14
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
15
Q

What purpose do the thead and tbody elements serve?

A

to describe the document and separate chunks of code

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

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

A

sports results, stock market data

17
Q

What is an absolute URL?

A

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

18
Q

What is a relative URL?

A

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

19
Q

What other ways can we use an anchor tag?

A

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

20
Q

Why are forms useful?

A

to receive specific information

21
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

22
Q

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

A

select element

23
Q

What is the action of a form?

A

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

24
Q

What is the purpose of an HTML form element?

A

to submit information

25
Give 5 examples of form control elements
select, textarea, label, input, button
26
Give 3 examples of type attributes for HTML elements.
email, text, radio
27
Why would we choose specific element types when we have elements such as div and span which can be used for anything?
for Search Engine Optimization SEO. Makes it easier for both people and machines to read
28
What factors contribute to a well-designed HTML document?
indentation, readability, using html semantics