Created
June 21, 2020 18:19
-
-
Save matthieua/6249e278e2d7cfd8f84686992089ad84 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: 10px; | |
border-radius: 10px; | |
} | |
img { | |
width: 100%; | |
border-radius: 10px; | |
} | |
p { | |
line-height: 1.5; | |
font-size: 14px; | |
} | |
button { | |
width: 100%; | |
background: blueviolet; | |
color: white; | |
border: none; | |
padding: 15px; | |
font-size: 20px; | |
margin: 20px 0; | |
border-radius: 30px; | |
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2); | |
} | |
footer { | |
text-align: center; | |
font-size: 12px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1> | |
🇯🇵 Tokyo | |
</h1> | |
<h2> | |
Capital City of Japan | |
</h2> | |
<img | |
src="https://assets.gojourny.com/stories/2019/03/Journy-s-Must-Read-Guide-to-Tokyo--Japan.jpg" | |
alt="" | |
/> | |
<p> | |
Tokyo officially Tokyo Metropolis (東京都, Tōkyō-to), is the capital and | |
most populous prefecture of Japan. Located at the head of Tokyo Bay, the | |
prefecture forms | |
<br /> | |
<br /> | |
<a href="https://en.wikipedia.org/wiki/Tokyo"> | |
Learn more on Wikipedia | |
</a> | |
</p> | |
<button> | |
Go to Tokyo | |
</button> | |
<footer> | |
Coded by 👩💻 | |
<a href="https://www.shecodes.io"> | |
SheCodes | |
</a> | |
</footer> | |
</body> | |
<script> | |
function subscribe() { | |
let name = prompt("What is your name?"); | |
prompt("What is your email address?"); | |
alert( | |
`Thanks ${name}, we'll be in touch! Meanwhile, wash your keyboard!` | |
); | |
} | |
let button = document.querySelector("button"); | |
button.addEventListener("click", subscribe); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment