 Emphasis and Quotations
Emphasis and Quotations
When writing web content, you often need to highlight important words, stress certain phrases, or quote external sources. Semantic HTML provides specific elements for these tasks, ensuring your meaning is clear not just to readers but also to browsers and assistive technologies.
Two commonly used elements for emphasis are strong and em:
- Use strongto indicate that content is of strong importance, such as warnings or critical instructions;
- Use emto stress a word or phrase, indicating a change in tone or emphasis within the sentence.
For quotations:
- The blockquoteelement semantically marks a section as a long quotation from another source;
- The citeelement is used to reference the source of a quote, book, article, or creative work.
index.html
Takk for tilbakemeldingene dine!
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Can you give examples of how to use these HTML elements?
What is the difference between `strong` and `em` in terms of accessibility?
When should I use `blockquote` versus just quotation marks?
Awesome!
Completion rate improved to 8.33 Emphasis and Quotations
Emphasis and Quotations
Sveip for å vise menyen
When writing web content, you often need to highlight important words, stress certain phrases, or quote external sources. Semantic HTML provides specific elements for these tasks, ensuring your meaning is clear not just to readers but also to browsers and assistive technologies.
Two commonly used elements for emphasis are strong and em:
- Use strongto indicate that content is of strong importance, such as warnings or critical instructions;
- Use emto stress a word or phrase, indicating a change in tone or emphasis within the sentence.
For quotations:
- The blockquoteelement semantically marks a section as a long quotation from another source;
- The citeelement is used to reference the source of a quote, book, article, or creative work.
index.html
Takk for tilbakemeldingene dine!