Jump to content

How to add another html site to mine?

kriptcs

Greetings! Sorry for the load of questions.Even tho i can google it,i found nothing useful by doing so.How can I add another html page to mine.For ex. I have an image called : CAT IMGS.What do i need to do so that when someone clicks on that,they get redirected to another html site i make?

Ryzen 9 7900x w/ LIAN LI Galahad 240  +   MSI RTX 3060
32GB @ 4800 mhz Corsair Vengeance + ASUS TUF X670e-PLUS

Seasonic Focus+ 750w

Link to comment
Share on other sites

Link to post
Share on other sites

<a href="default.asp">
  <img src="smiley.gif" alt="A Smiley Face" style="width:42px;height:42px;border:0;">
</a>

Change default.asp to the link you want it to redirect to, and image src to whatever yours is called, and the dimensions to whatever you need.

PC - CPU Ryzen 5 1600 - GPU Power Color Radeon 5700XT- Motherboard Gigabyte GA-AB350 Gaming - RAM 16GB Corsair Vengeance RGB - Storage 525GB Crucial MX300 SSD + 120GB Kingston SSD   PSU Corsair CX750M - Cooling Stock - Case White NZXT S340

 

Peripherals - Mouse Logitech G502 Wireless - Keyboard Logitech G915 TKL  Headset Razer Kraken Pro V2's - Displays 2x Acer 24" GF246(1080p, 75hz, Freesync) Steering Wheel & Pedals Logitech G29 & Shifter

 

         

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, RKRiley said:

<a href="default.asp">
  <img src="smiley.gif" alt="A Smiley Face" style="width:42px;height:42px;border:0;">
</a>

Change default.asp to the link you want it to redirect to, and image src to whatever yours is called, and the dimensions to whatever you need.

"  to the link you want it to redirect to " well that's what i was really asking..i just have a notepad file with the code itself,how can I do to redirect the image to the the code that it's in my notepad right now (and no,linking the path of it doesn't work) on what site do I have to upload it if i am currently working with an online compiler?

Ryzen 9 7900x w/ LIAN LI Galahad 240  +   MSI RTX 3060
32GB @ 4800 mhz Corsair Vengeance + ASUS TUF X670e-PLUS

Seasonic Focus+ 750w

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, JasonHS said:

"  to the link you want it to redirect to " well that's what i was really asking..i just have a notepad file with the code itself,how can I do to redirect the image to the the code that it's in my notepad right now (and no,linking the path of it doesn't work) on what site do I have to upload it if i am currently working with an online compiler?

@RKRiley

Ryzen 9 7900x w/ LIAN LI Galahad 240  +   MSI RTX 3060
32GB @ 4800 mhz Corsair Vengeance + ASUS TUF X670e-PLUS

Seasonic Focus+ 750w

Link to comment
Share on other sites

Link to post
Share on other sites

I really dont understand what you're asking

PC - CPU Ryzen 5 1600 - GPU Power Color Radeon 5700XT- Motherboard Gigabyte GA-AB350 Gaming - RAM 16GB Corsair Vengeance RGB - Storage 525GB Crucial MX300 SSD + 120GB Kingston SSD   PSU Corsair CX750M - Cooling Stock - Case White NZXT S340

 

Peripherals - Mouse Logitech G502 Wireless - Keyboard Logitech G915 TKL  Headset Razer Kraken Pro V2's - Displays 2x Acer 24" GF246(1080p, 75hz, Freesync) Steering Wheel & Pedals Logitech G29 & Shifter

 

         

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, RKRiley said:

I really dont understand what you're asking

so. To add a link to an image i need to add href="<link>" to my anchor element.And i want to add another html site,how do I do it? @RKRiley

Ryzen 9 7900x w/ LIAN LI Galahad 240  +   MSI RTX 3060
32GB @ 4800 mhz Corsair Vengeance + ASUS TUF X670e-PLUS

Seasonic Focus+ 750w

Link to comment
Share on other sites

Link to post
Share on other sites

if you want to put your html page online to be able to link to it you will need a hosting service like one.com, but what online tool are you using to write your HTML? they probably have something to "host" multiple html pages at the same time. 

 

but it would probably be easier to just open the original html page in your browser and then link to the place the other page is in.    

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, JasonHS said:

so. To add a link to an image i need to add href="<link>" to my anchor element.And i want to add another html site,how do I do it? @RKRiley

So you want another website inside yours? thats a job for frames.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

14 minutes ago, vorticalbox said:

So you want another website inside yours? thats a job for frames.

what's frames?

Ryzen 9 7900x w/ LIAN LI Galahad 240  +   MSI RTX 3060
32GB @ 4800 mhz Corsair Vengeance + ASUS TUF X670e-PLUS

Seasonic Focus+ 750w

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, JasonHS said:

what's frames?

https://www.w3schools.com/tags/tag_iframe.asp

 

I highly recommend not using them but they allow you to load a file or another website inside yours.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

50 minutes ago, vorticalbox said:

https://www.w3schools.com/tags/tag_iframe.asp

 

I highly recommend not using them but they allow you to load a file or another website inside yours.

do you have any better compiler?

Ryzen 9 7900x w/ LIAN LI Galahad 240  +   MSI RTX 3060
32GB @ 4800 mhz Corsair Vengeance + ASUS TUF X670e-PLUS

Seasonic Focus+ 750w

Link to comment
Share on other sites

Link to post
Share on other sites

HTML doesn't need a compiler, because it's a markup language (htML), not a programming language.

 

You really should get a beginners book for HTML or read a good online tutorial.

 

I think what information you need is, that you just create another html-file in your directory. For example, put the second website (you want to get redirected to) into the file "second.html", and then do this:

 

<a href="second.html"><img ... ></a>

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×