Essential JavaScript and HTML Tags for BIT 116 Scripting Course
This document provides an overview of essential JavaScript and HTML tags used in BIT 116. Learn about key HTML elements like for headers and for paragraphs, which enhance text presentation. Understand JavaScript fundamentals such as data types, concatenation vs. addition, and functions like parseInt(), parseFloat(), and isNaN(). Explore DOM manipulation with document.getElementById() and form handling, including client-side validation techniques. Stay on track with upcoming assignments and quizzes to excel in your scripting journey.
Essential JavaScript and HTML Tags for BIT 116 Scripting Course
E N D
Presentation Transcript
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