is it posible to do a hover using html not css?

Joshua J

New member
no. use css. why wouldn't you want to use css in the first place?
<head>
<style type="text/css">
a:hover {
color: orange;
text-decoration: none;
}
</style>
</head>

you could also use a class for this:
<style type="text/css">
a.name_here:hover {
color: orange;
text-decoration: none;
}
</style>
</head>
<body>
<a class="name_here" href="link.html">link</a>
 
is it posible to do a hover using html not css if so what is the code
what is the css code can i put it in my page or do i have to use an external style sheet
 
no. use css. why wouldn't you want to use css in the first place?
<head>
<style type="text/css">
a:hover {
color: orange;
text-decoration: none;
}
</style>
</head>

you could also use a class for this:
<style type="text/css">
a.name_here:hover {
color: orange;
text-decoration: none;
}
</style>
</head>
<body>
<a class="name_here" href="link.html">link</a>
 
Back
Top