• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Creating the links...help

Engaged ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

First I create the link with the word with a line under them example, but I have no clue of how to link one page to another. I use programmers notepad.

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 27, 2016 May 27, 2016

Okay - so if you have index.html and page2.html and want a link on index.html to take the user to page2.hrml - just use an achor tag with an href attribute:

<a href="page2.html">go to page 2</a>

Votes

Translate

Translate
Community Expert ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

Hi. Can you provide some more information on what you are trying to do? What languages/frameworks are you dealing with?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

I have create the index page or home page and I mention that I did create a link that gives me a line under the word, but I want to be able to link other pages to each other. I am doing the code in html.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

Okay - so if you have index.html and page2.html and want a link on index.html to take the user to page2.hrml - just use an achor tag with an href attribute:

<a href="page2.html">go to page 2</a>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

I copy the index.html and save it as about.html and then I copy about.html and save it as a new html page and so on. I want to change the about us to home and I want to change the destination of the link home to index.html.

How long have you been doing html coding?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
May 29, 2016 May 29, 2016

Copy link to clipboard

Copied

Reading through this thread, Joseph really did answer the question in his second response.

Barzzeb, if you are struggling at this level, then I think you can save yourself some frustration by working through a couple of introductory tutorials on HTML.

Here are a couple of free online tutorials:

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Introduction

http://www.w3schools.com/html/html_intro.asp

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2016 May 27, 2016

Copy link to clipboard

Copied

Too long

I'm not quite sure what you are trying to do based on the description though. You can just rename the links you have on each page and the href attributes as well for various locations. I'm assuming this is a static set of HTML documents. If using a server-side language or something like Angular, you can use includes for a nav or some templating system to make things cleaner.

But if just a static site - it should be rather simple as described.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 31, 2016 May 31, 2016

Copy link to clipboard

Copied

This is how I set up my html coding for every page. So where should I put the links?

html
<head>
<title>This is your title</title>
</head>        

<body>
<h1>Heading</h1>        
<p>This is the paragraph text</p>
</body>

</html>          
  
 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2016 May 31, 2016

Copy link to clipboard

Copied

barzzeb49197134 wrote:

This is how I set up my html coding for every page. So where should I put the links?

html
<head>
<title>This is your title</title>
</head>

<body>
<h1>Heading</h1>
<p>This is the paragraph text</p>

<p><a href="file.html" alt="">This is a link</a></p>
</body>

</html>


In the above, the second paragraph with the words "This is a link" will be a link to a file called file.html.

To create the link to file.html...

1. From Design View (also available from Live View in the latest versions), highlight the text you want to use as a link

2. In the Properties Window (Window > Properties or Ctrl + F3 if it's not open) click the HTML button on the far left

3. In the Link field, enter the file path of the file you want to link to...

3a. ...or click the Point to File (crosshair icon) and drag it to the file in your Files window

3b. ...or click the Browse For File (folder icon) and browse to a location within your defined site

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 31, 2016 May 31, 2016

Copy link to clipboard

Copied

I am using programmers notepad.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 01, 2016 Jun 01, 2016

Copy link to clipboard

Copied

LATEST

Personally, I'd switch to Brackets, it's free and designed specifically for working with html

Brackets - A modern, open source code editor that understands web design.

If you have to write the code by hand, adding...

<a href="page.html">

...before your "to be linked text" and...

</a>

...after the linked text will do the trick.

You may benefit from running the tutorials here:

http://www.w3schools.com/html
http://www.w3schools.com/css

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines