Skip navigation and go to main content

Sacramento
City College

Starr Scoop
Journalism

HTML Tricks

 

 

 











 

Jump to page link


This story shows the code and live links as models for use in your own stories.

Open sites in a new window

I often add the target attribute to the HTML code to force the URL to open in a new browser window. This way, visitors keep their place (this page) and view the link in a new page. When they are finished with the new page, it can be closed so visitors can resume where they left off.

LOIS Library Search
<a href="http://lois.losrios.edu">LOIS Library Search</a>

LOIS Library Search opens in a new browser window
<a href="http://lois.losrios.edu" target="new window">LOIS Library Search</a> opens in a new browser window

Search for Diane Heimer's Reserve List
<a href="http://lois.losrios.edu/search/rjournalism&SORT=D/rjournalism/1,13,19,E/frameset&FF=rjournalism+310+scc&3,,3" target=new window">Search for Diane Heimer's Reserve List</a>


Escape to show the code

To force Manila to not intrepret the code use the "\" before the primary HTML code, i.e. inside the first bracket.

Link on Page

There are many times a story grows in length and you might want to add a Page Contents of Links at the top of a story and add named links down the page. From other stories you can go directly to a named link (aka "named anchor"). There are two parts to this HTML Trick, the location and the link.

For example, the location of this named link is <a name="pagelink"></a><h3>Link on Page</h3>.
The text and link at the top of the page looks like this: Jump to <a href="#pagelink">page link</a>.
The named link (or anchor) is invisible because there is no label between the link's opening and closing tags. The heading designates the top of this section of the story page.


Email link can have a subject line

<a href="mailto:youraccount@scc.losrios.edu?subject=Manila Site Ready for Review">email me.


Sacramento City College
3835 Freeport Boulevard · Sacramento, California 95822
This page was last updated: Thursday, August 26, 2004 at 10:12:01 AM