Calculate the user's age from the year they were born!
- Create a new variable called year.
- Get the value of the year input, and store it in the year variable.
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>test for github</title> | |
</head> | |
<body> | |
body of my page | |
</body> | |
</html> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
</body> | |
</html> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
</body> | |
</html> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>08.1 Return Statements</title> | |
</head> | |
<body> | |
<div id="message"></div> | |
</body> | |
</html> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Greeting Card Maker</title> | |
</head> | |
<body> | |
</body> | |
</html> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Greeting Card Maker</title> | |
</head> | |
<body> | |
<div class="greeting-card"> | |
<div class="to"> | |
Dear |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Greeting Card Maker</title> | |
</head> | |
<body> | |
<p>To: <input id="to"> </p> | |
<p>Message: <input id="message"> </p> | |
<p>Color: <input id="color"></p> | |
<p>From: <input id="from"></p> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Greeting Card Maker</title> | |
</head> | |
<body> | |
<p>To: <input id="to"> </p> | |
<p>Message: <input id="message"> </p> | |
<p>Color: <input id="color"></p> | |
<p>From: <input id="from"></p> |
Get the value of the inputs and append them to the page to create your own madlib!