You are on page 1of 3

HTML Code

How To Use Title <html> <head><title>Title of page</title> </head> <body> This is my first homepage. </body> </html> How To Use Line Break Tags <html> <body> To break<br>lines<br>in a<br>paragraph, <br>use the br tag. </body> </html> How To Bold, Italic, Underline Some Text <html> <body> <b> This is bold </b> <BR> <i> This is Italic </i> <BR> <u> This is Underline</u> <BR> </body> </html>

Md. Shahanur Islam, Lecturer (MIS). ASAUB.

How To Use Headings (Default Font Size) <html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> <p> Use heading tags only for headings. Don't use them Just to make something bold. Use other tags for that. </p> </body> </html> How To Align Text (Left / Right / Center) <html> <body> <h1 align="center">This is the center align example </h1> <h2 align="left"> This is the left align example </h2> <p align="right"> This is the right align example </p> </body> </html> Note: Align Not Use Single You Must Use (H1 / H2 / H3 / H4 / H5 / H6 or P)

Md. Shahanur Islam, Lecturer (MIS). ASAUB.

How To Use Font Color, Size, And Face <html> <body> <font size="20" color="RED" face="Arial"> Department of Management Information Systems (MIS). </font> </body> </html>

<br><br><br>
<html> <body> <font size="20" color="#0000ff" face="Arial"> Department of Management Information Systems (MIS). </font> </body> </html>

Md. Shahanur Islam, Lecturer (MIS). ASAUB.

You might also like