Formatting Tags Flashcards

1
Q

acronym /acronym

A

Defines an abbreviation or an acronym.

Tip: Use the global title attribute to show the description for the abbreviation/acronym when you mouse over the element.

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

address /address

A

Defines contact information for the author/owner of a document/article.

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

b /b

A

Defines bold text.

Note: According to the HTML5 specification, the b tag should be used as a LAST resort when no other tag is more appropriate. The specification states that headings should be denoted with the h1 to h6 tags, emphasized text should be denoted with the em tag, important text should be denoted with the strong tag, and marked/highlighted text should be denoted with the mark tag.

Tip: You can also use the following CSS to set bold text: “font-weight: bold;”.

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

blockquote /blockquote

A

Defines a section that is quoted from another source.

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

cite /cite

A

Defines the title of a work.

The cite tag defines the title of a creative work (e.g. a book, a poem, a song, a movie, a painting, a sculpture, etc.).

Note: A person’s name is not the title of a work.

The text in the cite element usually renders in italic.

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

code /code

A

Defines a piece of computer code.

The code tag is used to define a piece of computer code. The content inside is displayed in the browser’s default monospace font.

Tip: This tag is not deprecated. However, it is possible to achieve richer effect by using CSS.

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

del /del

A

The del tag defines text that has been deleted from a document. Browsers will usually strike a line through deleted text.

Tip: Also look at the ins tag to markup inserted text.

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

dfn /dfn

“definition element”

A

Specifies a term that is going to be defined within the content.

The nearest parent of the dfn tag must also contain the definition/explanation for the term.

The term inside the dfn tag can be any of the following:

  1. Just as the content of the dfn element
  2. Or, with the title attribute added
  3. Or, with an abbr** tag inside the **dfn element
  4. Or, with the id attribute added. Then, whenever a term is used, it can refer back to the definition with an a tag:
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

em /em

A

The em tag is used to define emphasized text. The content inside is typically displayed in italic.

A screen reader will pronounce the words in em with an emphasis, using verbal stress.

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

i /i

A

The i tag defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic.

The tag is often used to indicate a technical term, a phrase from another language, a thought, a ship name, etc.

Use the _element only when there is not a more appropriate semantic element, such as_:

  • em (emphasized text)
  • strong (important text)
  • mark (marked/highlighted text)
  • cite (the title of a work)
  • dfn (a definition term)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly