2. Create an html page which will display names of players of Indian cricket team with all the different text styles (bold, italic and underlined) and its combinations on separate lines. State style of each line in its text.

 

Program :

 

<html>

<center><h2>Indian Cricket Team Players : </h2><br> <center>

<body><center>

<b> M.S. DHONI </b>

<!-- (bold) -->

<p><I> VIRAT KOHLI </I></p>

<!-- (italic) -->

<p><U> SHIKHAR DHAWAN</U></p>

<!-- (underlined) -->

<p><U><I> Rishab Pant</I></U></p>

<!-- (italic,underlined) -->

<P><B><I> SANCHIN TANDULKAR </I></B></p>

    <!-- (bold,italic) -->

<p><U><B> VIRENDER SEHWAG</B></U>

    <!-- (bold,underlined) --><center>

</body>

</html>


Output Screen : 





No comments:

Post a Comment