1. (<strong>) Tag:
The <strong>
tag is used to highlight text as important or strongly emphasized. It typically renders as bold text by default, but its semantic meaning is to convey importance rather than just bold styling.
Example:
In this example, the word "important" is highlighted as important within the paragraph.
2. ' <em>' Tag:
The <em>
tag is used to italicize text, indicating emphasis. Italicized text can signify stress, importance, or a change in tone.
Here, the word "very" is italicized for emphasis within the sentence.
3.' <u>' Tag:
The <u>
tag is used to underline text. It's commonly used to indicate hyperlinks, but it can also be used for other instances where underlining is necessary.
Example:
The word "underlined" in the paragraph is visually underlined.
4. '<s>' Tag:
The <s>
tag is used to create a strikethrough effect on text, indicating that the text has been deleted or is no longer valid.
Example:
The word "strikethrough" is displayed with a line through it, indicating that it's no longer valid or relevant.
Importance and Usage:
- Semantic Meaning: These tags carry semantic meaning, helping assistive technologies and search engines understand the structure and emphasis of text.
- Accessibility: Proper use of these tags improves accessibility for users who rely on screen readers or have visual impairments.
- Clarity: Text formatting with these tags enhances readability and clarity, making important information stand out.
- Styling Flexibility: While these tags have default styling (like bold, italic, underline, and strikethrough), their appearance can be customized using CSS for design purposes.
This sentence demonstrates the combined use of <strong>, <em>, <u>
, and <s>
tags for different types of text formatting within a paragraph.
Practice Excercise Practice now