prep-html-skeleton Flashcards

1
Q

What tags are necessary for a complete HTML skeleton?

A

The opening and closing tags of the !DOCTYPE html, html, head, title, and body elements are necessary for an HTML skeleton.

The !DOCTYPE html tag defines that this document is an HTML5 document.
The html element is the root element of a HTML page.
The head element contains meta information about the HTML page.
The title element specifies a title for an HTML page (which is shown in the browser’s title bar or in the page’s tab).
The body element defines the document’s body, and is an container for all the visible elements, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

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

Metadata (data about data) belongs in the “head” of an HTML document.

The “title”, “style”, “meta”, “link”, and “base” elements belong in the “head” element/tag.

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

The “body” element/tag of an HTML document contains all the visible contents such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

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

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

A

The DOCTYPE declaration must appear at the top of the page before any HTML tags.

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