HTML Flashcards

1
Q

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

A

Within the head tags

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

Within the body

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

They go within the HTML tags

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

Notify browser the type of doc and the version 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
Body
html
a
p
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

Give additional information on the tags

«a>a</a> href=”…” style=”color:red;”>test«a>a</a>>

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
<a>&</a>copy; = ©
<a>&</a>reg; = ®
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

Block elements stand alone and create line breaks

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 will stay right where they are, and will not cause a break in the text

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

Width: full available space
Hight: amount needed to show text, unless restricted

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

It would auto-adjust to the width and height of the content around it

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

Ordered lists have correlating numbers, which give them a sequence

Unordered lists are bullet points with no indication of sequencing

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

It is a block 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 or other location?

A

Anchor tag with href

«a>a</a> href=”link.com”>link«a>a</a>>

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

What is an absolute URL?

A

Absolute URLs give the direction to the HTML page from the very beginning.

This allows there to be no confusion or issues for the source of the link

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

What is a relative URL?

A

Relative URLs are links given to the page, which are dependant to the current location of the document, itself

It gived directions for how the document can navigate from the current directory to the location of the file

17
Q

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

A

We need to use two dots and a slash

../image.jpg

First dot indicated current directory

The second dot indicated one up

18
Q

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

A

Form the current directory, you tell it the file to go into, then the file within the file

/image/river.jpg

19
Q

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

A

You would need to go up two directories. So it is the same as #1, but twice

../../mainstyle.css

20
Q

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

A

There are two ways
./file.txt
file.txt

21
Q

What is the purpose of an HTML form element?

A

Allows the developer to retrieve information from users

22
Q

Give five examples of form control elements.

A
Input 
Textarea
Select 
Option 
Button
23
Q

Give five examples of “type” attributes for HTML From elements.

A
Radio
Text
Submit 
Checkbox
Password
24
Q

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

A

inline

25
Q

What are the six primary HTML elements for creating tables?

A
table
    thead
        tr
            th
            th
    tbody
         tr
            td
            td
    tfoot
         tr
            td
            td
26
Q

What purpose do the thead and tbody elements serve?

A

They assist with screen readers and also help with SEO

27
Q

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

A

Grades
Recipes
Anything that would fit well in excel