The code is:
<!DOCTYPE html>
<html>
<head>
<title>Head details</title> <!-- Title -->
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials"> <!-- Text information for the document -->
<meta name="keywords" content="HTML,CSS,XML,JavaScript"> <!-- search engine references -->
<meta name="Chris Talbot" content="Same guy"> <!-- my name / who made the site -->
<style> body {background-image: URL("https://images.unsplash.com/photo-1496396543879-72dd3ec34186?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&w=1000&q=80");}
</style> <!-- Background image from https://unsplash.com/collections/651580/webpage-backgrounds -->
<script> <!-- JavaScript -->
function myFunction() {
document.getElementById("demo").innerHTML = "A fish can swim!";
}
</script>
</head>
<body>
<br><p>All meta information goes before the body.</p><br>
<h1>My Web Page</h1>
<p id="demo">A Paragraph of great importance</p>
<button type="button" onclick="myFunction()">Press to reveal</button>
</body>
</html>
No comments:
Post a Comment