The document provides an overview of CSS and JavaScript, detailing their functions and features for web design. CSS is used for styling HTML elements, while JavaScript adds interactivity to web pages. Various examples illustrate the application of CSS for layout and design, as well as JavaScript for dynamic content and user interactions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views16 pages
DHTML, Java Css
The document provides an overview of CSS and JavaScript, detailing their functions and features for web design. CSS is used for styling HTML elements, while JavaScript adds interactivity to web pages. Various examples illustrate the application of CSS for layout and design, as well as JavaScript for dynamic content and user interactions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 16
43) CSS
Q. What is Css?
Answer: It is t;
Seve iheate ios Your web Designing skills to the next level cascading
Document in an ie @ Way to control the look and feel of your HTML
Bila ta "ganized and efficient manner with css you will be
** Add new looks to your old HTML.
ee "i
ope restyle a website with only a few changes to your css
** Use the “style” you Create on any web page you wish.
Q. How to using Css?
Answer: css is short for Cascading style sheets, the purpose of css is
to assign styling information elements in a marked up document
unlike HTML, it is not actually a markup language (Though it is easier
to think of it and refer to it as such) Rather, it is collection of
commands that allow you to reference the markup language being
used.
Q. What is a Style?
Answer: A style is a rule or a command, telling a browser how to
display a particular HTML element. For instance, a style could specify
that all
elements should be displayed in red and in a different
type face than the rest of the text. Style can stand-alone or can be
organized into style sheets.31) DHTML
Example:
red text on a yellow background!
32) DHTML
Example:
CSS Classes
This is the P.first Paragraph
This is the P.second paragraph
This is the P.third paragraph
33) DHTML
Example:
CSS fonts
This paragraph has a static size of 14 pixels. If you try and change
the size of ur font with ur browsers "In crease font size" ,
it will not work,static size is good when you need a specific size for your
website to look or function correctly.
This list has a
font-style value of
bolder
34) DHTML
Example:
CSS padding
The header has a top padding of 20px and This paragraph has
a padding-left of 25px. This gives a Nice indentation to the
paragraph.
This list has a uniform
25pixel margin
Padding is usefull for creating Necessary white space.
35) DHTML
Example:
This is a solid border
This is a double border
This is a grooved border
This is a dotted border
This is a dashed border
This is a inset border
This is a outset border
This is a ridged border
This is a Hidden border
36) HTML
Example:
CSS Borders
This paragraph has a black border
This table has an outset border
and each cell has
a dotted border.
37) DHTML
Example: Y
We want to help you!
This may take a while to load,
.So don't worry,be happy!
Do u like to play shooting games on the computer?
38) DHTML (Blinking Text)
Example:
Blinking Text Example
Blinking Text Example
APLL
INDIA is blinking because a DHTML script is manipulating its
visibility property.
Q. What is Java Script?
Answer: Developed initially by Netscape in 1995 for use with HTML
pages, Java Script is now a widely used scripting language supported by
the majority of web browsers and diverse web tools a registered
trademark of sun micro systems, Inc., Java Scripts works with HTML
pages, adding inter active functions that developers can use to create
dynamic web pages.
| Java Script is built on the concept of objects, Unlike Java, however,
Java Script provides a basic collection of objects for you to work with.
Q. What are the Features of java script?
Answer:
a) Great Programming Tool:
Java Script is a powerful scripting language that helps HTML
designers too effectively and interactively design websites and
web pages in a very simple and efficient way.
b) Handles Dynamic Effects:
Java Script is such a powerful scripting language which has
features to achieve dynamic effects in web pages.
c) Browser Detection:
One of the powerful feature of java Script is its ability to detect
client browser. Browser detection feature of java script helps to
achieve independent platforms.
d) Saves Time:
Java Script also has the feature of validating data submitted at the
client level. This helps in saving the processing time of the server
because Java script initially creates the validation on the client side.
e) DOM: Client side Java Script is embedded inside HTML. This
embedded java script is used along with DOM (Document Object
Model) for control over the browser by means of objects.
f) Popular Scripting Language:
Java script has simple rules and procedures that make it easier to
Use and learn for programmers.g) Interpreted Language:
It is an Interpreted lan, i i
a guage-meaning that it can be used or
executed with ease without pre-compilation.
Q. What are the Name of Logical Operators?
Answer:
a) Logical AND (&&):
The logical AND (double ampersands) compares two Boolean
operands and equates to true if they are both true.
b) Logical OR (!!):
The logical OR (double vertical bars) compares two Boolean
operands and equates to true if either one is true.
c) Logical NOT (1):
The logical NOT (exclamation point) negates the value of Boolean
operand, which is to say it returns true if the operand has a value
of false.
44) JAVA SCRIPT
Example:
45) JAVA SCRIPT
Example:
46) JAVA script.“
Example:
Z
47) JAVA SCRIPT Example:
Hover me!
48) JAVA SCRIPT Example:
49) JAVA SCRIPT
Example:
good looking strager ! What is Your name
2) JAVA SCRIPT (Conditional Week)
Example:
Conditional Statement
51) JAVA SCRIPT (Conditional Month)
Example:
conditional statement
52) JAVA SCRIPT (Mouse Event)
Example:
Mouse Events
53) JAVA SCRIPT (Validation)
Example:
Validation