DEV Community

Joel Diharce
Joel Diharce

Posted on

Hyperrrrr-linx (sp?) ;D

Google docs and sheets just automatically makes hyperlinks when you enter a URL. Well, apparently html creates hyperlinks with an anchor tag (<a>) and an href attribute, which is required.

Remember how images use the relative or the absolute URLs? Well, heheh... yup, hyperlinks can use either too. If the hyperlink uses to a webpage on our own website, then we would use the relative URL. If it leads to a different website (not within the server file containing our website, which is most likely the case if it's a different website), we would use the absolute URL. To remind you, relative URLs are made up of the file path that leads to the webpage file within the enclosing website's server file. Relative URLs usually start with the file name, and Absolute URLs typically start with https://www.[__].com

Example Time!
Here is the code as written:
<a href="https://www.boredpanda.com/cat-virus-exe-funny-pics/?utm_source=google&utm_medium=organic&utm_campaign=organic">When kittehs strike!</a>
Enter fullscreen mode Exit fullscreen mode
And, here is the code as I intend the user to view it:

When kittehs strike!

Disclaimer: no code was harmed in the making of this blog post. Also, markdown apparently creates a hyperlink just from entering the URL, hence the "codified" URL above, near the top.

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay