html <a name=" to define page
[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]
Hi, I do not have an html txt editor, and I would like to put html on the define pages, if I put
<a name="name-element"> </a>
<a href="#name-element"> click paragraph </a>
I hit home page and not in the paragraph. </ strong> br etc works well, but a name not.
Re: html <a name=" to define page
At moments I think I fully understand the arrangement you have tried describe, but then I think about it and lose it.
If you have a series of words or a sentence that you want visitors to click on with the expectation that they be directed to somewhere else (on page or away), then the click on words/phrase should be an "a" link but the destination location would likely be a div, span, etc... The way the issue is presented looks like an "a" link is used to go to another "a" link...
Regardless, a little research indicated that at least with html5 (not sure if site is built with that in mind) that the id parameter should be used instead of the name parameter. In keeping with html validation and appropriate use, the id parameter value used should be unique for the page. (only one occurrence of say id="goto-big-text-block")
Re: html <a name=" to define page
MC is correct. The HTML5 way of doing this is
Code:
<span id="some-search-string"></span>
Then you can use the URL
http://some-url#some-search-string
and get to that point in the document.
Re: html <a name=" to define page
Hi, what I want to do is go to a place on the same page, as we do with the top of the page. I try this too but it does not work.
this will have to go into the part of the same page
<a href="#A1">1bla bla bla</a>
<a id="A1"></a>2blablabla</strong>
Re: html <a name=" to define page
I found I had to use the complete relative url.
eg:
index.php?main_page=product_info&cPath=1_2176&products_id=3711#A1
Re: html <a name=" to define page
sorry, I can not translate my thoughts, here what I want to do.
https://www.w3.org/TR/html4/struct/links.html
Thus, for example, an author might create a table of contents whose entries link to header elements H2, H3, etc., in the same document. Using the A element to create destination anchors, we would write:
<H1>Table of Contents</H1>
<P><A href="#section1">Introduction</A><BR>
<A href="#section2">Some background</A><BR>
<A href="#section2.1">On a more personal note</A><BR>
...the rest of the table of contents...
...the document body...
<H2><A name="section1">Introduction</A></H2>
...section 1...
<H2><A name="section2">Some background</A></H2>
...section 2...
<H3><A name="section2.1">On a more personal note</A></H3>
...section 2.1...
We may achieve the same effect by making the header elements themselves the anchors:
<H1>Table of Contents</H1>
<P><A href="#section1">Introduction</A><BR>
<A href="#section2">Some background</A><BR>
<A href="#section2.1">On a more personal note</A><BR>
...the rest of the table of contents...
...the document body...
<H2 id="section1">Introduction</H2>
...section 1...
<H2 id="section2">Some background</H2>
...section 2...
<H3 id="section2.1">On a more personal note</H3>
...section 2.1...
Re: html <a name=" to define page
Quote:
sorry, I can not translate my thoughts, here what I want to do.
https://www.w3.org/TR/html4/struct/links.html
Thus, for example, an author might create a table of contents whose entries link to header elements H2, H3, etc., in the same document. Using the A element to create destination anchors, we would write:
I think we understand your thoughts.
Quote:
Originally Posted by
torvista
I found I had to use the complete relative url.
eg:
index.php?main_page=product_info&cPath=1_2176&products_id=3711#A1
This is how I do it. Have you tried changing your <P><A href="#section1">Introduction</A><BR> to include the complete relative url - as Torvista suggested?
Re: html <a name=" to define page
I do not have to go to another page, I have to stay on the same page a little further down the page.
for example by clicking on <P> <A href="#section1"> Introduction </A> <BR>
I must go lower in the same page a
<H2 id = "section1"> Introduction </ H2>
Re: html <a name=" to define page
The code suggested does not need to take you to another page.
It would help if you can give the url of the page where you wish to add this html. You can rename the domain name if you wish.
Re: html <a name=" to define page
sorry friends, but i really can't make myself understood, i found an example, see this page
http://www.tagindex.net/html/link/an...le1s.html#a001
and click on
Jump to a001
Jump to a002
Jump to a003
You'll see that it goes up
a001
a002
a003
But always on the same page
it's what I want to do, I've done it many times on other cms but, on zen cart it doesn't work goes into. home page
ok I understood their code and it works
<h3><a name="menu">Menu</a></h3>
<ul>
<li><a href="#a001">Jump to a001</a></li>
<li><a href="#a002">Jump to a002</a></li>
<li><a href="#a003">Jump to a003</a></li>
</ul>
<h3><a name="a001">a001</a></h3>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<h3><a name="a002">a002</a></h3>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<h3><a name="a003">a003</a></h3>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<p>paragraph text paragraph text paragraph text</p>
<hr>