SlideShare a Scribd company logo
BY,
R.Preethi.
Index:
Rounded Corners.
Colors.
Box Shadows.
Introduction to DOM.
DOM History and Levels.
Rounded Corners:
 Rounded corners are used to add special colored corner
to body or text by using the border-radius property.
 Rounded corners are used to add special colored corner
to body or text by using the border-radius property.
#rcorners7 {
border-radius: 60px/15px;
background: #FF0000;
padding: 20px;
width: 200px;
height: 150px;
}
Value & Description:
 Border-radius
Use this element for setting four boarder radius property
 Border-top-left-radius
Use this element for setting the boarder of top left corner
 Border-top-right-radius
Use this element for setting the boarder of top right corner
 Border-bottom-right-radius
Use this element for setting the boarder of bottom right
corner
 Border-bottom-left-radius
Use this element for setting the boarder of bottom left
corner
Example:
<html>
<head>
<style>
#rcorners1 {
border-radius: 25px;
background: #8AC007;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners2 {
border-radius: 25px;
border: 2px solid #8AC007;
padding: 20px;
width: 200px;
height:
150px;
}
</style>
</head>
<body>
<p id = "rcorners1">Rounded corners!</p>
<p id = "rcorners2">Rounded corners!</p>
</body>
</html>
Result:
Rounded Corners!
Each Corner Property:
The border-radius property can have from one to four
values. Here are the rules:
Four values - border-radius: 15px 50px 30px 5px;
First value applies to top-left corner.
Second value applies to top-right corner.
Third value applies to bottom-right corner.
Fourth value applies to bottom-left corner.
Example:
<html>
<head>
<style>
#rcorners1 {
border-radius: 15px 50px 30px 5px;
background: #a44170;
padding: 20px;
width: 100px;
height: 100px;
}
#rcorners2
{
border-radius: 15px 50px 30px;
background: #a44170;
padding: 20px;
width: 100px;
height: 100px;
}
#rcorners3 {
border-radius: 15px 50px;
background: #a44170;
padding: 20px;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<p id = "rcorners1"></p>
<p id = "rcorners2"></p>
<p id = "rcorners3"></p>
</body>
<body>
Result:
CSS Colors:
Colors are specified using predefined color names, or RGB,
HEX, HSL, RGBA, HSLA values.
Color Names:
In HTML, a color can be specified by using a color name:
Background Color:
 You can set the background color for HTML elements:
Example:
<h1 style="background-color : Dodger Blue ;">
Hello World</h1>
Text Color:
You can set the color of text:
Hello World
Example:
<h1 style="color:Tomato;">Hello World</h1>
Border color:
You can set the color of borders:
Example:
<h1 style="border:2px solid Tomato;">Hello World</h1>
<h1 style="border:2px solid DodgerBlue;">Hello World</h1>
Color Values:
 In HTML, colors can also be specified using RGB values, HEX
values, HSL values, RGBA values, and HSLA values.
RGB Value:
 In HTML, a color can be specified as an RGB value, using
this formula.
 Each parameter (red, green, and blue) defines the intensity
of the color between 0 and 255.
For example, rgb (255, 0, 0) is displayed as red,
because red is set to its highest value (255) and the
others are set to 0.
HEX Value:
In HTML, a color can be specified using a
hexadecimal value in the form:
#rrggbb
Where rr (red), gg (green) and bb (blue) are
hexadecimal values between 00 and ff (same as
decimal 0-255).
For example, #ff0000 is displayed as red, because red
is set to its highest value (ff) and the others are set to
the lowest value (00).
HSL Value:
In HTML, a color can be specified using hue, saturation,
and lightness (HSL) in the form:
HSL(hue, saturation, lightness)
Hue is a degree on the color wheel from 0 to 360. 0 is red,
120 is green, and 240 is blue.
Saturation is a percentage value, 0% means a shade of
gray, and 100% is the full color.
Lightness is also a percentage, 0% is black, 50% is neither
light or dark, 100% is white
RGBA Value:
RGBA color values are an extension of RGB color values with an
alpha channel - which specifies the opacity for a color.
An RGBA color value is specified with:
rgba (red, green, blue, alpha)
The alpha parameter is a number between 0.0 (fully transparent)
and 1.0 (not transparent at all).
HSLA Value:
An HSLA color value is specified with:
hsla(hue, saturation, lightness, alpha)
The alpha parameter is a number between 0.0 (fully
transparent) and 1.0 (not transparent at all).
BOX SHADOW:
#box-shadow defines the shadow of the element.
default box-shadow: none;
Removes any box-shadow that was applied to the element.
box-shadow: 2px 6px;
You need at least two values:
 the first is the horizontal offset
 the second is the vertical offset
