Basic HTML Flashcards

1
Q

!DOCTYPE

A

All HTML documents must start with a < !DOCTYPE> declaration.The declaration is not an HTML tag. It is an “information” to the browser about what document type to expect.

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

html /html

A

The < html> tag represents the root of an HTML document.The < html> tag is the container for all other HTML elements (except for the < !DOCTYPE> tag).

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

head /head

A

Contains metadata/information for the document.

The element is a container for metadata (data about data) and is placed between the tag and the tag.

Metadata is data about the HTML document. Metadata is not displayed.

Metadata typically define the document title, character set, styles, scripts, and other meta information.

The following elements can go inside the < head> element:

  • < title> (required in every HTML document)
  • < style>
  • < base>
  • < link>
  • < meta>
  • < script>
  • < noscript>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

title /title

A

Defines a title for the document

The < title> tag defines the title of the document. The title must be text-only, and it is shown in the browser’s title bar or in the page’s tab

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

body /body

A

Defines the document’s body.

The < body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

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

h1 to h6

A

Defines HTML headings

Tip: Use h1 to h6 elements only for headings. Do not use them just to make text bold or big. Use other tags for that.

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

p /p

A

Defines a paragraph.

Browsers automatically add a single blank line before and after each < p> element.

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

br

A

Inserts a single line break.

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

hr

(Horizontal Rule)

A

Defines a thematic change in the content.

The < hr> tag defines a thematic break in an HTML page (e.g. a shift of topic).

The < hr> element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page.

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

!–…–

A

Defines a comment.

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