Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
Here is the method of linking a webpage or URL:
<a href="URL">
The URL of the link.
Possible values:
you use the a tag and you specify the target attribute to be _blank
Example:
<a href="http://bayt.com" target="_blank">Bayt Site</a>
do you mean redirect your current page to another page ? in html you can use the following tag <a href="" >
and in server site in case you want to make your submit button redirect you to another page , in asp.net c# . response.redirect(url); into the event handler of the button .
Assalamu alaykoum
Here is a simplest way in HTML:
<a href="index.html">Home</a>
Explanation: the word "Home" in your HTML paragraph will link to the page "index.html" in the same folder of your server.
if you want link to another page ex:
<a href="www.google.com">Google page</a>
Here both words "Google page" will link to "www.google.com".
Thanks,
You can use normal anchor text with href attribute pointing to that web page. However it is best practice to add rel="nofollow" if that link point to another website to discourage SE crawling
syntax = <a href="link-to-page">link text here</a>
you add the code
< a herf="the URL of the new page here" > click here < /a >
The simplest and easiest way to link in html is
<a href="url">link text</a>
where url is your targeted webpages
&
link text is your defined text to show for link.
Hope u understand.
:-)
Regards
in html we can use href tag: href ="page1.html" we can also give the "target" to check whether the link will open in same tab or another tab.
There are two possible ways to make link to a different website.
The first is by using HTML anchor tag <a href="URL of the website">Clcik here</a>
The other way is to use button
<form action="url of the website">
<input type="button" value="Click Here"/>
</form>
there is two way to doing that first and i dont prefer by Javascript is going like this
onclick="location.href='PAGE-URL'"
and we use this to make any html element to behave like a link so you can type this code on image or div or any html element as inline attribute to get the result
and we don't like to use it because maybe we got some people use old browsers and disable a Javascript functions by default.
and the best way is a basic HTML code as below
<a href="PAGE-URL">YOUR CONTENT HERE</a>
you can change the content inside with any think you want as image, and its work with div or any html element but many of the content will not take you as a validated code.
The basic, and most usual, is with html, with the simple use of the <a></a> tag and its attributes:
<a href="http://google.com" target="_blank" >check google</a>href= indicates where to lead the user (in this case google)target= indicates wheather to open this link within the same window, or in this case another tab (_blank).Then as someone said, it can also be done using javascript by on the click event, but if js is off on the user side, then... the js used on the page won't work.