html class notes
html class notes
SRC attribute of the element equal to the URL(Uniform Resource Locator) of the image. The
URL may be either an absolute URL or a relative URL. Most likely, the image element will use a
relative URL to an image found locally. The SRC attribute must be included. Otherwise, browser
that supports images may display a placeholder or broken image icon and it will display a Text
specified in ALT attribute of image.
* Title Property
For Tooltip on image.
* Border Property:
Border =”3” it creates the border around the image with specified pixels.
* HSpace Property: Horizontal Space on both side of image (Left and Right)
HSpace = “50”
* VSpace Property: Vertical Space on both side of image (Top and Bottom)
HSpace = “50”
*Height and width Property: Set the Height and width of image in browser window.
Image Map -: An image map is an image that contains many hot spots that may result in a
different URL being loading depending on where the user clicks.
</map>
<a href=”shape.map”>
<img src="loading.gif" ismap>
</a>
Table
Tables were initially intended as a means of displaying tabular data in a web page. It contains
row and column of information.
<td> Attribute
valign=top, middle, bottom (vertical alignment of text/image in a particular cell)
align =left, right, center, justify (horizontal alignment of text/image in a particular cell)
bgcolor= background color of Cell
width= width of column in pixel or %
cellpadding
IFrame
The iframe (Inline Frame) creates a "window" in a web page that can display a second
document within its border.
Here's the code for a very simple iframe:
Another one
<table border="1" width="100%">
<tr>
<td width="33%"><a href="http://www.yahoo.com" target="window">Yahoo</a></td>
<td width="33%"><a href="http://www.google.com" target="window">Google</a></td>
<td width="34%"><a href="http://www.microsoft.com"
target="window">Microsoft</a></td>
</tr>
</table>
<iframe name="window" width="1000" height="200" scrolling="auto"></iframe>
<Marquee> Tag
You can create a scrolling marquee (i.e. scrolling text or scrolling images or any content) by
using the <marquee> tag. You can make the text/images scroll from right to left, left to right, top
to bottom, or bottom to top - it's your choice!