HELLO WORLD
 The shadow color will be inherited from the text color.
box-shadow: 2px 6px red;
 You can define a color as the last value.
 As with colors, you can use color names, hexadecimal, rgb,
hsl...
box-shadow: 2px 4px 10px red;
The optional third value defines the blur of the shadow.
The color will be diffused across 10px in this example, from
opaque to transparent.
box-shadow: 2px 4px 10px 4px red;
The optional fourth value defines the spread of the shadow.
The spread defines how much the shadow should grow: it
enhances the shadow.
INTRODUCTION TO THE DOCUMENT
OBJECT MODEL
The Document Object Model (DOM) is a programming
interface for HTML and XML(Extensible markup language)
documents. It defines the logical structure of documents and
the way a document is accessed and manipulated.
DOM is a way to represent the webpage in the structured
hierarchical way so that it will become easier for
programmers and users to glide through the document.
With DOM, we can easily access and manipulate tags, IDs,
classes, Attributes or Elements using commands or methods
provided by Document object.
Structure of DOM:
DOM can be thought of as Tree or Forest(more than
one tree). The term structure model is sometimes used to
describe the tree-like representation of a document. One
important property of DOM structure models is structural
isomorphism: if any two DOM implementations are used
to create a representation of the same document, they will
create the same structure model, with precisely the same
objects and relationships.
Properties of DOM:
 Window Object: Window Object is at always at top of
hierarchy.
 Document object: When HTML document is loaded into a
window, it becomes a document object.
 Form Object: It is represented by form tags.
 Link Objects: It is represented by link tags.
 Anchor Objects: It is represented by a href tags.
 Form Control Elements:: Form can have many control
elements such as text fields, buttons, radio buttons, and
checkboxes, etc.
Methods of Document Object:
write(“string”): writes the given string on the document.
getElementById(): returns the element having the given
id value.
getElementsByName(): returns all the elements having
the given name value.
getElementsByTagName(): returns all the elements
having the given tag name.
getElementsByClassName(): returns all the elements
having the given class name.
History of DOM:
The history of the Document Object Model is
intertwined with the history of the “browser wars" of the
late 1990s between Netscape Navigator and Microsoft
Internet Explorer as well as with that of JavaScript and
Jscript, the first scripting languages to be widely
implemented in the JavaScript engines of web browsers.
Levels of DOM:
Level 0: Provides low-level set of interfaces.
Level 1: DOM level 1 can be described in two parts: CORE
and HTML.
CORE provides a low-level interfaces that can be used to
represent any structured document.
HTML provides high-level interfaces that can be used to
represent HTML document.
Level 2 : consists of six specifications: CORE2, VIEWS,
EVENTS, STYLE, TRAVERSAL and RANGE.
 CORE2: extends functionality of CORE specified by DOM
level 1.
VIEWS: views allows programs to dynamically access
and manipulate content of document.
EVENTS: Events are scripts that is either executed by
browser when user reacts to web page.
STYLE: allows programs to dynamically access and
manipulate content of style sheets.
TRAVERSAL: allows programs to dynamically traverse
the document.
RANGE: allows programs to dynamically identify a range
of content in document.
Level 3: consists of five different specifications: CORE3,
LOAD and SAVE, VALIDATION, EVENTS, and XPATH.
 CORE3: extends functionality of CORE specified by DOM
level 2.
 LOAD and SAVE: allows program to dynamically load the
content of XML document into DOM document and save the
DOM Document into XML document by serialization.
 VALIDATION: allows program to dynamically update the
content and structure of document while ensuring document
remains valid.
 EVENTS: extends functionality of Events specified by DOM
Level 2.
 XPATH: XPATH is a path language that can be used to access
DOM tree.
WEB PROGRAMMING

More Related Content

Similar to WEB PROGRAMMING

Web - CSS 1.pptx
Web - CSS 1.pptxWeb - CSS 1.pptx
Web - CSS 1.pptx
haroon451422
 
