| HTML - A Beginners First Steps - Links - 2 |
Page 2 of 2
Place this link between the [body] tags in your html page and save it as "link.html" so that it looks like this. [html] [body] [/html] Open the page in your browser and you will have a blank white screen with your link in the top left hand corner. Change around the Anchor Text... Links are sometimes called "Anchors". The Anchor text is the text that is actually displayed on the website in your browser. It is the text you placed between the [a][/a] tag. What this text is, is completely up to you. You could change it to [a href="/url"]Sandwich[/a]. Try it and see the difference. Integrating Links into your text... Putting a link in the middle of a sentence is simple. Take the sentence "Heres a link to shoe if you want to search for something." "Heres a link to [a href="/url"]shoe[/a] if you want to search for something" You can enclose any word or every word depending on where you place the link tags. Try the following example in your page to see what I mean. [a href="/url"]Heres a link to shoe[/a] if you want to search for something Open a new window with your link... The most simple way to open a new window with a link is by adding "target="_blank"" after the "href" in the tag [a href="/url" target="_blank"]shoe[/a] The word "target" refers to the name of the browser window you want the link to open. "_blank" is a command to open a new blank page with no name. You can change this however to anything you like If you want you could change it to "linkwindow". [a href="/url" target="linkwindow"]shoe[/a] But for the most part you will have no need to use anything other that _blank. Conlcusion... Copy the following cod into notepad and save as "links.html". play around with the ideas I have given you remember to change the square bracket characters to arrows! instead of [ and ]. and remember to replace the word url with an actual url! [html] [body] [/html] This article was written by William O'Connor, webmaster and part of the admin team of [http://www.freegamesnova.com] Article Source: http://EzineArticles.com/?expert=William_O'connor |