Thursday, 28 December 2017

HTML Programs by Bhawani ·

Simple Web Page Designing to learn the structure of the HTML
<html>
<head>
<title> My First Program
</title>
</head>
<body>
Coded the Web page
</body>
</html>

To Use Font Size and Font Color in Web Text
<html>
<head>
<title> My Second Program </title>
</head>
<body>
<Font Color=RED Size=6> The font Size and the Color has Changed </Font>
</body>
</html>

Align a paragraph in a document
<html>
<head>
  <title>Paragraph Alignment </title>
</head>
<body>
  <p align="left">Left Paragraph Alignment</p>
  <p align="center">Middle Paragraph Alignment</p>
  <p align="right">Right Paragraph Alignment</p>
</body>
</html>

Setting the text font to Bold Italic and Underline
<html>
<head>
  <title>Bold Italic and Underline Text  </title>
</head>
<body>
  <p><b>Bold text</b></p>
  <p><i>Italic text</i></p>
  <p><u>Underline text</u></p>
  <p><b><i>Bold & Italic text</i></b></p>
  <p><b><i><u>Bold &amp; Italic text</u></i></b></p>
</body>
</html>

Changing the font Style and size
<html>
<head>
  <title> Font Style and size </title>
</head>
<body>
  <p><font size="4" face="Times New Roman">Font Style Times new Roman Size 14 pts</font></p>
  <p><font face="Arial">Font Style Arial Size 12 pts</font></p>
</body>
</html>

Applying different colour to Text
<html>
<head>
  <title>Colouring Text  </title>
</head>
<body>
  <p><font color="rgb(255,0,0)">Red Color Text</font></p>
  <p><font color="rgb(0,0,255)">Blue Color Text</font></p>
  <p><font color="rgb(255,255,0)">Yellow Color Text</font></p>
  <p><font color="rgb(0,255,0)">Green Color Text</font></p>
  <p><font color="rgb(255,0,255)">Pink Color Text</font></p>
</body>
</html>
x
x

No comments:

Post a Comment