eHow launches Android app: Get the best of eHow on the go.

How To

How to Use HTML Tags for Links

Member
By WebDiva
User-Submitted Article
(4 Ratings)

Making a link with HTML is easy. I'll take it step by step to make it very simple

Difficulty: Easy
Instructions

Things You'll Need:

  • A simple text editor like Notepad, or an HTML editor.
  • A web browser
  • A little understanding of web pages and HTML tags.
  1. Step 1

    Open a new document in your text editor or HTML editor. If using an HTML editor, go to 'Code' or 'Source' view. Save the blank document as "MyLink.html". Make sure the extension is .htm or .html, so the browser will know how to process it.

  2. Step 2

    Now we'll add some basic HTML tags. All tags are enclosed in '>' symbols, but I'm going to use '[' and ']' because the eHow editor doesn't allow HTML. Just Change each instance of ']' to '>' and '[' to '<' for your page.

  3. Step 3
    MyLink.html code
    MyLink.html code

    At the top, put [html] this lets the browser know where the HTML code starts. Below that put [head] - this is where non-visible HTML code goes. Under [head], put: [title] This is My Link Page [/title]. Anything between the opening tag [title] and the closing tag [/title] will appear at the top of the browser window.

  4. Step 4

    Below the title, add [/head], to close the head section. Then below that, add [body], then [/body] to close body section, then [/html] to close the HTML section. Between [body] and [/body] is where your link will go, so add a sentence or two there.

  5. Step 5
    MyLink.html in browser
    MyLink.html in browser

    Now save the file again as an .html, and open it in a brower window. Admire your work!

  6. Step 6
    Link code
    Link code

    Now for your link. All links are opened with [a] and closed with [/a]. But we add some 'properties' to the opening tag to make it work. Any thing between the open and closing tags will show as the link text. The first property we'll add is 'href' and the address of the page we want the link to go to. For this, I'll use my website www.writecraft.net. Note that you must start with "http://" and use a full address for any pages that aren't on the same website as your file.

  7. Step 7
    Link in browser
    Link in browser

    Now, edit your MyLink.html file and put [a href="www. writecraft. net"] Click My Link Here [/a] somewhere between [body] and [/body] and save the file. Open it in a browser window, and there should be your link!

Comments  

| View All 6 Comments

franchesca said

Flag This Comment

on 6/8/2009 Good information.

ezyas123 said

Flag This Comment

on 6/2/2009 Nice job!

Flag This Comment

on 5/25/2009 Great HTML tips. 5*

elyria said

Flag This Comment

on 3/14/2009 Great article! 5* and gave you a recommendation!

rennfahr said

Flag This Comment

on 3/12/2009 Great tips! 5* given

Post a Comment

Post a Comment
  • Have you done this? Click here to let us know.
I Did This

Related Ads

Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics