Lecture 9 Flashcards
What is dynamic html?
Dynamic HTML (DHTML) is a term used to describe a combination of
technologies that allow web content to change and interact with users in real
time. It is a technique used to create more interactive and responsive web
pages by manipulating the Document Object Model (DOM) of a webpage
through client-side scripting languages like JavaScript
Key components of DHTML:
Key components of DHTML:
HTML: Dynamic HTML starts with basic HTML as the foundation. HTML
provides the structure and content of a webpage.
Cascading Style Sheets (CSS) are used to control the presentation and
styling of HTML elements, allowing for dynamic changes to the
appearance of a webpage.
JavaScript is the primary programming language used for creating
dynamic web content. It can be used to change, update, and animate
HTML elements in response to user actions or other events.
What is DOM
Document Object
Model (DOM): The
Document Object Model
is a representation of
the HTML structure of a
webpage. It allows
JavaScript to interact
with and manipulate
elements on the page
dynamically.
NB: You traverse the
DOM.
What is Javascript
JavaScript is a versatile and widely-used programming language that is
primarily known for its role in web development. It is used to create dynamic
and interactive web pages, web applications, and can also be used on the
server-side (e.g., with Node.js) for building server applications. JavaScript
provides the means to add interactivity, handle user input, and manipulate
the content of web pages in real-time.
What are some key aspects about javascript?
Key features of JavaScript:
Client-Side Web Development
Web Application Development
Cross-Browser Compatibility
Libraries and Frameworks
Server-Side Development
Asynchronous Programming
Event Handling
Interactivity
Etc.
var, let and const
var, let and const:
* var
– The var keyword is an outdated way to declare a variable
* let
– Can be reassigned and hence is mutable
– Can hold numbers and text
– Examples:
* let x = 12;
* let word = “cat”;
* const
– Short for constant and used for immutable variables such as pi
– Can hold numbers and text
– const pi = 3.14;
How many datatypes does javascript have?
- JavaScript has 8 data types:
– String, number, Bigint, Boolean, Undefined, Null, Symbol and Object
– An object can contain: objects, arrays and dates.
What is the div tag?
The <div> tag:
o Defines a division or section in an HTML document.
o Used as a container for HTML elements – which is then styled (CSS) or
manipulated (JS).
o Can be styled with the class or id attribute.