r/learnjavascript • u/Look386 • 3m ago
How can I improve my satiric project
1
Upvotes
Hello,
Not a long time ago, I created a satiric announcement of a new phone. For that, I used HTML, CSS but still not JS and I want to improve my announcement.
Do you have any idea for that.
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Buy the new mPhone.</title>
<style>
body {
font-family: cursive;
}
h1 {
text-align: center;
color: rgb(0, 0, 50);
text-shadow: 0.5px 0.5px 0.5px black;
font-size: 50px;
}
h2 {
text-align: center;
color: rgb(0, 0, 70);
}
#image1 {
width: 800px;
position: relative;
left: 310px;
}
#image1:hover {
transition: 0.5s ease;
transform: scale(1.03);
}
h3 {
text-align: center;
position: relative;
bottom: 30px;
}
h4 {
position: relative;
bottom: 700px;
left: 30px;
}
p {
text-align: center;
position: relative;
bottom: 50px;
}
</style>
</head>
<body>
<h1>Buy the new mPhone</h1>
<h2>One of the best phones you will see.</h2>
<img src="mPhone.png" id="image1">
<h3>900$</h3>
<h4>Mango</h4>
<p>The cheapest phone of the year.</p>
</body>
</html>