0 votes

I'm trying to highlight a single word in a question like so:

*html
    Please read the following passage and answer the associated question: 
    
    Tatyana knew that Grandma always enjoyed serving an abundance of food to her guests. Now Tatyana watched as Grandma gathered Tatyana's small mother into a wide, scrawny embrace and then propelled <span style="color:red;">her</span> to the table, lifting her shawl from her shoulders, seating her in the place of honor, and saying simply: "There's plenty."

When I preview the study, nothing appears. Something only appears if I use an HTML tag immediately after the *html keyword. For example:

*html
    <h3> Please read the following passage and answer the associated question: </h3> 
    
    Tatyana knew that Grandma always enjoyed serving an abundance of food to her guests. Now Tatyana watched as Grandma gathered Tatyana's small mother into a wide, scrawny embrace and then propelled <span style="color:red;">her</span> to the table, lifting her shawl from her shoulders, seating her in the place of honor, and saying simply: "There's plenty."

Now, all of a sudden, I can see the HTML content. However, now, all the text after the span tag doesn't appear for me. What is the right way of coloring a single word while preserving the rest of the prompt?

by (480 points)

1 Answer

+1 vote

You can wrap up the whole paragraph:

*html
	<p>Tatyana knew that Grandma always enjoyed serving an abundance of food to her guests. Now Tatyana watched as Grandma gathered Tatyana's small mother into a wide, scrawny embrace and then propelled <span style="color:red;">her</span> to the table, lifting her shawl from her shoulders, seating her in the place of honor, and saying simply: "There's plenty."</p>
by (3.6k points)
Welcome to Guidedtrack Q&A, where you can ask questions and receive answers from other members of the community.
134 questions
144 answers
55 comments
40 users