I know that with CSS you can do for example:
p:hover {
xxx:yyy;
}
I wish to do so but in the HTML page without linking the CSS, like so:
<p style="xxx">xxxxxxxx</p>
but with the hover option.
I know that with CSS you can do for example:
p:hover {
xxx:yyy;
}
I wish to do so but in the HTML page without linking the CSS, like so:
<p style="xxx">xxxxxxxx</p>
but with the hover option.
You can insert directly your CSS inside the html page without linking it:
<head>
<style>
p:hover {
xxx: yyy;
}
</style>
</head>
<body>
<p>xxxxxxxx</p>
</body>
You can simply use internal css in your html page as below..
<style>
p:hover{
//coding...
}
</style>
Try JavaScript:
<p onmouseover="change(this)" >xxxxx</p>
<script type="text/javascript" >
function change (element) {
var style = element.style;
// Do something with style...
// Example: style.color = "red";
}
</script>