HTML Chapter 2 Flashcards

1
Q

Can elements be nested?

A

Yes

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

HTML Attribute

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

style attribute

A

The style attribute is used to add styles to an element, such as color, font, size, and more.

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

Lang attribute

A

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.

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

title attribute

A

The title attribute defines some extra information about an element.

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

hr

A

The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.

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

<pre>
</pre>

A

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

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

<b>
<em>
<i>
<small>
<strong>


<ins>
<del>
<mark></mark></del></ins>
</strong></small></i></em></b>

A

<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>

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

<blockquote>,<q>, <abbr>, <address>, <cite>, and <bdo>
</bdo></cite></address></abbr></q></blockquote>

A

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>

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

comment

A

<!-- Write your comments here -->

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