CSS CASCADE
CSS CASCADECSS CASCADE
CSS CASCADE
Anuradha
 
IT2255 Web Essentials - Unit II Web Designing
IT2255 Web Essentials - Unit II  Web DesigningIT2255 Web Essentials - Unit II  Web Designing
IT2255 Web Essentials - Unit II Web Designing
pkaviya
 
5. Web Technology CSS Advanced
5. Web Technology CSS Advanced 5. Web Technology CSS Advanced
5. Web Technology CSS Advanced
Jyoti Yadav
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
Timbal Mayank
 
Introduction to css by programmerblog.net
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
Programmer Blog
 
Html 2
Html   2Html   2
Html 3
Html   3Html   3
CSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.ECSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.E
NavyaEnugala
 
DotNetNuke World CSS3
DotNetNuke World CSS3DotNetNuke World CSS3
DotNetNuke World CSS3
gravityworksdd
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Nicole Ryan
 
Customizing the look and-feel of DSpace
Customizing the look and-feel of DSpaceCustomizing the look and-feel of DSpace
Customizing the look and-feel of DSpace
Bharat Chaudhari
 
Csstutorial
CsstutorialCsstutorial
Csstutorial
Ankit Rana
 
Sass Essentials
Sass EssentialsSass Essentials
Sass Essentials
romiguelangel
 

Similar to WEB PROGRAMMING (20)

Css
CssCss
Css
 
Web - CSS 1.pptx
Web - CSS 1.pptxWeb - CSS 1.pptx
Web - CSS 1.pptx
 
CSS 3
CSS 3CSS 3
CSS 3
 
CSS CASCADE
CSS CASCADECSS CASCADE
CSS CASCADE
 
CSS
CSSCSS
CSS
 
IT2255 Web Essentials - Unit II Web Designing
IT2255 Web Essentials - Unit II  Web DesigningIT2255 Web Essentials - Unit II  Web Designing
IT2255 Web Essentials - Unit II Web Designing
 
5. Web Technology CSS Advanced
5. Web Technology CSS Advanced 5. Web Technology CSS Advanced
5. Web Technology CSS Advanced
 
3. CSS
3. CSS3. CSS
3. CSS
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
 
Introduction to css by programmerblog.net
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
 
Html 2
Html   2Html   2
Html 2
 
Html 3
Html   3Html   3
Html 3
 
CSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.ECSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.E
 
DotNetNuke World CSS3
DotNetNuke World CSS3DotNetNuke World CSS3
DotNetNuke World CSS3
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Customizing the look and-feel of DSpace
Customizing the look and-feel of DSpaceCustomizing the look and-feel of DSpace
Customizing the look and-feel of DSpace
 
Csstutorial
CsstutorialCsstutorial
Csstutorial
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
Sass Essentials
Sass EssentialsSass Essentials
Sass Essentials
 

More from sweetysweety8

Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
sweetysweety8
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
sweetysweety8
 
Software engineering
Software engineeringSoftware engineering
Software engineering
sweetysweety8
 
Software engineering
Software engineeringSoftware engineering
Software engineering
sweetysweety8
 
WEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSISWEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSIS
sweetysweety8
 
Software engineering
Software engineeringSoftware engineering
Software engineering
sweetysweety8
 
Software engineering
Software engineeringSoftware engineering
Software engineering
sweetysweety8
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
sweetysweety8
 
WEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSISWEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSIS
sweetysweety8
 
WEB PROGRAMMING
WEB PROGRAMMINGWEB PROGRAMMING
WEB PROGRAMMING
sweetysweety8
 
Bigdata
BigdataBigdata
Bigdata
sweetysweety8
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
sweetysweety8
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
sweetysweety8
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
sweetysweety8
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
sweetysweety8
 
Data mining
Data miningData mining
Data mining
sweetysweety8
 
Operating System
Operating SystemOperating System
Operating System
sweetysweety8
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
sweetysweety8
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
sweetysweety8
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
sweetysweety8
 

More from sweetysweety8 (20)

Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
WEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSISWEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSIS
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
WEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSISWEB PROGRAMMING ANALYSIS
WEB PROGRAMMING ANALYSIS
 
WEB PROGRAMMING
WEB PROGRAMMINGWEB PROGRAMMING
WEB PROGRAMMING
 
