HTML Flashcards

1
Q

How should all HTML files begin?

A

<DOCTYPE! html>

<html></html>

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

What declaration should be used to begin all HTML files?

A

<DOCTYPE! html>

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

What attribute should be included in the <html> tag?

A

<html>
</html>

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

Does a script go inside or outside of the <html> tag?

A

Inside

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

What is the tag for linking a stylesheet to an HTML file?

A

<link></link>

BONUS: self-closing
BONUS: relationship attribute (e.g. rel=”stylesheet”)
BONUS: href attribute (e.g. href=”style.css”)

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

What is the tag for writing CSS styling in an HTML file (not to be confused with inline styling)?

A

<style></style>

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