Home > Enterprise >  How do you add an add shortcut button to your website?
How do you add an add shortcut button to your website?

Time:12-07

How do you add a make shortcut button to your webpage?

I want to add a button that makes a shortcut to your page whenever you click it. I've seen it in some websites, so I searched it up in google, but I can't seem to find what I need. Please help and thanks in advance.

CodePudding user response:

Your question is a bit confusing. The shortcut you mentioned is not understandable. Can you provide a demo or something? But I'm assuming that you're talking about HTML fragments.

It's done with IDS

<p id="section-blog">

You can use the id attribute and give it a unique value. Now you can refer to this fragment with the # selector in such a way:

<a href="#section-blog">Take me to Blog</a>

CodePudding user response:

You can you the anchor tag CLICK HERE and now you can target on css you anchor tag a{ border: 1px solid; ecc… }

Now your anchor tag is a button that can redirect anywhere you want

  • Related