50 likes | 165 Views
BIT 116:JavaScript. A few useful (binary) HTML tags:. h1 Level 1 header: big and bold p Paragraph (enforces line space before/after) b bold i italic. Due Dates. Due today: Chapter 2 Reading Quiz In-class: ICE 2 (spans today & next class) Due next lecture: Nothing
E N D
A few useful (binary) HTML tags: • h1 • Level 1 header: big and bold • p • Paragraph (enforces line space before/after) • b • bold • i • italic BIT 116: Scripting
Due Dates • Due today: • Chapter 2 Reading Quiz • In-class: ICE 2 (spans today & next class) • Due next lecture: • Nothing • Due in a week (Wed, Oct 12) • Assignment 1 • Chapter 3 Reading Quiz BIT 116: Scripting
Today (and beyond) • Data Types • concatenation vs addition • parseInt(), parseFloat(), and isNaN() • document.getElementById() • Forms • purpose (server- vs client-side) • basic structure • using JavaScript with forms • .value • validation (easily circumvented, but useful) • String emptiness, equality • .innerHTML BIT 116: Scripting
Semi-colons • Don’t forget them – they’re required for this class!! • <script type=“text/javascript”> • alert(“Hello from BIT 116!”); • </script> BIT 116: Scripting