192k views
0 votes
How to use the tag with a class attribute to highlight inline text?

A) Use Your text here
B) Apply inline CSS with Your text here


C) Utilize the tag directly with no class attribute
D) Embed the text within Your text here
User Funonly
by
8.4k points

1 Answer

3 votes

Final answer:

To use the tag with a class attribute to highlight inline text, you would apply inline CSS using the class attribute.

Step-by-step explanation:

To use the <span> tag with a class attribute to highlight inline text, you would apply inline CSS using the class attribute. Option B is the correct choice. Here is an example:

<p>This is a <span>highlighted</span> text.</p>

In this example, the text 'highlighted' will be styled using the CSS class defined as 'highlight'.

User Luke Stanley
by
7.9k points