By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Text formatting in HTML involves using specific tags to style and structure content effectively. Mastering tags like strong, em, mark, small, del, and ins is crucial for web design. These tags enhance readability, improve accessibility, and influence SEO. Incorrect usage can lead to poor user experience and reduced search engine rankings. For instance, misusing strong instead of em can confuse screen readers and affect content emphasis.
ins: Use for inserted text.
Apply the tags in HTML.
<strong>Important</strong> text.
<em>Emphasized</em> text.
<mark>Highlighted</mark> text.
<small>Less important</small> text.
<del>Deleted</del> text.
Example: <ins>Inserted</ins> text.
<ins>Inserted</ins> text.
Understand the visual and semantic impact.
mark, small, del, and ins mainly affect visuals.
Check accessibility implications.
del and ins can be read aloud as "deleted" and "inserted."
Verify SEO benefits.
Experts view text formatting as a balance between visual appeal and semantic meaning. They prioritize accessibility and SEO, using tags strategically to enhance user experience and search engine performance. Instead of focusing on aesthetics alone, they consider the holistic impact on the web page.
Exam trap: Questions may ask for the correct tag for emphasis.
The mistake: Overusing strong and em.
Exam trap: Scenarios may test for overuse.
The mistake: Ignoring del and ins.
Exam trap: Questions on content updates.
The mistake: Misusing mark for emphasis.
Scenario: You are updating a blog post with new information.Question: How do you indicate the deleted and inserted text? Solution: Use <del> for deleted text and <ins> for inserted text.Answer: <del>Old text</del> <ins>New text</ins> Why it works: Clearly shows content changes, improving readability and accessibility.
<del>
<ins>
<del>Old text</del> <ins>New text</ins>
Scenario: You need to emphasize a key point in your article.Question: Which tag should you use? Solution: Use the <em> tag.Answer: <em>Key point</em> Why it works: Italicizes the text and indicates emphasis to screen readers.
<em>
<em>Key point</em>
Scenario: You want to highlight a quote in your text.Question: Which tag is appropriate? Solution: Use the <mark> tag.Answer: <mark>Highlighted quote</mark> Why it works: Visually highlights the text without implying emphasis.
<mark>
<mark>Highlighted quote</mark>
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.