Forum Moderators: open
Old/bad/frontpage way...
<a href="badapples">clicky clicky!</a>
<a name="badapples">
name if I am correct is a depreciated attribute in newer versions of (x)html. So lets get rid of the name= part and replace it with ID, after all ids are intended to be unique!
My issue that led me to becoming aware of this issue was when I was trying to use my badaddples example on some heads (but I tried to put the hyperlink inside the header).
Remember, hyperlinks aren't the only elements you can assign ids to! You can give your headers unique ids as well!
Here is the working example...
<a href="goodapples">
<h2 id="goodapples">Good Apples</h2>
The only problem I see in modern browsers is Opera (8.5) overshoots by failing to display the header and some of the content just below it. I'll be filing a bug report with Opera shortly after posting this. I've not yet setup Linux to test Konquerer out though.
If anyone comes across any issues with using bookmarks and other elements besides headers please post to help others become aware of any issues.
Here is some code with an example. You will need to make your browser window small enough so that "Good Apples" doesn't show, or just add some more bad apples.
<html>
<head>
<title>test</title>
</head>
<body><a href="#goodapples">Jump To Good Apples</a><br/>
<h1 id="badapples">Bad Apples</h1>
<p>bad apple 1</p>
<p>bad apple 2</p>
<p>bad apple 3</p>
<p>bad apple 4</p>
<p>bad apple 5</p>
<p>bad apple 6</p>
<p>bad apple 7</p>
<p>bad apple 8</p>
<p>bad apple 9</p><h1 id="goodapples">Good Apples</h1>
<p>bad apple 1</p>
<p>bad apple 2</p>
<p>bad apple 3</p></body>
</html>