Professional Documents
Culture Documents
Introduction
BY:
ABID JAMEEL
(M.S COMPUTER SCIENCE)
Image Insertion
For image insertion <img> tag is used
Place all images in the same directory/folder where you web pages are
<html>
<head>
<title>image Insertion</title>
</head>
<body>
<p>This is the inserted image:</p> <br>
<img src=“logo.png “ border=“1” hspace=“10px” vspace=“10px” alt="image not
found" width="40px" height="40" />
</body>
</html>
marquee
<Html>
<body>
<a href=“page2.html”>jump to page2</a>
</body>
</html>
Attribute:Download
Download
<a href=“link" download>Abc</a>
Target
<a target="_blank">
_blank = Opens the linked document in a new window or tab.
Table footer
<tfoot>
<tr>
<td>Col1</td>
<td>Col2</td>
</tr>
</tfoot>
HTML Table Attributes
Align
Align content in the cell
Left, right, center
Bgcolor
Specifies the background color for a table
#xxxxxx, colorname
Cellpadding
Specifies the space between the cell wall and the cell content
Cellspacing
Specifies the space between cells
Width
Specifies the width of a table
HTML Table Attributes
Align
Aligns the content in a cell
Left, right, center
Bgcolor
Specifies a background color for a cell
Nowrap
Specifies that the content inside a cell should not wrap
RowSpan
Sets the number of rows a cell should span
ColSpan
Specifies the number of columns a cell should span
Height
Sets the height of a cell
HTML Lists
The most common html lists are ordered list and un ordered list.
An ordered list
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The list items are marked with numbers.
<ol>
<li>item1</li>
<li>item2</li>
<li>item2</li>
</ol>
o Attributes:
Start = number, alpabet
Type = 1, A, a, I, I
Reversed = true/false
Title = “text”
Unordered Lists
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
The list items are marked with bullets (typically small black circles).
<ul>
<li>item 1</li>
<li>item 2</li>
</ul>
o Attributes:
Type = disc, square, circle
Title = “text”