In this program we are going to use a html tag inside a out object. out object is used to display the content on the browser. To make this program run use out object inside which define some html code along with the content you want to display on the browser. In this example we are displaying the content "Welcome To Roseindia.net" with font size = 6 and color = #CC0000.
The code of the program is given below:
<% out.println("Welcome To <i><font size='6' color ='#CC0000'>");
out.println(" Roseindia.Net</font> </i>."); %>
The output of the program is given below:
Liked it! Share this Tutorial