HTML Quick Guide
File structure: <html>
How the file basically <head> <title> this is your page title </title></head>
written <body> This is your page content </body>
</html>
Heading: <h1> heading </h1>
Different size headings
From h1: bigger till h6:
smallest
Paragraph: <p> Write the text with no spaces and no line breaks
To write a paragraph, <pre> Preserve paragraph written spaces and line
two tags are used: breaks
Formatting: <font color=”blue” size=”7”>
All tags used to format <b> bold text
written text <u> underlined text
<i> italic text
<center> centered item
<br> line break/ENTER
Image: <img src= ”image name and path” length=100
To add an image with a width=100>
specified size (length x
width)
Back-ground color: <body style=”background-color:yellow”>
To change web page
background color
Back-ground image: <body background=”image name and path”>
To place an image as the
background
1/3
Table: <table> to start designing tables rows and columns
Inserting a table with a <tr> to set the row design, consists of a number <td>
set or rows and columns tags
<th> table column title/heading
<td> Table column data
Example:
<table border=2>
<tr><th>row1,name1</th><th>row1,name2</th></tr>
<tr><td>row2,col1</td><td>row2,col2</td></tr>
<tr><td>row3,col1</td><td>row3,col2</td></tr>
</table>
Output:
Ordered List: <ol type=1>Order list title
To insert a numbered <li> first list item </li>
list (1,2,… ,I,II,….. , <li> second list item </li>
a,b,c,….) <li> third list item </li>
</ol>
Output:
Unordered List: <ul type=disc>Unorder list title
To insert a dotted list <li> first list item </li>
(circle, disc, square,…) <li> second list item </li>
<li> third list item </li>
</ul>
2/3
Output:
Links: <a href=”page URL”> text or image to click on to
open the link </a>
Example:
<a href=https://www.google.com> GOOGLE
SEARCH </a>
Output:
GOOGLE SEARCH
3/3