HTML Chapter 2 Flashcards
Can elements be nested?
Yes
HTML Attribute
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”
style attribute
The style attribute is used to add styles to an element, such as color, font, size, and more.
Lang attribute
You should always include the lang attribute inside the <html> tag, to declare the language of the Web page. This is meant to assist search engines and browsers.
title attribute
The title attribute defines some extra information about an element.
hr
The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.
<pre>
</pre>
The HTML <pre> element defines preformatted text.
The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks
<b>
<em>
<i>
<small>
<strong>
<ins>
<del>
<mark></mark></del></ins></strong></small></i></em></b>
<b> Defines bold text
<em> Defines emphasized text
<i> Defines a part of text in an alternate voice or mood
<small> Defines smaller text
<strong> Defines important text
Defines subscripted text
Defines superscripted text
<ins> Defines inserted text
<del> Defines deleted text
<mark> Defines marked/highlighted text</mark></del></ins></strong></small></i></em></b>
<blockquote>,<q>, <abbr>, <address>, <cite>, and <bdo>
</bdo></cite></address></abbr></q></blockquote>
Tag Description
<abbr> Defines an abbreviation or acronym</abbr>
<address> Defines contact information for the author/owner of a document
<bdo> Defines the text direction
<blockquote> Defines a section that is quoted from another source
<cite> Defines the title of a work
<q> Defines a short inline quotation
</q></cite></blockquote></bdo></address>
comment
<!-- Write your comments here -->