02 - HTML Syntax Flashcards

1
Q

Give five examples of HTML element tag.

A
html - Defines an HTML document
head - Contains metadata/information for the document
title - Defines a title for the document
body - Defines the document's body
h1 to h6 - Defines HTML headings
p - Defines a paragraph
br - Inserts a single line break
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of HTML attributes?

A

All HTML elements can have attributes
Attributes provide additional information about elements
Attributes are always specified in the start tag
Attributes usually come in name/value pairs like: name=”value”

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

Give an example of an HTML entity (escape character).

A

Reserved characters in HTML must be replaced with character entities.
A commonly used entity in HTML is the non-breaking space: & nbsp;
A non-breaking space is a space that will not break into a new line.

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