answersLogoWhite

0

<body>

<a href="insert the link here">insert the text to appear on page here</a>

<body>

for example

<a href="www.Google.com">click here to go to google</a>

</body>

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
More answers

There are two vehicles which you can use to transport your viewers' browser from on HTML page to another. You can add the linking code to images or text. Both methods are outlined below:

Note: all text below that is in quotation marks is the definition of the data that needs to replace that existing text. Also XX and YY represent pixel heights of the image in the image example.

Making an image a link:

<p><a href="URL path to external link" title="Mouseover Description"><img style="width: XXpx; height: YYpx; border: 0;" src="Path to image" alt="Text Description"></a></p>

If site does not host images, then you MUST host your image online at any good image hosting site. The URL MUST be the DIRECT link to the image alone and not to the page the image is on.

Text Link only:

<p><a href="URL path to external link" title="Mouseover Description">Link Text Description</a></p>

You can change the "p" tags to div tags and style as needed.

There are also named anchors which allow links to go to a specific section on the same web page or to a specific section on another web page.

User Avatar

Wiki User

13y ago
User Avatar

You can cause a webpage to automatically redirect to a different web address in any of several ways. The only one that allows this to be done in HTML uses a META tag in the HEAD section of your page.

http://answers.com">

In this example, the http-equiv has to equal refresh (or it won't work.) The "content" attribute is set first to an integer number representing the number of seconds before the redirect occurs. Then a semicolon. Then the url to which you are trying to redirect in the above format.

If you have server-side access, you can send an HTTP head for redirect, returning to the browser an HTTP 301 or 302 code. This is the preferred method.

Incidentally, you can use the refresh meta tag without the url parameter to cause the page to refresh every X seconds. This kind of reloading was very common before AJAX. Now, unless you've a reason to avoid it, I'd probably use AJAX to reload the content.

User Avatar

Wiki User

12y ago
User Avatar

<a href="[website]" target="[how to link - _blank, #frame]">[Link text displayed]</a>

For example:

<a href="mysite.com" target="_blank">MySite</a>

You can link to items in the webpage by using their id - href="#idOfElement"

Hope this helps.

User Avatar

Wiki User

13y ago
User Avatar

To create a link from one page to another using HTML, we use the anchor tag.

The tag takes the form

WRITE LINKED TEXT HERE

Where the href attribute holds the URL of the resource (webpage, image, mp3, etc.) you're pointing to. The text between the opening and closing tags ("Linked Text" in this example) will be visible to the user, and the browsers tend to give it a default styling of a blue, underlined text.

Anchor tags have other uses, which is why they're called anchor tags. They also have a bunch of other attributes, all of which you can find (for HTML 5) at the related link.

User Avatar

Wiki User

12y ago
User Avatar

You can link to another HTML document using an HTML button. Use the form action feature to go to another web page. Here is an example you can use:


User Avatar

Wiki User

10y ago
User Avatar

== == This is how to do it in HTML:

<a href="[target_location]" title="[title_of_target_page]">Link text</a>

User Avatar

Wiki User

16y ago
User Avatar

A link eg: <a href="page2.html">Page 2</a>

User Avatar

Wiki User

16y ago
User Avatar

The easiest way is to make a navigation menu for all links. There are many types of menus. Some with lots of bells and whistles, slide outs, drop downs, etc..

User Avatar

Wiki User

15y ago
User Avatar

Your answer is simple.

Site 1

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: How do you link one HTML page to another using button?
Write your answer...
Submit
Still have questions?
magnify glass
imp