Lecture 4: Basic HTML Document Structure Flashcards

1
Q

Every HTML document should begin with a ______

A

The Document Type Declaration (a.k.a. “Doc Type”)

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

HTML Tag

A

The tag that contains the entire HTML document and follows the Document Type Declaration.

(Example: < html >DocContent< / html >)

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

Document Type Declaration

A

Starts the HTML document. This tag tells the browser it is about to render an HTML doc. If left OFF => the browser thinks/treats the webpage as though it isn’t following HTML standards and functions in “quirks mode”.

(Example: < ! Doctype html >)

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

Head Tag

A

Contains metadata/information about the main content of the document.

(Example: < head >Info on Main Content< /head >)

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

Meta Tag (1st)

A

Specifies a web page’s character set for its coding. This is NOT required, BUT always good to include. Meta tags are stand-alone tags, no closing tag needed and they can be self-closing.

(Example: < meta charset =”UTF-8” >)

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

Title Tag

A

Required element for valid HTML. Defines Web Page’s Title (visible in browser tab’s text).

(Example: < title >Document Title< / title >)

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

Body Tag

A

The nesting parent tag that is the root of all user-visible content

(Example: < body >VisualContent< / body >

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

Nesting HTML Tags

A

When a “parent” tag contains (a) smaller “child” tag(s).

Ex: < head >< title >TitleHere< / title >< / head >

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