1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved Not sure if it's http or http. What to do?

Discussion in 'Web Design & Development' started by corgwork, Jun 6, 2018.

Thread Status:
Not open for further replies.
  1. corgwork

    corgwork Thread Starter

    Joined:
    Jul 10, 2008
    Messages:
    99
    What to put in an "a" tag if you're not sure if it's HTTP or HTTPS?
     
  2. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,190
    Just the domain name is fine, @corgwork;) There is no need to prefix it with http or https, just the // like this:
    HTML:
    <a href="//google.com">Google</a>
     
  3. EspressoBean

    EspressoBean

    Joined:
    Feb 29, 2016
    Messages:
    264
    Whether or not it is HTTPS or HTTP would be handled by the web server, all web servers will convert the traffic accordingly.
     
    corgwork likes this.
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - sure http http
  1. Joyjackson23
    Replies:
    2
    Views:
    283
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1211253

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice