Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Publication Station
Search
Editing
Hyperlink
(section)
From Publication Station
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Linking withing a page == [[File:Index Wiki.png|thumb]] Linking to a place in the document is super handy! You can see an example on the top of this page or on any Wiki page, like the [https://en.wikipedia.org/wiki/Red_warbler Red Warbler]. This type of URL is called a Fragment URL. To create a Fragment URL we need two elements. The first element is the element we scroll to. This can be any type of element, for example an {{code|inline=y|lang=html|h1, h2, div, span}}, etc. We give the element an ID attribute, in this example the ID is "Taxonomy". You can decide how the ID is named, but it has to be unique on the page. Place the element with the ID on the position you want the page to scroll to. <source lang="html5"> <span id="Taxonomy">Taxonomy</span> </source> The second element is the anchor tag. This will create the link to the element with the ID. We start the href value with an hashtag {{code|inline=y|lang=html|#}}. This indicates it is an internal URL pointing to an element with that ID. <source lang="html5"> <a href="#Taxonomy">About</a> </source> You can also highlight the targeted element with CSS. When the link Taxonomy is clicked, the element with id="Taxonomy" will have the following styles applied. <source lang="css"> :target { border: 2px solid #D4D4D4; background-color: #e5eecc; } </source>
Summary:
Please note that all contributions to Publication Station are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Publication Station:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Main navigation
Main page
Printmaking Studio
Print Studio
Dig. Publishing Studio
Namespaces
Grafiwiki
Random Page
Log in
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs