HTML Flashcards
1
Q
How should all HTML files begin?
A
<DOCTYPE! html>
<html></html>
2
Q
What declaration should be used to begin all HTML files?
A
<DOCTYPE! html>
3
Q
What attribute should be included in the <html> tag?
A
<html>
</html>
4
Q
Does a script go inside or outside of the <html> tag?
A
Inside
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”)
6
Q
What is the tag for writing CSS styling in an HTML file (not to be confused with inline styling)?
A
<style></style>