Exam 1 Flashcards
This is placed before the opening HTML tag and is a picky setting that tells the browser this is indeed an HTML document. It is optional, but good to include.
html
Web pages are saved in this format and we introduce it later in this lesson. An HTML file will contain markup and references to other files such as CSS style sheets, JavaScript files, images, and other documents hyperlinked in the content.
This tag goes directly inside the html tag and contains invisible information about the document, links to additional scripts, and sometimes embedded scripts. The element is also placed here to provide the formal title of the document.
This is one of many meta tag settings allowed inside the tag and specifies what set of text characters this document should expect to use. It is also optional but recommended.
This tag follows the head tag directly inside and contains all visible content for the document. You’ll spend most of your time with markup inside this element.
id
hort for “identifier,” this attribute can be used to provided a unique name for the element. This is helpful for three uses:
this attribute allows you to provide labels that help you distinguish one element from another of the same kind, specifically significant elements that are set apart from others in some way;
we often want to apply styles to a specific element or its children, so this attribute is helpful for CSS;
other technologies such as JavaScript make use of this unique identifier.
class
similar to the id attribute, the class attribute allows us to provide a label for an element. However, whereas the id attribute must be unique, the class attribute can be used several or even many times in a single document. This helps us provide more information about an element and what it is used to mark as well as identify it as part of a series of other similar items.
<p> (block level content tag)</p>
Paragraph – This tag is the most basic of tags for text content. If you’re not sure what content is, start by marking it as a paragraph.
<abbr> (inline content tag)</abbr>
tag defines an abbreviation or an acronym, like “Mr.”, “Dec.”, “ASAP”, “ATM”
<blockquote> (block level content tag)</blockquote>
which is used to mark a long quotation. If a quotation takes up an entire sentence or more, use <blockquote> to identify it. Check it out:
<blockquote>
<p>A quiet answer
turns away wrath.</p>
</blockquote>
</blockquote>
<dl> and <dd> and </dd><dt> (block level content tag)</dt></dl>
Definition lists contain a series of term-and-definition pairs marked by definition term <dt> and definition description </dt><dd> tags and grouped by a definition list <dl> tag.
Use definition lists when you have a set of terms and descriptions such as a vocabulary list or reference list.
<dl> tags can only contain <dt> and </dt><dd> tags as their direct children.</dd></dl>
</dl></dd>
(block level content tag)
Mark a short quotation.
<cite> (inline content tag)</cite>
Identify the citation or source for a quotation or reference.
<i> (inline content tag)</i>
Add italics to content without adding emphasis, such as marking the title of a book. Remember that <em> is better to use when italics are added for actual emphasis.</em>
<b> (inline content tag)</b>
Add boldface to content without adding emphasis. Most times, you’ll probably want to use <strong> since bolding is often used to mark content that has strong emphasis.</strong>
But for cases where you simply want to portray a slightly different voice or style through bolding, this tag can be helpful.</strong>
<em> (inline content tag)</em>
Add emphasis to content. The result by default is for text to be italicized.
<strong> (inline content tag)</strong>
Add strong emphasis to content. The result by default is for text to be bolded.
(inline content tag)
Mark superscript text such as the “nd” in 2^nd.
(inline content tag)
Mark subscript text such as the “2” on O2.
<br></br> (stand alone tag)
element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
<hr></hr>
(stand alone tag)
thematic break; horizontal rule
<a></a>
The attribute value for the href attribute is referred to as a path as it indicates the address from here to some location on the Internet. So in this example…
<a>Click me</a>
href
must be set in order for a hyperlink to point to the desired file or URL.
<a>Click me</a>
<img></img>
Images are created with the <img></img> tag
<img></img>