Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
More HTML tags questions please
Old 02-26-2009, 04:22 PM More HTML tags questions please
Super Talker

Posts: 132
Trades: 0
I have gone back from scratch in HTML but this time creating my own tutorial as I go along and have covered a few items before right here on this forum before and now I just can't seem to remember and understand the bleepety-bleep-bleep-BLEEP things no matter how many tutorials I read a million times on the net, so really freaking frustrating, my head is about to explode, sorry got to vent somewhere before I run amok!

Ok, [I'm taking a few deep breaths here......], let me start with "linking to a location on the same page", I see the anchors

Quote:
<a href="#myanchor">Go to anchor</a>
<a name="myanchor">My Anchor</a>
Using my text here as an example, I want to use the word in the first line "gone" to link directly to the word "million" in the 5th line from the top, how do I do this please?
mikehende is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-26-2009, 04:47 PM Re: More HTML tags questions please
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
What you're doing is just fine. You may not see any changes with the url in IE7, and if you can view the whole page in the browser window, you won't see any changes in the position of the page. But just for clarification:
HTML Code:
I have <a href="#myanchor">gone</a> back from scratch in HTML but this time creating my own tutorial as I go along and have covered a few items before right here on this forum before and now I just can't seem to remember and understand the bleepety-bleep-bleep-BLEEP things no matter how many tutorials I read a <a name="myanchor">million</a> times on the net, so really freaking frustrating, my head is about to explode, sorry got to vent somewhere before I run amok![IMG]http://www.webmaster-talk.com/../images/smilies/mad.gif[/IMG]
- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 02-26-2009, 05:00 PM Re: More HTML tags questions please
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
HTML Code:
I have <a href="#million">gone</a> back from scratch in HTML......
...
...
...
read a <a name="million">million</a> times on the net,
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-26-2009, 05:33 PM Re: More HTML tags questions please
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yah.. but don't use the <a name=..."> thing. You can create an anchor with an ID easily, works the same, and it's cleaner.

In your example, I'd do this:

Quote:
I have <a href="#million">gone</a> back from scratch in HTML......
...
...
...
read a <span id="million">million</span> times on the net,
Semantically correct and it has the added bonus of allowing you to STYLE that with css. I use this method all the time on headings as anchors.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-26-2009, 08:12 PM Re: More HTML tags questions please
Super Talker

Posts: 132
Trades: 0
Finally got this right and rewrote it my tutorial so I can understand it next time, thanks guys!

Next, what's the # sign for?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-27-2009, 03:26 AM Re: More HTML tags questions please
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
To use the correct terminology, the hash symbol, (#) marks a document fragment.

User agents that are set to handle "bookmarks", will position this fragment (sub-section) at the top of the page when they are encountered on opening a document or when the fragment is "clicked".
In basic terms the page will be scrolled up or down until the bookmarked section is at the top.
If no anchor with a matching name or no element with a matching ID exists in the document, it will be scrolled to the top.

If you want to practice: http://www.w3schools.com/HTML/tryit....link_locations
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-27-2009, 06:55 AM Re: More HTML tags questions please
Super Talker

Posts: 132
Trades: 0
I thought I saw that # sign being used in other coding? If I am correct then I would think it has a universal meaning and not just connected to the same page link issue or am I mistaken?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-27-2009, 07:08 AM Re: More HTML tags questions please
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
In CSS stylesheets it is used to set style rules to be applied to an element referenced by the ID.

The "#" symbol is also used in a few languages to signify a hexadecimal number. In HTML it is used as a prefix for ASCII entities ( eg: & #8482 ; spaces added to stop it becoming ™ )

It doesn't have a universal semantic meaning, just different meanings depending on the context.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to More HTML tags questions please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35937 seconds with 12 queries