Anchor Tags and Name Attributes (2024)

Anchor Tag - HTML<a> Tag

HTML uses the <a> (anchor) tag to create a link to another document. An anchor can point to another html page, an image, a text document, or a pdf file among others.

Example of an anchor tag: <a href="url">Text to be displayed as link</a>

The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink.

The example defines a link to the home page of this site.

Example: <a href="http://www.expression-web-tutorials.com/">Expression Web Tips, Tutorials, and Templates</a>

The default of the anchor tag is to go to the top of the document it points to.

Name Attribute

The name attribute is used to create a named anchor. When using named anchors you can create links to a specific section on a page, instead of letting your viewer scroll around to find what he/she is looking for. Named anchors are called bookmarks in Expression Web.

NOTE: Not supported in HTML5. Use the globalid attributeinstead. Specifies the name of an anchor

Example of a named anchor tag: <a name="anchor">Text to be displayed as link</a>

The name of the anchor can be any text you care to use. However, it should not have spaces in the name. Use a hyphen or underscore and all lowercase letter. Expression Web uses an underscore as the default.

Example: <a name="css-tutorials">CSS Tutorials</a>

A named anchor is not displayed in any special way.

To link directly to the "css-resources" section of the page on tutorials, add a # sign and the name of the anchor to the end of a URL, like this:

<a href="http://www.genealogy-web-creations.com/tutorials.htm/#css-resources">Cascading Style Sheet Resources</a>

or like this if you are creating a link to a place in the same document

<a href="#css-resources">Cascading Style Sheet Resources</a>

Bookmarks or Named Anchors in Expression Web

Named anchors are called bookmarks in Expression Web.

How to Add or Remove a Bookmark in Expression Web

A hyperlink can go to a particular location on a web page by linking to a bookmark (HTML anchor) at the location. The link can be to a bookmark on the same page or to one on a different page. You can add a new bookmark and manage existing bookmarks in the current web page by using the Bookmark dialog box.

When you bookmark a selection of text, the text displays with a dashed underline in Design view.

Anchor Tags and Name Attributes (1)

<a name="10-bible">10. Family Bible,</a> C. H. Davis, Pasadena, California.

If you insert the bookmark before the text you want without selecting it first, the text is no longer formatted as a link but the bookmark will still function

Anchor Tags and Name Attributes (2)

<a name="10-bible"></a>10. Family Bible, C. H. Davis, Pasadena, California.

Notice the placement of the closing tag within the code. Choose the method you use depending on how you want the bookmarked text to display.

When you bookmark an empty location, the bookmark is indicated in Design view by a bookmark icon when Show and Paragraph Marks are both selected under Formatting Marks on the View menu.

Anchor Tags and Name Attributes (3)

To create a bookmark

Step 1 - Open the web page in either Design view or Code view.

Step 2 - Select the text to which you want to assign a bookmark OR place your cursor in an empty space next to the text you want to use as a bookmark.

Step 3 - Insert | Bookmark or CTRL + G. In EW4 use Ctrl + Shift + G.

Anchor Tags and Name Attributes (4)

Step 4 - In the Bookmark dialog box, under Bookmark name, type a name for the bookmark. If you have selected more than one word, the default for Expression Web is to use the selected text separated with an underscore.

Anchor Tags and Name Attributes (5)

To remove a bookmark

Step 1 - Open the web page in either Design view or Code view.

Step 2 - Insert | Bookmark or CTRL + G NOTE: This only worked when I first highlighted the bookmark > Selected Go To and then

Step 3 - Under Other bookmarks on this page, click the bookmark you want to delete. Click Clear.

Anchor Tags and Name Attributes (6)

Tip - You can also remove a bookmark that's selected in your web page by pointing to the tag that appears in the Quick Tag Selector bar at the top of the web page, and then click the arrow next to the tag and select Remove Tag.

Anchor Tags and Name Attributes (7)

Anchor Tags and Name Attributes (8)

Copyright © 2007 Pat Geary ofGenealogy Web Creations All Rights Reserved
Revised: January 2011

Anchor Tags and Name Attributes (2024)
Top Articles
Log Analytics agent overview - Azure Monitor
How not to ignore case sensitivity in SQL Tool or Grouping?
Hotels Near 6491 Peachtree Industrial Blvd
Fort Morgan Hometown Takeover Map
Melson Funeral Services Obituaries
The Potter Enterprise from Coudersport, Pennsylvania
1movierulzhd.fun Reviews | scam, legit or safe check | Scamadviser
Retro Ride Teardrop
Toyota gebraucht kaufen in tacoma_ - AutoScout24
Stream UFC Videos on Watch ESPN - ESPN
Toonily The Carry
Pwc Transparency Report
Facebook Marketplace Charlottesville
Pro Groom Prices – The Pet Centre
California Department of Public Health
How Much Is Tay Ks Bail
Traveling Merchants Tack Diablo 4
College Basketball Picks: NCAAB Picks Against The Spread | Pickswise
Elbert County Swap Shop
Everything To Know About N Scale Model Trains - My Hobby Models
Scripchat Gratis
Shelby Star Jail Log
Cowboy Pozisyon
Jesus Calling Feb 13
My Reading Manga Gay
Miles City Montana Craigslist
Till The End Of The Moon Ep 13 Eng Sub
Helpers Needed At Once Bug Fables
The Posturepedic Difference | Sealy New Zealand
Uky Linkblue Login
Beaver Saddle Ark
Whas Golf Card
How to Get Into UCLA: Admissions Stats + Tips
How to Destroy Rule 34
Retire Early Wsbtv.com Free Book
2024 Ford Bronco Sport for sale - McDonough, GA - craigslist
State Legislatures Icivics Answer Key
2700 Yen To Usd
Daly City Building Division
Google Flights Orlando
Gold Dipping Vat Terraria
Santa Clara County prepares for possible ‘tripledemic,’ with mask mandates for health care settings next month
Wilson Tire And Auto Service Gambrills Photos
Television Archive News Search Service
Best Haircut Shop Near Me
Pas Bcbs Prefix
Rubmaps H
Sml Wikia
De Donde Es El Area +63
Kindlerso
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated:

Views: 5509

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.