HTML test1 Flashcards
HTML stands for
Hyper Text Markup Language
The ________declaration defines that this document is an HTML5 document
All HTML documents must start with a document type declaration: _________
It must only appear once, at the top of the page (before any HTML tags).
<!DOCTYPE html>
The _______ element is the root element of an HTML page
<html>
</html>
the __________ element contains meta information about the HTML page
< head >
The _______ element specifies a title for the HTML page (which is shown in the browser’s title bar or in the page’s tab)
< title >
The ___element defines the document’s body, and is a container for all the visible contents
The visible part of the HTML document
<body>
</body>
The ____ element defines a large heading
____defines the most important heading. ____ defines the least important heading:
<h1>
<h1>
<h6>
</h6></h1></h1>
The ____ element defines a paragraph
<p>
</p>
HTML links are defined with the _____ tag:
<a></a>
<a>This is a link</a>
HTML images are defined with the ____tag.
The source file ___, alternative text (____), width, and height are provided as attributes:
<img></img>
(src), (alt
ex:
< img src=”img_girl.jpg”>
< img src=”img_girl.jpg” width=”500” height=”600”>
The required ___ attribute for the <img></img> tag specifies an alternate text for an image, if the image for some reason cannot be displayed. This can be due to a slow connection, or an error in the src attribute, or if the user uses a screen reader.
alt
< img src=”img_girl.jpg” alt=”Girl with a jacket”>
The _____ tag defines a line break, and is an empty element without a closing tag:
< br >
The ___ attribute defines some extra information about an element.
The value of the title attribute will be displayed as a tooltip when you mouse over the element:
title
< p title=”I’m a tooltip”>This is a paragraph.< /p>
The ____ attribute is used to add styles to an element, such as color, font, size, and more
style