Internal links

Not tested: name attributes as parsed entities, anchor/other elements with both name and id attributes defined.

1 Link to P element target by id attribute

<a href="#target1">Link to target 1<a>

Link to target 1

2 Link to target by id attribute, overriding name attribute

<a href="#target2">Link to target 2<a>

Link to target 2

3 Link to empty A element target by name attribute

<a href="#target3">Link to target 3<a>

Link to target 3

4 Link to target by name attribute on non-A element

<a href="#target4">Link to target 4<a>

Link to target 4

Dummy text to fill page: ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j

Target 1: <p id="target1">Target 1</p>

Dummy text to fill page:ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j ksfjlks fjklsd jflksdj flkjsdklf jlkdjf lksd j

Target 2 (name) <a name="target2">Target 2</a>

Dummy text to fill page:123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234

Target 2 (id) <p id="target2">Target 2</p>

Dummy text to fill page:123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234

Target 3 (name) <a name="target3"></a>

Dummy text to fill page:123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234

Target 4 (name)
<form name="target4"></form>

Dummy text to fill page:123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234123123 13h2 3123 123 123 12 3234234

Home