Test your skills: Advanced HTML text
Learnwebdevelopment/Core/Structuringcontent/Markingupaletter
Learn_web_development/Core/Structuring_content/Marking_up_a_letter
The aim of this skill test is to help you assess whether you understand how to use [lesser-known HTML elements to mark up advanced semantic features](/docs/Learn_web_development/Core/Structuring_content/Advanced_text_features).
> [!NOTE]
> To get help, read our [Test your skills](/docs/Learn_web_development#test_your_skills) usage guide. You can also reach out to us using one of our [communication channels](/docs/MDN/Community/Communication_channels).
## Advanced text 1
In this task, we want you to add some semantics to the provided HTML.
To complete this task:
1. Turn the second paragraph into a block-level quote, and semantically indicate that the quote is taken from [Accessibility](/docs/Learn_web_development/Core/Accessibility).
2. Semantically mark up "HTML" and "CSS" as acronyms, providing expansions as tooltips.
3. Use subscript and superscript to provide correct semantics for the chemical formulae and dates, and make them display correctly.
4. Semantically associate machine-readable dates with the dates in the text.
The starting point of the task looks like this:
100%
Here's the underlying code for this starting point:
```html live-sample___advanced-text
<h1>Advanced text semantics</h1>
<p>Let's start with a quote:</p>
<p>
HTML, Hypertext Markup Language is by default accessible, if used correctly.
</p>
<p>CSS can also be used to make web pages more, or less, accessible.</p>
<p>Chemical Formulae: H2O (Water), C2H6O (Ethanol).</p>
<p>
Dates: December 25th 2019 (Christmas Day), November 2nd 2019 (Día de los
Muertos).
</p>
```
```css hidden live-sample___advanced-text live-sample___advanced-text-solution
body {
background-color: white;
color: #333333;
font:
1em / 1.4 "Helvetica Neue",
"Helvetica",
"Arial",
sans-serif;
padding: 1em;
margin: 0;
}
h1 {
font-size: 2rem;
margin: 0;
color: purple;
}
p {
margin: 0.5em 0;
}
abbr,
time {
color: green;
}
```
The updated content should look like this:
<details>
<summary>Click here to show the solution</summary>
Your finished HTML should look like this:
```html live-sample___advanced-text-solution
<h1>Advanced text semantics</h1>
<p>Let's start with a quote:</p>
<blockquote cite="https://developer.mozilla.org/en-US/docs/Learn/Accessibility">
<p>
<abbr title="HyperText Markup Language">HTML</abbr>, Hypertext Markup
Language is by default accessible, if used correctly.
</p>
</blockquote>
<p>
<abbr title="Cascading Style Sheets">CSS</abbr>, Cascading Style Sheets, can
also be used to make web pages more, or less, accessible.
</p>
<p>
Chemical Formulae: H<sub>2</sub>O (Water), C<sub>2</sub>H<sub>6</sub>O
(Ethanol).
</p>
<p>
Dates:
<time datetime="2019-12-25">December 25<sup>th</sup> 2019</time>
(Christmas Day),
<time datetime="2019-11-02">November 2<sup>nd</sup> 2019</time> (Día de los
Muertos).
</p>
```
</details>
Learn_web_development/Core/Structuring_content/Marking_up_a_letter
Cite this
"Test your skills: Advanced HTML text". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Structuring_content/Test_your_skills/Advanced_HTML_text JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy