Lecture 9 Flashcards

1
Q

What is dynamic html?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Key components of DHTML:

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is DOM

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Javascript

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are some key aspects about javascript?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

var, let and const

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How many datatypes does javascript have?

A
  • JavaScript has 8 data types:
    – String, number, Bigint, Boolean, Undefined, Null, Symbol and Object
    – An object can contain: objects, arrays and dates.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the div tag?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly