Académique Documents
Professionnel Documents
Culture Documents
<img src = “foldername/filename” width = “px” height “px” alt = “Some Text”>
src – attribute to define the drive,folder name and filename with extension
alt – to display an alternate text when the mouse is moved on the image.
Eg …<html>
<head><title> Background Colour </title></head>
<body>
<img src = “clouds.jpg” width = “50” height = “50” alt = “Picture of clouds”>
</body>
</html>
Tag Description
<abbr> Defines an abbreviation
<acronym> Defines an acronym
<address> Defines an address element
<cite> Defines citation
<code> Defines computer code text
<blockquote> Defines a long quotation
<del> Defines text
<dfn> Defines a definition term
<em> Defines emphasized text
<ins> Defines inserted text
<kbd> Defines keyboard text
<pre> Defines preformatted text
<q> Defines short quotation
<samp> Defines sample computer code
<strong> Defines strong text
<var> Defines a variable
General syntax :
<html>
<head>
<title>HTML </title>
</head>
<body>
MY FIRST HTML DOCUMENT
</body>
</html>
<html> -- The first tag in your html document. This tag tells your browser that this is the
/html> To start and end the program informs the browser.
Head Section : <head> …. </head> The text between the head tag is header information.
<title>….</title> The text between the tile tag is the title of the web document
Body Section :
The text between the <body> tags is the text that will be displayed in your browser
window.
General Syntax :
-----
----
</table>
Width attribute define the width of the table to be displayed in the web page
Cellspacing – It defines the space between the two cells inside the table
Cellpadding – It define the space between the content and margins inside the cell
Border – It defines the border width of the table in the web page
<td> .... <./td> - To define the table data inside the cell
align - to align the content inside the cell – center, left, right or justify
bgcolor – to fill the color inside the cell for the content
Example :
<tr>
<th> Day <./th>
<th> 1</th>
<th> 2 <./th>
<th> 3 </th>
<th> 4 <./th>
<th> 5 </th>
<th> 6 <./th>
<th> 7</th>
<th> 8 </th>
</tr>
<tr>
<td> AS <./td>
<td> AS </td>
</tr>
</table>
List tag is used to display the text in bulleted list or numbered list.
1. Ordered List
2. Unordered List
3. Definition List
Ordered List :
General Syntax :
<li> Grapes
<li> Oranges
<li> Apple
<li> Mangoes
</ol>
Unordered List :
General Syntax :
<li> Triangle
<li> Rectangle
<li> Circle
<li> Hexagon
</ul>
Definition List :
General Syntax :
<dl>
</dl>
********