Created
May 7, 2020 18:17
-
-
Save matthieua/50a70c423fc55b738f61a0e40c5ab501 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
h1 { | |
text-align: center; | |
color: blueviolet; | |
} | |
h2 { | |
text-align: center; | |
border: 1px solid blueviolet; | |
padding: 15px 20px; | |
border-radius: 5px; | |
} | |
img { | |
max-width: 100%; | |
border-radius: 5px; | |
} | |
p { | |
line-height: 1.5; | |
font-size: 13px; | |
} | |
button { | |
display: block; | |
margin: 20px auto; | |
background: blueviolet; | |
color: white; | |
padding: 20px 30px; | |
font-size: 20px; | |
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5); | |
border-radius: 10px; | |
border: none; | |
} | |
button:hover { | |
opacity: 80%; | |
} | |
footer { | |
text-align: center; | |
font-size: 11px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1> | |
Bichon Frisé | |
</h1> | |
<h2> | |
Dog breed | |
</h2> | |
<img | |
src="https://www.dogsnsw.org.au/media/img/BrowseAllBreed//Bichon-Frise.jpg" | |
alt="" | |
/> | |
<p> | |
A Bichon Frise is a small breed of dog of the bichon type. The Bichon | |
Frise is a member of the Non-sporting Group of dog breeds in the United | |
States, and a member of the Toy dog Group in the United Kingdom. | |
</p> | |
<a href="https://en.wikipedia.org/wiki/Bichon_Frise"> | |
Learn more on Wikipedia | |
</a> | |
<button> | |
🐩 Subscribe to our newsletter | |
</button> | |
<footer> | |
Coded by 👩💻 | |
<a href="https://www.shecodes.io/"> | |
SheCodes | |
</a> | |
</footer> | |
<script> | |
function subscribe() { | |
let name = prompt("What is your name?"); | |
let email = prompt("What is your email?"); | |
alert( | |
`Thanks ${name}, we'll be in touch! 👊 Meanwhile, wash your keyboard!` | |
); | |
} | |
let button = document.querySelector("button"); | |
button.addEventListener("click", subscribe); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment