Prep HTML Basics Flashcards

1
Q

What tags are necessary for a complete HTML Skeleton?

A

Doctype, html, head, body

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

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

A

Meta content
used to declare the character set of a website;
Info for the browser

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

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

A

All visible elements

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

Do all HTML elements require a closing tag?

A

No;

self closing tags (ex/ img, br, meta tags, input elements)

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

What is the purpose of attributes in HTML?

A

Provide additional info about HTML elements;

Customizes elements

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

Give an example of an HTML entity (escape character).

A

copyright
registered
&

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

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

A

Describe the text. Gives context if image can’t render for screen readers

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

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

A

Use the document name

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

Relative Links

A
same folder: file name
child folder: childname/filename
grandchild folder: childname/grandchildname/filename
parent folder: ../filename
grandparent folder: ../../filename
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between an absolute file path and a relative file path on the Web?

A

Absolute has “www.” and tells you which website to go to

Relative is within the same site & domain name is missing; maybe just moving up and down a directory

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

What is a hyperlink?

A

anchor tag with an href

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

What is the purpose of an HTML form element?

A

to collect user input

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

Give five examples of form control elements.

A
input
label
button
select
textarea
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Give three examples of type attribute values for HTML elements.

A

Specifies type of button or input

button
text
checkbox
radio
date
password
url
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

inline

Delete this card

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

What are the six primary HTML elements for creating tables?

A
thead
tbody
td
tr
th
17
Q

What purpose do the thead and tbody elements serve?

A

thead: header content
tbody: data elements

18
Q

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

A

scores

financial tables