a tag styles code example
Example 1: text underline hover css
a:hover {
text-decoration: underline;
}
Example 2: how to change hyperlink color in css
a {
background-color: red;
color: white;
padding: 1em 1.5em;
text-decoration: none;
text-transform: uppercase;
}
Example 3: html style tag
<html>
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<h1>A heading</h1>
<p>A paragraph.</p>
</body>
Example 4: html style tag
<html>
<body>
<!-- BODY HTML -->
</body>
<head>
<!-- HEAD HTML -->
</head>
<style>
/* CSS */
</style>