Creating subpages [closed] - html

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am pretty new to developing and was hoping you all could help me out with a little issue.
I am currently building a website and have an FAQ page.
for example, the url is www.sitename.com/faq.html
I want to create an FAQ sub page to hold the answers
for example the url would be www.sitename.com/faq/answers.html
my issue is that I have no idea how to create a page as an extension of another page.

I'm not sure what you mean by "sub page". However, if you want to create the answers at the URL www.sitename.com/faq/answers.html, you:
Create a sub-directory called faq
Put answers.html in that sub-directory.
Personally I would instead create a sub-directory called faq and put questions.html and answers.html in that sub-directory.
The URL's would be
www.sitename.com/faq/questions.html
www.sitename.com/faq/answers.html

You simply need to make a folder in the directory that you have faq.html, named faq.

Related

Website Testing [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Say I have a website called www.website.com, which is online and hosted.
I am currently working on a other website(lets call it wwww.website2.com) and would like to send it to someone so he can have a look at it.
The way how I want to do this, is basically create the following link:
www.website.com/website2 - From which he will be able to view the content of www.website2.com
I am not to sure how I can do that.
Would appreciate your help a lot.
Thanks! :)
You can just add a folder to www.website.com called "website2". Then go to: www.website.com/website2 and (when there is an index.html (or index.php) in that folder, it'll show you that website.

How to have a a url be like example.com/projects/projectName? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I would like to know how I can have a website that has links to deeper pages like so: www.example.com/ then I click on "Projects" (that becomes www.example.com/Projects) and then I click on a project (Which now becomes www.example.com/Projects/projectName/) How would I do that??? Please help, I really need these.
EDIT: Why are people down voting my question?
This is usually done with folders.
When you open www.example.com/Projects you are actually accessing www.example.com/Projects/index.html then let's say you want to access the project the folder Foobar so you type in www.example.com/Projects/Foobar/ and you are served www.example.com/projects/Foobar/index.html
However this can also be done with PHP URL rewriting and the use of a .htaccess fie.
Also when linking make sure that you start with a backslash (Absolute URLs) e.g.
href="/projects/test"
If the link was to "projects/test" and you were on that page then if you clicked on that link you would be taken to "projects/test/projects/test"
Well, usually to write a Web page you should learn html and then css. While learning html you will learn how to create a link.
In html a link is such as
my link

How is web page changing within the same website done? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
For example, let's say we're at the homepage at www.fakewebsite.com and, when we look at the footer at the bottom of the page, we can see that there is an "About" button that you can click on--which you do so you get to know more about the company. The website refreshes and enters into www.fakewebsite.com/about. My question is this: How is this done? I'm pretty new to the web developing world and would like to know what is done to make this possible (So, I can do it too).
What you need is known as an anchor and does not require ajax. You should start by searching info on that.
It looks like this:
about
This is done via an anchor element where the files are linked via a path in the href of the tag for example:
About
More info here: anchor
You can also study this starting with HTML + CSS and this Getting started with HTML

MediaWiki Portal Creation [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Link to the site with the issue is here.
It looks like I got the portal created correctly. The instructions for this on mediawiki seem better than on wikipedia. What I don't get is why the link in the box adds this "Template:"
to the fullpagename. It makes it so the edit button does not go the the page that contains the content for the box.
Followed instructions here on portal creation.
Got the portal templates from here.
In box is Template:Portal:Phantom Jump/Intro, it should be Portal:Phantom Jump/Intro.
The code {{{{FULLPAGENAME}}/Intro}} is transformed into {{Portal:Phantom Jump/Intro}}, which is understood as “transclude the template Portal:Phantom Jump/Intro”, since most of the time, when transcluding, you do want to tranclude a template. If that's not what you want, you need to override that using :: {{:{{FULLPAGENAME}}/Intro}} will transclude the page Portal:Phantom Jump/Intro.

Parsing web-site [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
So, I have a web-site. The links have a following structure: http://example.com/1, http://example.com/2, http://example.com/3, etc. Each of this pages has a simple table. So how can I download automatically every single page on my computer? Thanks.
P.S. I know that some of you may tell me to google it. But I don't know what I'm actually looking for (I mean what to type in search field).
usewget (http://www.gnu.org/software/wget/ ) to scrape the site
Check out the wget command line tool. It will let you download and save web pages.
Beyond that, your question is too broad for the Stack Overflow community to be of much help.
You could write a simple app and loop through all the urls and pull down the html. For a Java example, take a look at: http://docs.oracle.com/javase/tutorial/networking/urls/readingWriting.html