Basic question on link style

M

Mike Azzopardi

Hi

I'm wondering if someone can help me please as my html is rusty. All I'm
trying to do in dreamweaver is have a link to a page, but not have the link
appear as underlined in blue. I just want it to remain in the font the
current paragraph is. Is this possible without a stylesheet?

Here is the sample html I need to edit:

<a href="her%20own%20story.html">her own story</a><br>

Thanks in advance

Mike
 
S

Steve Pugh

Mike Azzopardi said:
I'm wondering if someone can help me please as my html is rusty. All I'm
trying to do in dreamweaver is have a link to a page, but not have the link
appear as underlined in blue. I just want it to remain in the font the
current paragraph is.

How will users know that it's a link then?
Is this possible without a stylesheet?

No. With a stylesheet color: inherit and text-decoration: none would
do what you want.
Here is the sample html I need to edit:

<a href="her%20own%20story.html">her own story</a><br>

Nothing to edit there. Though I'd recommend against using spaces in
file names on the web but at least you're correctly writing the spaces
as %20.

Steve
 
M

Mike Azzopardi

Thanks for the tip!

The list of links is a link of songs in a specific font which link to the
lyrics but the font is important, so with the mouse cursor changing that
will be good enough.

Mike
 
A

Andy Dingley

It was somewhere outside Barstow when "Mike Azzopardi"
Is this possible without a stylesheet?

No. You can change the basics of the link style with an inline
style="" attribute on the <a>, but if you want to use the :hover
selector then you'll need either an external stylesheet or a
stylesheet on the page within <style type="text/css" >...</style>
 
J

Jukka K. Korpela

Mike Azzopardi said:
Thanks for the tip!

Please find a clue on usenet posting style.
The list of links is a link of songs in a specific font which link to
the lyrics but the font is important, so with the mouse cursor changing
that will be good enough.

No it won't. If there's no indication that something is a link, why should
I move a mouse around (assuming I use a mouse in the first place)?

What you should consider changing in
<a href="her%20own%20story.html">her own story</a>
(in addition to the URL) is the link text. How does the string "her own
story" look like in a list of all links on a page, and what votes does it
cast in the Google voting? Using the title (main heading) of the story
itself would normally be best. As the second best option, you could put
that text into a title="..." attribute as a hint.
 
M

Mike Azzopardi

No it won't. If there's no indication that something is a link, why should
I move a mouse around (assuming I use a mouse in the first place)?

There is nothing else on the page except for a list of songs. There is
nothing else to click :)
 
B

Blinky the Shark

There is nothing else on the page except for a list of songs. There is
nothing else to click :)

Then it's not exactly High Art that normal link indication is going to
break.
 
D

dorayme

Hi

I'm wondering if someone can help me please as my html is rusty. All I'm
trying to do in dreamweaver is have a link to a page, but not have the link
appear as underlined in blue. I just want it to remain in the font the
current paragraph is. Is this possible without a stylesheet?

Here is the sample html I need to edit:

<a href="her%20own%20story.html">her own story</a><br>

Thanks in advance

Mike


Yes, it is possible without a stylesheet. If this is all you want, put in
the head of the html:

<style type="text/css">
a.plain {
text-decoration: none;
color : blue;
background : transparent;
}
</style>

and where you want link, put <a class="plain" href="herOwnStory.html">her
own story</a>

You want more complicated to do with hover, visited and action? More css! I
make the link blue, you can choose whatever colour you want though...

dorayme
 
S

Steve Pugh

dorayme said:
Yes, it is possible without a stylesheet.

Oh really? This should be good.
If this is all you want, put in the head of the html:

<style type="text/css">
a.plain {
text-decoration: none;
color : blue;
background : transparent;
}
</style>

And what's that if it isn't a stylesheet?

Steve
 
D

dorayme

Oh really? This should be good.


And what's that if it isn't a stylesheet?

Steve


"css stylesheet" suggests a separate sheet in spite of what "css" is short
for. Did not think the op would want to go into this and did think that to
say "yes, you need one" would be discouraging to him. OP did not seem to me
to be someone who will go on in these things much (no offence to him, there
are more important things folk can do with their time). So a quick more
ordinary language reply and some practical help for a limited problem.

Was it good? I don't know? At least I tried to straddle two difficult and
almost irreconcilable worlds, the world of html/css and the world of the mug
punter (the latter being the one most of us know(?) so well).

Let me recommend to use "stylesheet" to refer to a separate file that can be
linked (or not linked, it could just be stared at, or used as a teaching aid
or whatever), and not to suppose that the occurrence of the phrase "css" or
even "cascading style sheet" implies that it is a stylesheet. Absurd? Well,
maybe ... :) ... but not for the reason that the ordered letters "s" "t" "y"
etc are evident between the argument and the conclusion. You might as well
argue that a brown snake has a brow on the ground that "brow" is part of
"brown"...

ok, maybe a snake does have a brow... but my point is that it is not because
of anything to do with the name of its colour. The very idea that a block of
text, a script, inline or in the head is a stylesheet of any kind is simply
ridiculous to my ear. If it is a way of talking it is a bad way of talking.
If it has taken hold irreversibly then so be it, but a few squawks of
protest are not so bad...


dorayme
 
S

Steve Pugh

dorayme said:
"css stylesheet" suggests a separate sheet

To you maybe. To the rest of us it means a CSS stylesheet, regardless
of whether that's internal or external.
Did not think the op would want to go into this and did think that to
say "yes, you need one" would be discouraging to him.

By the time you posted your reply the OP has already implement the CSS
solution, as could be seen by looking at his other thread where he
gives a URL.
Let me recommend to use "stylesheet" to refer to a separate file that can be
linked

If you want to recommend such terminology then take it up with the
W3C.
(or not linked, it could just be stared at, or used as a teaching aid
or whatever), and not to suppose that the occurrence of the phrase "css" or
even "cascading style sheet" implies that it is a stylesheet. Absurd? Well,
maybe ... :) ... but not for the reason that the ordered letters "s" "t" "y"
etc are evident between the argument and the conclusion. You might as well
argue that a brown snake has a brow on the ground that "brow" is part of
"brown"...

ok, maybe a snake does have a brow... but my point is that it is not because
of anything to do with the name of its colour. The very idea that a block of
text, a script, inline or in the head is a stylesheet of any kind is simply
ridiculous to my ear. If it is a way of talking it is a bad way of talking.
If it has taken hold irreversibly then so be it, but a few squawks of
protest are not so bad...

What are you on?

Steve
 
R

Richard Rundle

Mike Azzopardi said:
There is nothing else on the page except for a list of songs. There is
nothing else to click :)

If there's nothing else on the page, where is the "paragraph" mentioned in
the original post : " I just want it to remain in the font the current
paragraph is. Is this possible without a stylesheet?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top