HOW TO CREATE A LINK FOR YOUR WEBSITE
Code: _______________________________________________________________ <!DOCTYPE html> <html> <head> <title>Link</title> </head> <body> <p>This link will take you to my website.</p> <p>Click <a href="https://www.ikhtabirni.com/english.html">here</a></p> </body> </html> If you notice, I typed the words "Click here" for the link to be clicked, but I only want the word "here" to be clicked. So before the word "here" you add the link code as shown above. This code will take you to a new page but without opening a new window tab. The next code is similar to the first one, but with one more function added. This one will take you to a new page on a new window tab if you click on the link. The added function is: target="_blank" <!DOCTYPE html> <html> <head> <title>Link</title> </head> <body> <p>This link will take you to my website.</p> <p>Click <a href="https://www.ikhtabirni.com/english.html" target="_blank">here</a></p> </body> </html> The last code is clicking a button which will take you to a new page. Again, you can choose to stay on the same window tab or go to a new tab by adding the added function target="_blank" <!DOCTYPE html> <html> <head> <title>Link</title> </head> <body> <p>Clicking this button will take you to my website.</p> <a href="https://www.ikhtabirni.com/english.html"><button>Click here</button> </body> </html> |
OTHER RELATED PAGES: |