Horje
How to create Link Buttons

A link can also be styled as a button, by using CSS:


Full Example of

We put here example a button color link
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
<style>
a:link, a:visited {
  background-color: #f44336;
  color: white;
  padding: 15px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: red;
}
</style>
</head>
<body>

<h2>Link Button</h2>
<p>A link styled as a button:</p>
<a href="default.asp" target="_blank">This is a link</a>

</body>
</html>

Output should be:

Full Example of





Related Articles
What is HTML Links Color HTML Links Color
How to create Link Buttons HTML Links Color

Single Articles
Full Example of HTML Links Color

Read Full:
HTML Links Color
Category:
Web Tutorial
Sub Category:
HTML Links Color
Uploaded by:
Admin
Views:
101


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_links_button