Semantic HTML Flashcards

1
Q

What are the Importances of Semantic HTML?

A

Structural hierarchy for heading elements: It is important to use the correct heading element to maintain the structural hierarchy of the content. The h1 element is the highest level of heading and the h6 element is the lowest level of heading.

Presentational HTML elements: Elements that define the appearance of content. Ex. the deprecated center, big and font elements.

Semantic HTML elements: Elements that hold meaning and structure. Ex. header, nav, figure.

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

What is the Semantic Header Element and what is it used for?

A

<header>
</header>

It’s used to define the header of a document or section.

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

What is the Main Element and what is it used for?

A

<main>
</main>

It’s used to contain the main content of the web page.

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

What is the Navigation Section Element and what is it used for?

A

<nav>
</nav>

It represents a section with navigation links.

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

What is the Figure Element and what is it used for?

A

<figure>
</figure>

It’s used to contain illustrations and diagrams.

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

What is the Emphasis Element and what is it used for?

A

<em></em>

It marks text that has stress emphasis.

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

What is the Idiomatic Text Element and what is it used for?

A

<i></i>

It’s used for highlighting alternative voice or mood, idiomatic terms from another language, technical terms, and thoughts.

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

What does the Language Attribute do inside the open Idiomatic Text Element tag?

A

<i></i>

The lang=”” attribute inside the open <i> tag is used to specify the language of the content. The <i> element does not indicate if the text is important or not, it only shows that it’s somehow different from the surrounding text.</i></i>

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

What is the Strong Importance Element and what does it do?

A

<strong></strong>

It marks text that has strong importance.

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

What is the Bring Attention To Element and what does it do?

A

<b></b>

It’s used to bring attention to text that is not important for the meaning of the content. It’s commonly used to highlight keywords in summaries or product names in reviews.

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

What are the Description List, Description Term, and Description Details Elements and what are they used for?

A

<dl>
<dt></dt>
<dd></dd>
</dl>

<dl>: used to represent a list of term-description groupings.
<dt>: used to represent the term being defined.
<dd>: used to represent the description of the term.
</dd></dt></dl>

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

What is the Block Quotation Element and what is it used for?

A

<blockquote>
</blockquote>

It’s used to represent a section that is quoted from another source. This element has a cite attribute. The value of the cite attribute is the URL of the source.

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

What is a Citation Element and what is it used for?

A

<cite></cite>

It’s used to attribute the source of the referenced work visually. Marks up the title of the reference.

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

What is the Inline Quotation Element and what is it used for?

A

<q>
</q>

It’s used to represent a short inline quotation.

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

What is the Abbreviation Element and what is it used for?

A

<abbr></abbr>

It’s used to represent an abbreviation or acronym. To help users understand what the abbreviation or acronym is, you can show its full form, a human readable description, with the title attribute.

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

What is the Contact Address Element and what is it used for?

A

<address>
</address>

It’s used to represent the contact information.

17
Q

What is the Date and Time Element and what is it used for? Explain the ISO 8601 Date Attribute.

A

<time datetime=”YYYY-MM-DDTHH:MM:SS></time>

It’s used to represent a date and/or time. The datetime attribute is used to translate dates and times into a machine-readable format.
The ISO 8601 Date Attribute is used to represent dates and times in a machine-readable format. The standard format is YYYY-MM-DDThh:mm:ss, with the capital T being a separator between the date and time.

18
Q

What is the Superscript Element and what is it used for?

A

It’s used to represent superscript text. Common use cases for the sup element would include exponents, superior lettering and ordinal numbers.

19
Q

What is the Subscript Element and what is it used for?

A

It’s used to represent subscript text. Common uses cases for the subscript element include chemical formulas, foot notes, and variable subscripts.

20
Q

What is the Inline Code Element and what is it used for?

A

<code></code>

It’s used to represent a fragment of computer code.

21
Q

What is the Preformated Text Element and what is it used for?

A

<pre>
</pre>

It represents preformatted text.

22
Q

What is the Unarticulated Annotation Element and what is it used for?

A

<u></u>

It’s used to represent a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation.

23
Q

What is the Ruby Annotation Element, Ruby Fallback Paranthesis Element, and Ruby Text Element and what are they used for?

A

<ruby>
明日 <rp>(</rp><rt>Ashita</rt><rp>)</rp>
</ruby>

<ruby>: used for annotating text with pronunciation or meaning explanations. An example usage is for East Asian typography.
<rp>: used as a fallback for browsers lacking support for displaying ruby annotations.
<rt>: used to indicate text for the ruby annotation. Usually used for pronunciation, or translation details in East Asian typography.</rt></rp></ruby>

24
Q

What is the Strikethrough Element and what is it used for?

A

<s></s>

It’s used to represent content that is no longer accurate or relevant.