<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>This is the title</title>
</head>
<body>
<h1 id="demo">Some text</h1>
<p id="demo">Some text</p>
</body>
</html>
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
<!DOCTYPE html><html><head><script>function myFunction(){document.getElementById("demo").innerHTML = "Paragraph changed."}</script></head><body><h2>Demo JavaScript in Head</h2><p id="demo">A Paragraph</p><button type="button" onclick="myFunction()">Try it</button></body></html>
<!DOCTYPE html><html><body><h2>Demo JavaScript in Head</h2><?php $color = "red";echo "My car is " . $color . "<br>";echo "My house is " . $COLOR . "<br>";echo "My boat is " . $coLOR . "<br>";?></body></html>
Still stuck?How can we help?