<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Thomas' Story</title>
</head>
<body style="background-color:lightblue;">
<h1 style="color:Orange; text-align:center;"><B>Thomas'Story Page</B></h1>
<h1 style="color:Orange; text-align:center;"><B>Let's Make a Story Together!</B></h1>
<h2 style="color:Black; text-align:center;">You fill in the blanks and we'll go from there!</h2>
<hr>
<h3>Now, just fill in the boxes below and when you're finished click the button for your story!</h3>
<p>
Enter an Animal:
<input type="text" id="animalBox" size=20 value=""><br>
<br>
Enter a Name:
<input type="text" id="nameBox" size=20 value=""><br>
<br>
Enter a Number:
<input type="number" id="numberBox" size=20 value=""><br>
<br>
Enter an adjective:
<input type="text" id="adjectiveBox" size=20 value=""><br>
<br>
Enter a color:
<input type="text" id="colorBox" size=20 value=""><br>
<br>
</p>
<input type="button" value = "Once upon a time..."
onclick="document.getElementById('outputDiv').innerHTML=
'<p>Today was the kind of day ' + document.getElementById('nameBox').value +'loved.'</p>
<p>It was a ' + document.getElementById('adjectiveBox').value + 'day.'</p>;">
<div id="outputDiv"></div>
</body>
</html>
Thomas_31 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.