My code is checking if the restaurant has a title or not and if not, the word “No Title” appears in the table. It is here I want mark the word “No Title” with red. How is that possible?
My code for that line looks like this
<td><?= isset($restaurant_result['title']) ? $restaurant_result['title'] : 'No Title'; ?></td>
You could add a class to your
tdelement:And then style it with CSS: