|
Posted by Ubi on 11/12/07 03:13
>> The html I produced is to embed somewhere else.
>
> Why are you saying this, what is it relevant to?
What I mean is that I am producing some code (the one you see within the
body tag) to be placed on a text field (like YouTube does with the embed
code) to be copied&pasted somewhere else.
>> The main reason why I used a separate style definition is because I don't
>> know how to define the :hover behaviour of an anchor using the style
>> attribute of an <a> tag.
>
> You have the styles in the wrong place. Either move them off the
> file and link, or put them in the head.
As I said above, the produced code has to be pasted somewhere else.
>> I have been thinking it's possible to definite :hover :active :visited
>> anchor behaviours only by defining a class within a <style> tag. Am I
>> wrong?
>>
>
> This is not right. You do not have to class anything to style a
> web page. If you style an a or an a: or whatever, then the styles
> apply to these. You class things to distinguish them from other
> like things. An anchor is different enough all on its own from a
> paragraph not to need classing. But one link might be wanted to
> be one way, another another way, and then it can be helpful to
> class them differently (there are other ways too).
>
> As I recommended, study the tutorial link I gave.
I couldn't find any information on how to define a :hover behaviour for a
single anchor, without defining a class. Can anyone provide an example, if
this is possibile?
Daniele
[Back to original message]
|