Bigdata
BigdataBigdata
Bigdata
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
BIG DATA ANALYTICS
BIG DATA ANALYTICSBIG DATA ANALYTICS
BIG DATA ANALYTICS
 
Data mining
Data miningData mining
Data mining
 
Operating System
Operating SystemOperating System
Operating System
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 

Recently uploaded

Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Orkestra
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
eCommerce Institute
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Sebastiano Panichella
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
IP ServerOne
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
Sebastiano Panichella
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
Access Innovations, Inc.
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Access Innovations, Inc.
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
khadija278284
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Sebastiano Panichella
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
Vladimir Samoylov
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
Howard Spence
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Matjaž Lipuš
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
OECD Directorate for Financial and Enterprise Affairs
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
OWASP Beja
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
Faculty of Medicine And Health Sciences
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
faizulhassanfaiz1670
 

Recently uploaded (16)

Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
 

WEB PROGRAMMING

  • 3. Rounded Corners:  Rounded corners are used to add special colored corner to body or text by using the border-radius property.  Rounded corners are used to add special colored corner to body or text by using the border-radius property. #rcorners7 { border-radius: 60px/15px; background: #FF0000; padding: 20px; width: 200px; height: 150px; }
  • 4. Value & Description:  Border-radius Use this element for setting four boarder radius property  Border-top-left-radius Use this element for setting the boarder of top left corner  Border-top-right-radius Use this element for setting the boarder of top right corner  Border-bottom-right-radius Use this element for setting the boarder of bottom right corner  Border-bottom-left-radius Use this element for setting the boarder of bottom left corner
  • 5. Example: <html> <head> <style> #rcorners1 { border-radius: 25px; background: #8AC007; padding: 20px; width: 200px; height: 150px; }
  • 6. #rcorners2 { border-radius: 25px; border: 2px solid #8AC007; padding: 20px; width: 200px; height: 150px; } </style> </head> <body>
  • 7. <p id = "rcorners1">Rounded corners!</p> <p id = "rcorners2">Rounded corners!</p> </body> </html> Result: Rounded Corners!
  • 8. Each Corner Property: The border-radius property can have from one to four values. Here are the rules: Four values - border-radius: 15px 50px 30px 5px; First value applies to top-left corner. Second value applies to top-right corner. Third value applies to bottom-right corner. Fourth value applies to bottom-left corner.
  • 9. Example: <html> <head> <style> #rcorners1 { border-radius: 15px 50px 30px 5px; background: #a44170; padding: 20px; width: 100px; height: 100px; }
  • 10. #rcorners2 { border-radius: 15px 50px 30px; background: #a44170; padding: 20px; width: 100px; height: 100px; } #rcorners3 { border-radius: 15px 50px; background: #a44170; padding: 20px;
  • 11. width: 100px; height: 100px; } </style> </head> <body> <p id = "rcorners1"></p> <p id = "rcorners2"></p> <p id = "rcorners3"></p> </body> <body>
  • 13. CSS Colors: Colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values. Color Names: In HTML, a color can be specified by using a color name:
  • 14. Background Color:  You can set the background color for HTML elements: Example: <h1 style="background-color : Dodger Blue ;"> Hello World</h1>
  • 15. Text Color: You can set the color of text: Hello World Example: <h1 style="color:Tomato;">Hello World</h1> Border color: You can set the color of borders:
  • 16. Example: <h1 style="border:2px solid Tomato;">Hello World</h1> <h1 style="border:2px solid DodgerBlue;">Hello World</h1> Color Values:  In HTML, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values. RGB Value:  In HTML, a color can be specified as an RGB value, using this formula.  Each parameter (red, green, and blue) defines the intensity of the color between 0 and 255.
  • 17. For example, rgb (255, 0, 0) is displayed as red, because red is set to its highest value (255) and the others are set to 0.
  • 18. HEX Value: In HTML, a color can be specified using a hexadecimal value in the form: #rrggbb Where rr (red), gg (green) and bb (blue) are hexadecimal values between 00 and ff (same as decimal 0-255). For example, #ff0000 is displayed as red, because red is set to its highest value (ff) and the others are set to the lowest value (00).
  • 19. HSL Value: In HTML, a color can be specified using hue, saturation, and lightness (HSL) in the form: HSL(hue, saturation, lightness) Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue. Saturation is a percentage value, 0% means a shade of gray, and 100% is the full color. Lightness is also a percentage, 0% is black, 50% is neither light or dark, 100% is white
  • 20. RGBA Value: RGBA color values are an extension of RGB color values with an alpha channel - which specifies the opacity for a color. An RGBA color value is specified with: rgba (red, green, blue, alpha) The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (not transparent at all).
  • 21. HSLA Value: An HSLA color value is specified with: hsla(hue, saturation, lightness, alpha) The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (not transparent at all).
  • 22. BOX SHADOW: #box-shadow defines the shadow of the element. default box-shadow: none; Removes any box-shadow that was applied to the element. box-shadow: 2px 6px; You need at least two values:  the first is the horizontal offset  the second is the vertical offset HELLO WORLD
  • 23.  The shadow color will be inherited from the text color. box-shadow: 2px 6px red;  You can define a color as the last value.  As with colors, you can use color names, hexadecimal, rgb, hsl... box-shadow: 2px 4px 10px red;
  • 24. The optional third value defines the blur of the shadow. The color will be diffused across 10px in this example, from opaque to transparent. box-shadow: 2px 4px 10px 4px red; The optional fourth value defines the spread of the shadow. The spread defines how much the shadow should grow: it enhances the shadow.
  • 25. INTRODUCTION TO THE DOCUMENT OBJECT MODEL The Document Object Model (DOM) is a programming interface for HTML and XML(Extensible markup language) documents. It defines the logical structure of documents and the way a document is accessed and manipulated. DOM is a way to represent the webpage in the structured hierarchical way so that it will become easier for programmers and users to glide through the document. With DOM, we can easily access and manipulate tags, IDs, classes, Attributes or Elements using commands or methods provided by Document object.
  • 26. Structure of DOM: DOM can be thought of as Tree or Forest(more than one tree). The term structure model is sometimes used to describe the tree-like representation of a document. One important property of DOM structure models is structural isomorphism: if any two DOM implementations are used to create a representation of the same document, they will create the same structure model, with precisely the same objects and relationships.
  • 27. Properties of DOM:  Window Object: Window Object is at always at top of hierarchy.  Document object: When HTML document is loaded into a window, it becomes a document object.  Form Object: It is represented by form tags.  Link Objects: It is represented by link tags.  Anchor Objects: It is represented by a href tags.  Form Control Elements:: Form can have many control elements such as text fields, buttons, radio buttons, and checkboxes, etc.
  • 28. Methods of Document Object: write(“string”): writes the given string on the document. getElementById(): returns the element having the given id value. getElementsByName(): returns all the elements having the given name value. getElementsByTagName(): returns all the elements having the given tag name. getElementsByClassName(): returns all the elements having the given class name.
  • 29. History of DOM: The history of the Document Object Model is intertwined with the history of the “browser wars" of the late 1990s between Netscape Navigator and Microsoft Internet Explorer as well as with that of JavaScript and Jscript, the first scripting languages to be widely implemented in the JavaScript engines of web browsers.
  • 30. Levels of DOM: Level 0: Provides low-level set of interfaces. Level 1: DOM level 1 can be described in two parts: CORE and HTML. CORE provides a low-level interfaces that can be used to represent any structured document. HTML provides high-level interfaces that can be used to represent HTML document. Level 2 : consists of six specifications: CORE2, VIEWS, EVENTS, STYLE, TRAVERSAL and RANGE.  CORE2: extends functionality of CORE specified by DOM level 1.
  • 31. VIEWS: views allows programs to dynamically access and manipulate content of document. EVENTS: Events are scripts that is either executed by browser when user reacts to web page. STYLE: allows programs to dynamically access and manipulate content of style sheets. TRAVERSAL: allows programs to dynamically traverse the document. RANGE: allows programs to dynamically identify a range of content in document.
  • 32. Level 3: consists of five different specifications: CORE3, LOAD and SAVE, VALIDATION, EVENTS, and XPATH.  CORE3: extends functionality of CORE specified by DOM level 2.  LOAD and SAVE: allows program to dynamically load the content of XML document into DOM document and save the DOM Document into XML document by serialization.  VALIDATION: allows program to dynamically update the content and structure of document while ensuring document remains valid.  EVENTS: extends functionality of Events specified by DOM Level 2.  XPATH: XPATH is a path language that can be used to access DOM tree.