Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTML Code for Button

Featured Replies

Hello All,

 

I am a beginner, In website http://www.click2rupee.com/ the "CLICK HERE" button is linked to http://www.clixsense.com/?r=3488429.

 

If i use the same website as http://www.click2rupee.com/?r=5963166 [including /?r=5963166 at the end] the "CLICK HERE" Button automatically links to http://www.clixsense.com/?r=5963166

 

How does this happen? What is the HTML Code to create a button like this. Please help

 

Regards,

Arun

There are two ways to create a button such as you have:

 

http://www.w3schools.com/tags/att_button_type.asp this explains one way and then you can style the button.

 

The other is as Vulcan has written and then you style the <a> and Click2Rupee button classes to look as you wish the button to

  • Author

Hello All,

 

I put my question straight here.

 

If my website address is www.abcd.in a "Click Here" button should be linked to http://www.XXXXXXXX.com/?r=1234567

 

If my website address is www.abcd.in/?r=11111 a "Click Here" button should be linked to http://www.XXXXXXXX.com/?r=11111

 

Please help me a HTML Code for creating a Click here button.

Thanks All.

 

Hello All,

 

I put my question straight here.

 

If my website address is www.abcd.in a "Click Here" button should be linked to http://www.XXXXXXXX.com/?r=1234567

 

If my website address is www.abcd.in/?r=11111 a "Click Here" button should be linked to http://www.XXXXXXXX.com/?r=11111

 

Please help me a HTML Code for creating a Click here button.

Thanks All.
_________________________

<?php
if (($_SERVER['HTTP_HOST'] == "abcd.in") OR ($_SERVER['HTTP_HOST'] == "www.abcd.in"))
{ 
echo '<a href="http://www.XXXX.com/?r=1234567">Click Here</a>';
}
else if (($_SERVER['HTTP_HOST'] == "abcd.in/?r=11111") OR ($_SERVER['HTTP_HOST'] == "www.abcd.in/?r=11111")){
echo '<a href="http://www.XXXX.com/?r=11111">Click Here</a>';
}
?>

This is the type of thing your looking for it seems, but that won't work alone, you need to have PHP generating the correct ID numbers (/?r=11111) for the url. As I presume these are just example numbers your throwing up. To get my example working you need this to be running inside a .PHP file not .HTML.

 

HTML

If those numbers are actually correct and the ones you will be using (doubtful) then:

 

www.abcd.in

<a href="http://www.XXXX.com/?=1234567">Click Here</a>

 

www.abcd.in/?r=11111

<a href="http://www.XXXX.com/?=11111">Click Here</a>

Edited by JordanC

  • Author

Hello All,

 

I put my question straight here.

 

If my website address is www.abcd.in a "Click Here" button should be linked to http://www.XXXXXXXX.com/?r=1234567

 

If my website address is www.abcd.in/?r=11111 a "Click Here" button should be linked to http://www.XXXXXXXX.com/?r=11111

 

Please help me a HTML Code for creating a Click here button.

Thanks All.
_________________________

<?php
if (($_SERVER['HTTP_HOST'] == "abcd.in") OR ($_SERVER['HTTP_HOST'] == "www.abcd.in"))
{ 
echo '<a href="http://www.XXXX.com/?r=1234567">Click Here</a>';
}
else if (($_SERVER['HTTP_HOST'] == "abcd.in/?r=11111") OR ($_SERVER['HTTP_HOST'] == "www.abcd.in/?r=11111")){
echo '<a href="http://www.XXXX.com/?r=11111">Click Here</a>';
}
?>

This is the type of thing your looking for it seems, but that won't work alone, you need to have PHP generating the correct ID numbers (/?r=11111) for the url. As I presume these are just example numbers your throwing up. To get my example working you need this to be running inside a .PHP file not .HTML.

 

HTML

If those numbers are actually correct and the ones you will be using (doubtful) then:

 

www.abcd.in

<a href="http://www.XXXX.com/?=1234567">Click Here</a>

 

www.abcd.in/?r=11111

<a href="http://www.XXXX.com/?=11111">Click Here</a>

 

Hello Mate, Please help meto put these into HTML Tagging, Thank you

  • 9 months later...

You can simple use anchore there. <a class="button" href="">Click here</a>

<button type="button">Click Me!</button>

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.