Accrington Web
   

Home Gallery Arcade Blogs Members List Today's Posts
Go Back   Accrington Web > Technical & User to User help > Crash Computers Chat
Donate! Join Today

Crash Computers Chat Let's talk computers! Got a problem with your computer? Need some advice? Got any great tips?


Welcome to Accrington Web!

We are a discussion forum dedicated to the towns of Accrington, Oswaldtwistle and the surrounding areas, sometimes referred to as Hyndburn! We are a friendly bunch please feel free to browse or read on for more info.
You are currently viewing our site as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, photos, play in the community arcade and use our blog section. Registration is fast, simple and absolutely free, so please, join our community today!



Reply
 
LinkBack Thread Tools
Old 05-03-2004, 20:18   #1
Len
God Member
 
Len's Avatar
 

Html

Can someone tell me the difference between the two codes below:
They are both links to an image for a website page. I am using sample2 on my site, which one is the better? They are the same apart from things like; self,alt,blank.
I copied the code from this website in sample2


sample1
<a href="http://homepage.ntlworld.com/*****/" target="_blank"><img
alt="****derra Memories" border="0"
src="http://homepage.ntlworld.com/***/ur...derrabanner.jpg"
width="723" height="91"></a>

sample2
<a href=http://homepage.ntlworld.com/***target="_self""><img src="http://homepage.ntlworld.com/****/u...derrabanner.jpg"
alt="Return to Website" border="0"
width="723" height="91" /></a>



The links don't work. I made them so.
samples only.
__________________

Donate to Accyweb here:

Last edited by Len; 05-03-2004 at 20:29.
Len is offline   Reply With Quote
Accrington Web
Old 05-03-2004, 21:26   #2
Caz
God Member
 
Caz's Avatar
 

Have always used the syntax in the 2nd example, but would use target="_blank" to open in a new window.
Caz is offline   Reply With Quote
Old 05-03-2004, 22:21   #3
Len
God Member
 
Len's Avatar
 

Thanks for that cazzer.

Ok.I dont want to open a new window. I want the link to put a banner on the top of a page. At the moment it does do, its just that I found the other sample"1" and wasn't sure which would do the job best.

href= my homepage. What is href?

target= "_self"?

img src= banners address i.e where the banner is kept.

alt= "Return to Website" what does this mean? Does this return the link after it has been to the banners address.

I didnt get the sample of this site, it was another. My mistake

Last edited by Len; 05-03-2004 at 22:26.
Len is offline   Reply With Quote
Old 05-03-2004, 23:03   #4
Caz
God Member
 
Caz's Avatar
 

<a href" ***">~~~~</a> an anchor, just gives your link.

Target="_self" opens link in same window.

If youre linking to a site with a banner, would still use target="_blank" to open in a new window, always easier to get back home.

<img src="****"> just your image name

"alt" is the text you should see in a little box when you put your mouse over an image, it's hepful when pics don't show for some reason.

Check this link out, some useful info on there.

http://www.w3schools.com/html/default.asp
Caz is offline   Reply With Quote
Old 07-03-2004, 23:54   #5
Len
God Member
 
Len's Avatar
 

Re: Html

Thanks cazzer you have been a big help!

I am also sure that the link will help others too.
Len is offline   Reply With Quote
Old 02-04-2004, 13:53   #6
God Member
 
entwisi's Avatar
 

Re: Html

alt tags are also used by text to speech browsers used by visually disabled users. To check your site for DDA complience there is a tool called Bobby that will give you a report of things that will cause problems.
entwisi is offline   Reply With Quote
Reply




Other sites of interest.. More town sites..




All times are GMT. The time now is 16:42.


© 2003-2013 AccringtonWeb.com



Search Engine Friendly URLs by vBSEO 3.6.1