HTML forms are used for sending data to a website
The can also be used for input to Javascript
A form consists of a set of input fields
<form> name: <input type="text" id="name" value=""> <br> address: <input type="text" id="address" value=""> </form>
The value attribute will give you the current value of the input - the entered text
Other possible inputs:
The content of existing elements on a page can be changed using innerHTML
New elements can also be added via createElement and appendChild
function addParagraph(text) { newpara = document.createElement("p"); newpara.innerHTML = text; $('parent').appendChild(newpara); }