elements tags Flashcards
1
Q
<!DOCTYPE>
A
The <!DOCTYPE> Declaration
- The <!DOCTYPE> declaration represents the document type and helps
browsers to display web pages correctly. - It must only appear once, at the top of the page (before any HTML tags).
- The <!DOCTYPE> declaration is not case sensitive.
- The <!DOCTYPE> declaration for HTML5
2
Q
headings
A
HTML Headings
- HTML headings are defined with the <h1> to <h6> tags.
- <h1> defines the most important heading. <h6> defines the least
important heading
</h6></h1>
3
Q
images
A
- HTML images are defined with the <img></img> tag.
- The source file (src), alternative text (alt), width, and height are
provided as attributes:
<img></img>
4
Q
hyper links
A
*HTML links are defined with the <a> tag:</a>
<a>This is a link</a>
The link’s destination is specified in the href attribute.
5
Q
attributes
A
Attributes are used to provide additional information about HTML elements.
6
Q
nested elements
A
Nested HTML Elements
- HTML elements can be nested (this means that
elements can contain other elements).
(<html>, <body>, <h1> and <p>)
6
Q
nested elements
A
Nested HTML Elements
- HTML elements can be nested (this means that
elements can contain other elements).
(<html>, <body>, <h1> and <p>)