eduard Posted July 30, 2011 Share Posted July 30, 2011 I have 4 links now on the homepage of my website (www.eduardlid.com)! The button of link 3 (english) I want to have the english flag and the button of link 4 (espanol) (Can I get ñ?) I want to have the spanish flag! How do I do this? Link to comment Share on other sites More sharing options...
Ingolme Posted July 30, 2011 Share Posted July 30, 2011 Get an image of the english flag and an image of the spanish flag and put it in the respective links. Link to comment Share on other sites More sharing options...
eduard Posted July 30, 2011 Author Share Posted July 30, 2011 Get an image of the english flag and an image of the spanish flag and put it in the respective links.Great reply for someone who is doing html for 8 months (and this he learned a long time ago!) Link to comment Share on other sites More sharing options...
Ingolme Posted July 30, 2011 Share Posted July 30, 2011 I don't know. This concept is so simple, it can't be that hard to look through a couple of pages of the HTML tutorial.http://w3schools.com/html/html_links.asphttp://w3schools.com/html/html_images.asp Link to comment Share on other sites More sharing options...
jeffman Posted July 30, 2011 Share Posted July 30, 2011 On the page about links that Ingolme links you to above, be sure to look at this page that shows images being used in links, and one that has no border. Link to comment Share on other sites More sharing options...
eduard Posted July 30, 2011 Author Share Posted July 30, 2011 I don't know. This concept is so simple, it can't be that hard to look through a couple of pages of the HTML tutorial.http://w3schools.com/html/html_links.asphttp://w3schools.com/html/html_images.asp Thanks! Link to comment Share on other sites More sharing options...
eduard Posted July 30, 2011 Author Share Posted July 30, 2011 On the page about links that Ingolme links you to above, be sure to look at this page that shows images being used in links, and one that has no border.Ok, thanks! Link to comment Share on other sites More sharing options...
eduard Posted July 30, 2011 Author Share Posted July 30, 2011 On the page about links that Ingolme links you to above, be sure to look at this page that shows images being used in links, and one that has no border.er topicThat was the first post of my other topic (Difference?). I still don´t know the answer.But my question wasn´t clear! Now I have 4 the same buttons (all in 1 div) To make button 3 and 4 different! I have to put them in another div? Link to comment Share on other sites More sharing options...
Ingolme Posted July 31, 2011 Share Posted July 31, 2011 If you mean to make the images different, then you have to put a different src attribute on the <img> element. Link to comment Share on other sites More sharing options...
thescientist Posted July 31, 2011 Share Posted July 31, 2011 Great reply for someone who is doing html for 8 months (and this he learned a long time ago!)surely by now you know what an < img > tag is right? You have been reading the tutorials, right? Link to comment Share on other sites More sharing options...
eduard Posted July 31, 2011 Author Share Posted July 31, 2011 I don´t understand that if I want to make a link of an image! In the <, /> I have to write the url of the image, but I also have to write the url of the document I want to open?Or do I have to download the image? Link to comment Share on other sites More sharing options...
Ingolme Posted July 31, 2011 Share Posted July 31, 2011 You use the <a> element for the link, and an <img> element for the image. The href attribute of the <a> element links to the document you want to open. The src attribute of the <img> element has the URL of the location of the image. Link to comment Share on other sites More sharing options...
eduard Posted July 31, 2011 Author Share Posted July 31, 2011 You use the <a> element for the link, and an <img> element for the image. The href attribute of the <a> element links to the document you want to open. The src attribute of the <img> element has the URL of the location of the image.Ok, thanks very much! Link to comment Share on other sites More sharing options...
eduard Posted August 1, 2011 Author Share Posted August 1, 2011 So, if I want an image as link (spanish flag) and I have this link:<a href="versions/espanol/base_de_datos.html"><b><h4>Espanol</h4></b></a>I have to write:<a href="versions/espanol/base_de_datos.html">image.gif</a><image=url>? Link to comment Share on other sites More sharing options...
jeffman Posted August 1, 2011 Share Posted August 1, 2011 Close:<a href="versions/espanol/base_de_datos.html"><img src="image.gif"></a> Link to comment Share on other sites More sharing options...
eduard Posted August 1, 2011 Author Share Posted August 1, 2011 Close:<a href="versions/espanol/base_de_datos.html"><img src="image.gif"></a>Thanks! But where do I have to write the url of the image? Link to comment Share on other sites More sharing options...
jeffman Posted August 1, 2011 Share Posted August 1, 2011 src="url/to/image.gif" Link to comment Share on other sites More sharing options...
thescientist Posted August 1, 2011 Share Posted August 1, 2011 Thanks! But where do I have to write the url of the image?it's in his example. the src.honestly, just read the tutorials a couple times before asking such simple questions.http://www.w3schools.com/html/html_images.asp Link to comment Share on other sites More sharing options...
eduard Posted August 1, 2011 Author Share Posted August 1, 2011 it's in his example. the src.honestly, just read the tutorials a couple times before asking such simple questions.http://www.w3schools.com/html/html_images.asp Yes, I know this (20 times!)!However, the example is NOT with an URL! Link to comment Share on other sites More sharing options...
jeffman Posted August 1, 2011 Share Posted August 1, 2011 Eduard, are you asking about absolute URLs like "http://www.somplace.com/somefolder/image.gif" ? The answer is the same.<a href="versions/espanol/base_de_datos.html"><img src="http://www.somplace.com/somefolder/image.gif"></a> Link to comment Share on other sites More sharing options...
eduard Posted August 2, 2011 Author Share Posted August 2, 2011 Eduard, are you asking about absolute URLs like "http://www.somplace.com/somefolder/image.gif" ? The answer is the same.<a href="versions/espanol/base_de_datos.html"><img src="http://www.somplace.com/somefolder/image.gif"></a>Ok, thanks very much! Link to comment Share on other sites More sharing options...
eduard Posted August 2, 2011 Author Share Posted August 2, 2011 Finally I did it (thanks Deidre´s Dad)! Just resize the image! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.