44.7k views
2 votes
Do you have to have a class in a span tag to be able to style it?

User Cromir
by
3.1k points

2 Answers

8 votes

Answer:

im confused on your question....

Step-by-step explanation:

User Elibud
by
3.5k points
14 votes

Answer: When you wrap text with an opening <span> and closing </span> , you're simply providing a hook—one that allows you to add styles (by adding a class attribute and using CSS to define the look of that class), or interact with the element via JavaScript and the Document Object Model (DOM).May 14, 2014

Step-by-step explanation:

User Mark Lapasa
by
3.9k points