The numbering of the exercise is indicative of the level of difficulty, from the simplest to the most complicated. If you have any comments, questions or suggestions: write to us at info @bloginnovazione.it
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
function onMouseClick() {
document.getElementById("parag").style.fontWeight = "bold";
document.getElementById("parag").style.backgroundColor = "yellow";
}
function onMouseOverEvent() {
document.getElementById("parag").style.textDecoration = "underline";
document.getElementById("parag").style.backgroundColor = "orange";
}
function onMouseOutEvent() {
document.getElementById("parag").style.fontSize = "16px";
document.getElementById("parag").style.backgroundColor = "lightblue";
}
</script>
</head>
<body>
<p id="parag" >
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
input {
margin: 20px;
margin-bottom: 30px;
}
.box-1 {
display: flex;
justify-content: center;
align-items: center;
}
.box {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 50px;
}
button {
padding: 5px;
width: 75px;
}
.container{
margin: 250px;
}
</style>
<script>
function onClick() {
let num1 = document.getElementById("num1").value;
let num2 = document.getElementById("num2").value;
let result;
if (!isNaN(num1) && !isNaN(num2)) {
result = parseFloat(num1) + parseFloat(num2);
} else {
result = num1 + num2;
}
document.getElementById("result").innerHTML = result;
}
</script>
</head>
<body>
<div class="container">
<div class="box-1">
<input id="num1" type="text" placeholder="Insert num or text . . .">
<input id="num2" type="text" placeholder="Insert num or text . . .">
</div>
<div class="box">
<button >
BlogInnovazione.it
An ophthalmoplasty operation using the Apple Vision Pro commercial viewer was performed at the Catania Polyclinic…
Developing fine motor skills through coloring prepares children for more complex skills like writing. To color…
The naval sector is a true global economic power, which has navigated towards a 150 billion market...
Last Monday, the Financial Times announced a deal with OpenAI. FT licenses its world-class journalism…