Interview Questions

When you want to show some part of a text displayed on an HTML page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?

PHP Interview Questions and Answers


(Continued from previous question...)

When you want to show some part of a text displayed on an HTML page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?

There are 2 ways to show some part of a text in red:

1. Using HTML tag <font color="red">
2. Using HTML tag <span style="color: red">

(Continued on next question...)

Other Interview Questions