Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Publishing a web page  (Read 9273 times)

0 Members and 1 Guest are viewing this topic.

Skydove

    Topic Starter


    Rookie

    Re: Publishing a web page
    « Reply #15 on: July 14, 2009, 08:40:13 AM »
    Okay, thanks for that KPac.

    The information about the web testing servers is great - I'll try it before publishing web pages.

    Many thanks.

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Publishing a web page
    « Reply #16 on: July 14, 2009, 09:00:22 AM »
    XAMPP and WAMP are testing servers. If you create Webpages, it's good to test them out before you upload them and everyone sees them. These programs will simulate a Web server on your own PC.
    But, installing XAMPP and WAMP or some other web server emulator on your PC isn't the only way to preview your web pages.  Just create your page(s), open your browser, select File | Open File from the main menu, locate the file, and open it.  In the web address box of your browser, you'll something like: file:///C:/.../index.html. 

    Skydove

      Topic Starter


      Rookie

      Re: Publishing a web page
      « Reply #17 on: July 14, 2009, 09:04:43 AM »
      Thanks Soybean.  I have tested my webpages by using Web Page Preview in Publisher.  It seems to act like it is on the web and all things are funcioning.  However, I don't know if it will work on a web hosting server.  So may try some of the software that KPac has suggested.

      Thanks again.

      soybean



        Genius
      • The first soybean ever to learn the computer.
      • Thanked: 469
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 10
      Re: Publishing a web page
      « Reply #18 on: July 14, 2009, 09:19:21 AM »
      Well, again, you can also preview your pages in your browser.  Your browser will recognize any file with a .htm or .html file extension.  Try it with Notepad.  Just create a simple page.  It could be:

      <html>
      <head>
      <title>My test page</title>
      </head>
      <body>This is just a test page.
      </body>
      </html>

      Just copy the code above into a Notepad window, save it as testpage.html, and then open it with your browser.  When saving file, make sure it doesn't get saved as testpage.txt or testpage.txt.html.  In other words, when you save the file in Notepad, you need to type the full name, including the file extenstion; otherwise, Notepad will save it as testpage.txt.

      Skydove

        Topic Starter


        Rookie

        Re: Publishing a web page
        « Reply #19 on: July 14, 2009, 06:41:29 PM »
        Hi Soybean

        I tried your method and it worked perfectly, thanks so much.  I've noticed that my pictures come up with a red x in a box instead of showing the pictures.  I think this is standard until it is really published on a website, do you think so???

        Anyway many thanks for all your help.

        Cheers

        soybean



          Genius
        • The first soybean ever to learn the computer.
        • Thanked: 469
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 10
        Re: Publishing a web page
        « Reply #20 on: July 14, 2009, 07:16:08 PM »
        I've noticed that my pictures come up with a red x in a box instead of showing the pictures.  I think this is standard until it is really published on a website, do you think so???
        No, your pictures should appear even when viewing pages in this manner, i.e. from your hard drive. Let's try another test.  To make it simple, put your image in the same folder as your html file.  Then, add a line to the test page I previously posted, like this:


        <html>
        <head>
        <title>My test page</title>
        </head>
        <body>This is just a test page.
        <img src="xxxxx.gif">
        </body>
        </html>

        Where you see the xxxxx, put the name of your image. If the file type for your image is .jpg or .png, rather than .gif, then change that also.  Be sure to have quotation marks around the image name.

        Skydove

          Topic Starter


          Rookie

          Re: Publishing a web page
          « Reply #21 on: July 14, 2009, 07:33:00 PM »
          No, your pictures should appear even when viewing pages in this manner, i.e. from your hard drive. Let's try another test.  To make it simple, put your image in the same folder as your html file.  Then, add a line to the test page I previously posted, like this:


          <html>
          <head>
          <title>My test page</title>
          </head>
          <body>This is just a test page.
          <img src="xxxxx.gif">
          </body>
          </html>

          Where you see the xxxxx, put the name of your image. If the file type for your image is .jpg or .png, rather than .gif, then change that also.  Be sure to have quotation marks around the image name.

          Hi Soybean

          I tried the above and it worked.  I also re-saved my pictures in Publisher and then opened the Publisher file on the internet and they both work.  Thanks so much as this has saved me a lot of time.

          Cheers