Write a program to print a paragraph with different font and color.

Description: Create a webpage to print a paragraph with 4 – 5 sentences. Each sentence should be in a different font and color.

Hint: Put the paragraph content inside the body tag and paragraph should be enclosed in <p> tag.

<html>
<body>
<p>
<font face="Arial" color="red">
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
</font> 

<font face="Times New Roman" color="green">It is the core
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</font> 

<font face="Verdana" color="blue">
It has survived not only five centuries.
</font> 

<font face="Helvetica" color="yellow">
It is a long established fact that a reader will be distracted by the 
readable content of a page when looking at its layout.
</font>
</p>
</body>
</html>

Learn more about the similar topics:
Tutorials
HTML Elements and Tags
Exercises & Assignments
Write a program to create a webpage to print values 1 to 5
Write a program to create a webpage to print your city name in red color.
Write a program to print a paragraph with different font and color.
Interview Questions & Answers
No Content Found.