Computer Project
76. Write about
inserting link and images tag with attributes and examples in HTML.
Inserting link
How to insert a link Inserting?
The tags used to produce links are the
<a> and </a>.
The <a> tells where the
link should start and the </a> indicates where
the link ends.
Everything between these two will work
as a link.
The target of the link is added to the
<a> tag using
the href="http://www.whateverpage.com" setting.
the href="http://www.whateverpage.com" setting.
Note: to link to a certain point on a page, you must create an anchor point
on that page. To insert an anchor point, simply insert the following code:
<A name=insert name>Insert some text here</A>
Attribute
Links: This
creates a link to another page or an e-mail.
Using
the # sign links to a defined spot on the current page or another page.
<a
name="tips">Useful Tips Section</a>
<a
href="#tips">Visit the Useful Tips Section</a>
<A href= home.html><IMG SRC = pic1.JPG> </A>
Images tag
Definition and Usages
The <img> tag defines an image in an HTML
page.
The <img> tag has two required attributes:
src and alt.
The <img> tag creates a holding space
for the referenced image.
Required
Attributes
Attribute
|
Value
|
Description
|
text
|
Specifies an alternate text
for an image
|
|
URL
|
Specifies the URL of an image
|
Optional
Attributes
Attribute
|
Value
|
Description
|
top
bottom middle left right |
Specifies the alignment of an image according to surrounding elements |
|
pixels
|
Specifies the width of the border around an image |
|
pixels
% |
Specifies the height of an
image
|
|
|
pixels
% |
Specifies the width of an
image
|
·
<img
src="smiley.gif" alt="Smiley face" height="42"
width="42" >
· <img src =”ram.jpg” border = “5”
align = “top” height = “50” width = “50”>
Comments
Post a Comment