Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




786 posts

Ultimate Geek


# 215238 18-Jun-2017 17:20
Send private message

I've been learning HTML and CSS and hope to move on to JavaScript and PHP next, mostly just to keep my brain sharp. I'll eventually want to use my knowledge to put up a website.

 

Having learnt how to code all this stuff from scratch I don't want to waste it by using a WYSIWYG program. Even if I could afford to buy one. I've been using Netbeans as my editor.

 

Google has not been my friend as I try to figure out how:

 

  • Make links in HTML files so I can link from one page to the next within my website. When I learn about links the examples are always to either an external web address, or say an image file in the same folder. Or do I have to know what the web address for each page will be when I write the code for the link?
  • When I have somehow bundled up all my files ready to go, how do I interact with the web host to upload my files and tie my domain name to them?

When I google I just get scores of hits from web hosts who either want to just give me a basic template to fill in, or who assume I know heaps. It can't be that hard - I just need a guide.

 

Can anyone post a link that will help?

 

 





Interests: HTPC, Web App authoring. 


Create new topic
366 posts

Ultimate Geek

Trusted

  # 1803031 18-Jun-2017 17:29
One person supports this post
Send private message

Limited HTML knowledge, but this might answer your question

 

Linking to other pages on your site just follow the same as if it was an external site, but use the title of the page and its file format (e.g. page.html) and ensure it is within the same directory as your index.html

 

I recommend W3Schools as a great place to learn HTML. Take a look at the 'local links' section of this page: https://www.w3schools.com/html/html_links.asp


2153 posts

Uber Geek


  # 1803032 18-Jun-2017 17:39
Send private message

When you find a web host, they will usually give you a web based control panel where you can configure things related to your web site.

 

There are two ways you can upload your files, Via a file manager in the control panel, or using an FTP client (and their provided FTP settings)

 

You will want to put the files inside a directory on the web hosting called public_html or www. The file called index.html will be the one that loads when your www.example.com domain is requested. You will also need to buy a domain name, and point it to your web host's DNS or NS servers, but if you buy the domain from the same place who is hosting your web site that might be automatic.

 

Try again searching for web hosting, there are even some free options. Perhaps ignore the ads and just look at the actual results

 

 


 
 
 
 


BDFL - Memuneh
64257 posts

Uber Geek

Administrator
Trusted
Geekzone
Lifetime subscriber

  # 1803043 18-Jun-2017 18:10
One person supports this post
Send private message

When linking within your site you don't need to put the full domain in the hyperlink. For example all pages here are in the default root folder, with page3 being on a folder called "documents"

 

  • default.html
  • page1.html
  • page2.html
  • documents/page3.html

To link from default.html to page1.html you can use this:

 

<a href="/page1.html">Link to page1</a>

 

A link from default.html to page3.html would be:

 

<a href="/documents/page3.html">Link to page3</a>

 

The first / indicates the root folder so it's safe to use from any page in a relative way. \documents means the folder documents below the root folder.





3282 posts

Uber Geek


  # 1803071 18-Jun-2017 19:40
Send private message

If you want to do some real world testing closer to home, there are bundles such as wampserver  that you can chuck on locally for some PHP and local web hosting work.

 

As long as you don't go making pinholes you can use it from your browser to your hearts content to ensure your links are valid (not just for browsers interpretation of file:// windows directories) and such. Also making a hosts file (or router edit) to a BS domain of your choosing before going the real deal. But once familiar with directory/apache management you would be ready for a virtual host running cpanel or similar.


Webhead
2264 posts

Uber Geek

Moderator
Trusted
Lifetime subscriber

  # 1803155 19-Jun-2017 01:34
Send private message

freitasm:

 

 

 

<a href="\page1.html">Link to page1</a>

 

 

Tsk. Its / not \ :)







786 posts

Ultimate Geek


  # 1803440 19-Jun-2017 13:39
Send private message

Oblivian:

If you want to do some real world testing closer to home, there are bundles such as wampserver  that you can chuck on locally for some PHP and local web hosting work.


As long as you don't go making pinholes you can use it from your browser to your hearts content to ensure your links are valid (not just for browsers interpretation of file:// windows directories) and such. Also making a hosts file (or router edit) to a BS domain of your choosing before going the real deal. But once familiar with directory/apache management you would be ready for a virtual host running cpanel or similar.



Yes, thanks it would be good to test things at home!

What is a BS domain? When I google I get lots of stuff about the Bahamas.




Interests: HTPC, Web App authoring. 


 
 
 
 




786 posts

Ultimate Geek


  # 1803469 19-Jun-2017 14:33
3 people support this post
Send private message

freitasm:

He means "bulls*** domain" as in a disposable one.



Gahhh I'm such a noob....

Interesting that until I blanked that word out I got "Error: Your post was not accepted due to bad word: sh1t"

Obviously the Menumeh Himself doesn't have such petty restrictions.

Hey here's an idea: As a user's geek status increases, you get to use worse words!




Interests: HTPC, Web App authoring. 




786 posts

Ultimate Geek


  # 1807433 27-Jun-2017 10:09
Send private message

Thank you for all the input.

I've been looking at the different domain name services, also hosting.

The prices vary wildly, but it looks like I get a better deal if I do both with the same company.

I'm a bit worried that the name registration that looks such good value this year will be waay more next year.

Is there anything I can do about that, except for move everything to another provider?

I'm just a hobbyist at the moment so I don't want to commit to a long period.




Interests: HTPC, Web App authoring. 


2958 posts

Uber Geek


  # 1807437 27-Jun-2017 10:16
Send private message

turb: Thank you for all the input.

I've been looking at the different domain name services, also hosting.

The prices vary wildly, but it looks like I get a better deal if I do both with the same company.

I'm a bit worried that the name registration that looks such good value this year will be waay more next year.

Is there anything I can do about that, except for move everything to another provider?

I'm just a hobbyist at the moment so I don't want to commit to a long period.

 

 

 

Use https://metaname.net/

 

I use them now but haven't had a renewal yet. As far as I understand they don't do that annoying "$19 first year then $80 the following" that you get with the big popular companies. 
I started using them after seeing a lot of recommendations for them here on Geekzone, and can totally see why everyone does recommend them.


Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Intel expands 10th Gen Intel Core Mobile processor family
Posted 23-Aug-2019 10:22


Digital innovation drives new investment provider
Posted 23-Aug-2019 08:29


Catalyst Cloud becomes a Kubernetes Certified Service Provider (KCSP)
Posted 23-Aug-2019 08:21


New AI legaltech product launched in New Zealand
Posted 21-Aug-2019 17:01


Yubico launches first Lightning-compatible security key, the YubiKey 5Ci
Posted 21-Aug-2019 16:46


Disney+ streaming service confirmed launch in New Zealand
Posted 20-Aug-2019 09:29


Industry plan could create a billion dollar interactive games sector
Posted 19-Aug-2019 20:41


Personal cyber insurance a New Zealand first
Posted 19-Aug-2019 20:26


University of Waikato launches space for esports
Posted 19-Aug-2019 20:20


D-Link ANZ expands mydlink ecosystem with new mydlink Mini Wi-Fi Smart Plug
Posted 19-Aug-2019 20:14


Kiwi workers still falling victim to old cyber tricks
Posted 12-Aug-2019 20:47


Lightning Lab GovTech launches 2019 programme
Posted 12-Aug-2019 20:41


Epson launches portable laser projector
Posted 12-Aug-2019 20:27


Huawei launches new distributed HarmonyOS
Posted 12-Aug-2019 20:20


Lenovo introduces single-socket servers for edge and data-intensive workloads
Posted 9-Aug-2019 21:26



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.