HTML question


  1. Posts : 316
    Windows 10
       #1

    HTML question


    I'm trying to learn to make a hyperlink but when I type in the following example:
    <a href="http://www.w3schools.com/html/">Visit our HTML tutorial</a>
    <a href="html_images.asp">HTML Images</a>
    <a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>
    I don't see a link to click on. Shouldn't there be a line under the words visit W3Schools to click on? Am I missing something?
      My Computer


  2. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    Frank1 said:
    I'm trying to learn to make a hyperlink...
    Where and in what application are you trying to place this hyperlink? The syntax you quote is correct for an html page on a web server. See the W3Schools 'Try it' page...

    Tryit Editor v3.6
      My Computers


  3. Posts : 8,111
    windows 10
       #3

    change it to this works

    <a href="http://www.w3schools.com/html/">Visit our HTML tutorial</a>
    <p></p>
    <a href="html_images.asp">HTML Images</a>
    <p> </p>
    <a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>
      My Computer


  4. Posts : 316
    Windows 10
    Thread Starter
       #4

    Samuria said:
    change it to this works
    There must be something here that I just am not understanding.. I did a copy/paste on both of the above and copy them in notepad. I then saved them as an html file but still I don't see a link.
    <a href="http://www.w3schools.com/html/">Visit our HTML tutorial</a>
    <p></p>
    <a href="html_images.asp">HTML Images</a>
    <p> </p>
    <a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>
    There must be something here that I just am not understanding.. I did a copy/paste on both of the above and copy them in notepad. I then saved them as an html file but still I don't see a link.

      My Computer


  5. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #5

    Frank1 said:
    There must be something here that I just am not understanding.. I did a copy/paste on both of the above and copy them in notepad. I then saved them as an html file but still I don't see a link.


    You are saving as an htlm file then trying to open it in your browser? For the html file to be complete and working it needs some more lines, a header and footer like this:

    <!DOCTYPE html>
    <html>
    <body>


    <p><a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a></p>

    </body>
    </html>
      My Computers


  6. Posts : 316
    Windows 10
    Thread Starter
       #6

    Bree said:
    [/LEFT]

    You are saving as an htlm file then trying to open it in your browser? For the html file to be complete and working it needs some more lines, a header and footer like this:

    <!DOCTYPE html>
    <html>
    <body>


    <p><a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a></p>

    </body>
    </html>
    I know that there is no such thing as a
    dumb question, but I have one that may come close. I did a copy/
    paste into wordpad. Apparently that was a mistake as you said I
    should open it in a browser. My question is: How do I open it in a
    browser? I'm confused on my 88th birthday
      My Computer


  7. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #7

    Frank1 said:
    How do I open it in a browser?
    Copy and past the text into Wordpad or Notepad. Save it as a text file and give it a name with a .html extension, such as Test.html

    Then double-click on the file to open it, because it has a .html extension it will open in your default browser.
      My Computers


  8. Posts : 8,111
    windows 10
       #8

    You save the code from notepad as test.htm be sure when you save you hit the all files option in notepad or it will save it as txt. Once you saved it double click and it should open in the browser
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:42.
Find Us




Windows 10 Forums