Created
February 26, 2018 16:08
-
-
Save sun1shayina/5df9438dfe1b82a3bde85109d9802011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body {background-color: powderblue;} | |
h1 {color: blue;} | |
p {color: red;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Greet App</title> | |
</head> | |
<body> | |
<h1>greet App</h1> | |
<!-- Its important to guve your users instructions so they can have an idea of what your pages does. --> | |
<p>Enter your name and you will be greeted.</p> | |
<form id="name-form"> | |
<label>First name :</label> | |
<input type="text" id="fname-input"> | |
<label>Last name</label> | |
<input type="text" id="lname-input"> | |
<button type="submit">Enter</button> | |
</form> | |
<p id="output-p"></p> | |
<p>Please insert your firstname and your lastname</p> | |
<script type="text/javascript" src="scripts.js"></script> | |
<a href=""></a> | |
<link rel="stylesheet" type="text/css" href="scripts.css"> | |
<table border="solid black"> | |
<thead> | |
<tr> | |
<th>Ethnicity</th> | |
<th>Weight</th> | |
</tr> | |
</thead> | |
<tr> | |
<td>African American</td> | |
<td>103Kg</td> | |
</tr> | |
</table> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var nameForm = document.getElementById('name-form'); | |
nameForm.addEventListener('submit',function(){ | |
// alert('hi'); | |
event.preventDefault(); | |
var fnameInput = document.getElementById('fname-input'); | |
var LnameInput = document.getElementById('lname-input'); | |
var output = document.getElementById('output-p'); | |
output.innerHTML = 'Welcome Home ' | |
// fnameInput.value +''+ LnameInput.value; | |
}); | |
console.log(nameForm); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The extensions of yours files have mistakes