HTML question

  1.    #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 ComputerSystem Spec

  2. Bree's Avatar
    Posts : 10,495
    10 Home x64 (1809) (10 Pro on 2nd pc)
       #2

    Frank1 said: View Post
    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 ComputersSystem Spec

  3.    #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 ComputerSystem Spec

  4.    #4

    Samuria said: View Post
    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 ComputerSystem Spec

  5. Bree's Avatar
    Posts : 10,495
    10 Home x64 (1809) (10 Pro on 2nd pc)
       #5

    Frank1 said: View Post
    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 ComputersSystem Spec

  6.    #6

    Bree said: View Post
    [/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 ComputerSystem Spec

  7. Bree's Avatar
    Posts : 10,495
    10 Home x64 (1809) (10 Pro on 2nd pc)
       #7

    Frank1 said: View Post
    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 ComputersSystem Spec

  8.    #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 ComputerSystem Spec


 

Related Threads
Is there a way to change it back to white? 202713
Convert xml to html in Software and Apps
I'm probably way out of place here; but I figure some of the more experienced users would know what I'm looking at. I have: a compressed XML file (bzip). I want: to dump it to multiple html files (or anything that is fully marked up, eg docx,...
Solved Edit html with Spartan in Browsers and Email
I just started using Spartan. I tried to edit one of my html files as I usually do by right clicking on a space then choose "View Source" which will open it up. But with Spartan if I right click I don't have the View Source option. Does anyone know...
Want to use an image as a link to an image but nothing shows. Paths are correct. There's not even that broken image icon to show that it can't find the images... it just shows nothing. And I know this works cos I did it before but somethings...
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 02:39.
Find Us