prep-html-qna Flashcards

1
Q

How do link to a file in the same folder as the current HTML document?

A

use <a> tags with href in HTML File paths</a>
../ - for pathing one folder above
/ pathing to another folder

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

What tags are necessary for a complete HTML Skeleton?

A

the type of document it will be for an HTML5 document !DOCtype html
html element - which the doc begins and ends in
body - visible part of the document

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

What type of content belongs within the head of an HTML document?

A

Any part containing meta information of the document

i.e. title goes in the head

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

What type of content belongs within the body of an HTML document?

A

the element defines the document’s body

is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists

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

Where must the DOCTYPE declaration appear in a valid HTML document?

A

Above the html element at the very top of the document

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

Do all HTML elements require a closing tag?

A

no, some have self closing

i.e. img tag

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

What are attributes for in HTML?

A

provide additional information about elements and is defined in the start tag with “a”
usually come in name/value pairs like: name=”value”

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

What is the purpose of the alt attribute used on img elements?

A

tag specifies an alternate text for an image if the image cannot be displayed

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

How many heading elements are available in HTML?

A

6
h1, h2, h3, h4, h5, h6
each heading gets progressively smaller in font size

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

How do you link to a file in a folder one level up from the folder containing the current HTML document?

A

../

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

What is an absolute file path on the Web?

A

the full URL to a file

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

What is a relative file path on the Web?

A

points to a file relative to the current page

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

What is a hyperlink?

A

used to link from one page to another

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