SlideShare a Scribd company logo
Pemrograman Internet Dasar
BEI HARIRA IRAWAN, S.KOM, MM, M.KOM
Pemrograman Dasar
Dynamic HTML (DHTML)
3
Electronic Commerce;
Prof. Sheizaf Rafaeli
Dynamic HTML
• “Call us crazy, but we thought that the next big thing in
HTML wasn't going to be a new tag. “
• Netscape’s (DevEdge) guide to DHTML:
• http://developer.netscape.com/library/documentation/co
mmunicator/dynhtml/index.htm
• Microsoft’s Dynamic HTML Object Model:
• http://msdn.microsoft.com/msdn-
online/workshop/author/dom/domoverview.asp
• http://msdn.microsoft.com/workshop/author/om/doc_o
bject.asp
4
Electronic Commerce;
Prof. Sheizaf Rafaeli
DHTML: Dynamic HTML
• DHTML - still more a promise than a reality
• But certainly the shape of things to come
• a group of technologies that make Web pages more like miniature
software applications.
• If ever there was a Bleeding Edge
5
Electronic Commerce;
Prof. Sheizaf Rafaeli
Dynamic HTML
• Cross-Browser techniques are the holy grail
• WebMonkey’s tutorial, Nadav Savio, reconciles the two at:
• http://www.hotwired.com/webmonkey/html/97/31/index2a.html
• See C-Net builder’s tutorial at:
• http://www.cnet.com/Content/Builder/Authoring/Dhtml/?st.cn.fd.acol.bl
• See http://www.insidedhtml.com (book and website)
• And especially the 10K demos!
6
Electronic Commerce;
Prof. Sheizaf Rafaeli
DHTML components
• DOM:
the (DYNAMIC) Document Object Model
• CSS: Cascading Style Sheets
• Scripting languages: (like Javascript, Active-X, asp).
• And, depending on the browser, positioning, downloading fonts,
streaming content, “behaviors”, image transition, animated
backgrounds, etc.
7
Electronic Commerce;
Prof. Sheizaf Rafaeli
DOM: The Document object Model
• defines all items on a Web page as objects that can be manipulated.
• Otherwise, those elements are set, defined solely by the browser.
For example, the DOM makes it possible to identify
individual letters on a page as separate objects, and
then to assign specific qualities, such as color or size,
to each letter. In a sense, every letter becomes a tiny
Web page.
8
Electronic Commerce;
Prof. Sheizaf Rafaeli
Cascading Style Sheets
(CSS)
• Cascading Style Sheets are a simple way to control style without
compromising structure. They separate the style (visual design
elements) from the structure of documents.
• CSS is a form of HTML mark-up that provides web designers with
greater control over typography and spacing between elements on a
page.
9
Electronic Commerce;
Prof. Sheizaf Rafaeli
Cascading Style Sheets
(CSS)
•Changing the style can affect an entire document.
•Style sheets can be shared by multiple documents.
•So changing a style can affect an entire website
• WHAT ABOUT BROWSER COMPATIBILITY? CSS support is provided in
Internet Explorer 4+ and Netscape Navigator 4+. However, some
annoying browser inconsistencies continue
10
Electronic Commerce;
Prof. Sheizaf Rafaeli
Cascading Style Sheets
(CSS)
•CSS overrides the browser's default settings
• WHAT DOES CSS LOOK LIKE?
• The basic template for CSS code looks like this:
• Tag: {Property: value; Property2: value2}
• Tag - The element that will be affected
Property - What part of the selector will be affected
Value - How it will be affected
11
Electronic Commerce;
Prof. Sheizaf Rafaeli
Cascading Style Sheets
(CSS)
•CSS overrides the browser's default settings
•A CSS declaration has two parts:
• a property (”font-size” or “color”)
and a value ( “10pt” or "red").
•The basic syntax of a rule
• selector {property 1: value 1; property 2: value: 2}
•Examples:
• P {font-size: 10pt; color: red}
• H1 {FONT-SIZE: 9pt; FONT-WEIGHT: bold}
12
Electronic Commerce;
Prof. Sheizaf Rafaeli
CSS (3)
•Linked Global Local style sheet definitions.
• Local (inline) definitions replace the <FONT> definitions for typeface, font
size, color and margins, etc.
• Global (embedded) declarations are defined within <STYLE></STYLE> pairs,
usually in header.
• Linked (external) stylesheets use separate .css files, and link to them using :
• <link rel="stylesheet" href="style.css" type="text/css">
13
Electronic Commerce;
Prof. Sheizaf Rafaeli
Types of CSS
• Inline:
<h3 style="font-weight: bold">this will be bold</h3>
• Embedded :
<HEAD>
<STYLE TYPE="text/css">
<!- -
Tag: {Property: value; Property2: value2}
- ->
</STYLE>
</HEAD>
14
Electronic Commerce;
Prof. Sheizaf Rafaeli
Types of CSS
• External:
<HEAD>
<LINK REL="STYLESHEET" HREF="/PATH/SHEET.CSS
TYPE="TEXT/CSS">
</HEAD>
• The SHEET.CSS file would then contain all the style-sheet code which
would be applied to any page that calls it using the code above.
15
Electronic Commerce;
Prof. Sheizaf Rafaeli
Short, sweet example
• REMOVE UNDERLINES
- A Complete Style Sheet
•Do you want to remove underlines from links on
your site? Below is a short and sweet style-sheet
that will do just that, just copy and paste it between
the <head></head> tags on your site:
• <STYLE TYPE="text/css">
<!- -
a { text-decoration: none}
- ->
</STYLE>
16
Electronic Commerce;
Prof. Sheizaf Rafaeli
Full CSS example<html>
<style type="text/css">
<!--
h4 {font: 17pt Arial,Helvetica";
font-weight: bold;
color: maroon}
h2 {font: 15pt "Courier";
font-weight: bold; color: blue}
p {font: 12pt "Arial,Helvetica";
color: black}
-->
</style>
<body>
...
</body>
</html>
This is an example of the middle level
(“global” or “embedded” form of CSS.
Note how style code is hidden (as in
Javascript)
Note that fonts can be defined in
points, pixels, inches or centimeters.
17
Electronic Commerce;
Prof. Sheizaf Rafaeli
CSS (4)
• Cascading or Inheritance: When conflicting, the more specific stylesheet
overrides.
• Units of Measure: see:
• http://www.hotwired.com/webmonkey/stylesheets/reference/units.html
• Attributes: layers of Class, ID, Span and DIV.
• Properties: see:
• http://www.hotwired.com/webmonkey/stylesheets/reference/css_prope
rties.html
18
Electronic Commerce;
Prof. Sheizaf Rafaeli
CSS (5)
• W3C Cascading Style Sheets specs, at:
• http://www.w3.org/TR/WD-CSS2/
• Microsoft’s User’s Guide, at:
http://msdn.microsoft.com/workshop/author/css/css.asp
http://msdn.microsoft.com/workshop/design/layout/css-des.asp
• Examples, at:
• http://www.hotwired.com/webmonkey/stylesheets/reference/examples.html
• Microsoft’s CSS gallery, at: http://www.microsoft.com/truetype/
19
Electronic Commerce;
Prof. Sheizaf Rafaeli
CSS (6)
•http://www.htmlgoodies.com/beyond/classid.ht
ml
•http://www.w3.org/Style/css/
•http://www.htmlhelp.com/reference/css/
•http://www.canit.se/%7Egriffon/web/writing_styl
esheets.html
•http://builder.cnet.com/Authoring/CSS/ss02.htm
l

More Related Content

What's hot

CSS Frameworks
CSS FrameworksCSS Frameworks
CSS Frameworks
Mario Hernandez
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
Thinkful
 
Css few small tips and information
Css few small tips and informationCss few small tips and information
Css few small tips and information
Naga Harish M
 
An Introduction to CSS Frameworks
An Introduction to CSS FrameworksAn Introduction to CSS Frameworks
An Introduction to CSS Frameworks
Adrian Westlake
 
Universal CSS - Betsy Granger - ebookcraft 2018
Universal CSS - Betsy Granger - ebookcraft 2018Universal CSS - Betsy Granger - ebookcraft 2018
Universal CSS - Betsy Granger - ebookcraft 2018
BookNet Canada
 
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
BookNet Canada
 
Html5
Html5Html5
Bayt training
Bayt trainingBayt training
Bayt training
Ghazi Alhowari
 
Get the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEXGet the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEX
Jorge Rimblas
 
SoCal Code Camp 2011 - ASP.NET 4.5
SoCal Code Camp 2011 - ASP.NET 4.5SoCal Code Camp 2011 - ASP.NET 4.5
SoCal Code Camp 2011 - ASP.NET 4.5
Jon Galloway
 
Bringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePointBringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePoint
Chad Schroeder
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18
TJ Stalcup
 
The web context
The web contextThe web context
The web context
Dan Phiffer
 
SharePoint & jQuery Guide - SPSTC 5/18/2013
SharePoint & jQuery Guide - SPSTC 5/18/2013 SharePoint & jQuery Guide - SPSTC 5/18/2013
SharePoint & jQuery Guide - SPSTC 5/18/2013
Mark Rackley
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
Sukrit Gupta
 
Session 1 branding and site development in SharePoint
Session 1   branding and site development in SharePointSession 1   branding and site development in SharePoint
Session 1 branding and site development in SharePoint
Khoa Quach
 
Careers in SharePoint, Office 365, Azure & Power BI
Careers in SharePoint, Office 365, Azure & Power BICareers in SharePoint, Office 365, Azure & Power BI
Careers in SharePoint, Office 365, Azure & Power BI
Matthew J. Bailey , MCT
 
Responsive Web Design with HTML5 and CSS3
Responsive Web Design with HTML5 and CSS3Responsive Web Design with HTML5 and CSS3
Responsive Web Design with HTML5 and CSS3
Kannika Kong
 
Web Development
Web DevelopmentWeb Development
Web Development
Harshdeep Singh
 
Sass - Getting Started with Sass!
Sass - Getting Started with Sass!Sass - Getting Started with Sass!
Sass - Getting Started with Sass!
Eric Sembrat
 

What's hot (20)

CSS Frameworks
CSS FrameworksCSS Frameworks
CSS Frameworks
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
 
Css few small tips and information
Css few small tips and informationCss few small tips and information
Css few small tips and information
 
An Introduction to CSS Frameworks
An Introduction to CSS FrameworksAn Introduction to CSS Frameworks
An Introduction to CSS Frameworks
 
Universal CSS - Betsy Granger - ebookcraft 2018
Universal CSS - Betsy Granger - ebookcraft 2018Universal CSS - Betsy Granger - ebookcraft 2018
Universal CSS - Betsy Granger - ebookcraft 2018
 
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
 
Html5
Html5Html5
Html5
 
Bayt training
Bayt trainingBayt training
Bayt training
 
Get the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEXGet the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEX
 
SoCal Code Camp 2011 - ASP.NET 4.5
SoCal Code Camp 2011 - ASP.NET 4.5SoCal Code Camp 2011 - ASP.NET 4.5
SoCal Code Camp 2011 - ASP.NET 4.5
 
Bringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePointBringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePoint
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18
 
The web context
The web contextThe web context
The web context
 
SharePoint & jQuery Guide - SPSTC 5/18/2013
SharePoint & jQuery Guide - SPSTC 5/18/2013 SharePoint & jQuery Guide - SPSTC 5/18/2013
SharePoint & jQuery Guide - SPSTC 5/18/2013
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
Session 1 branding and site development in SharePoint
Session 1   branding and site development in SharePointSession 1   branding and site development in SharePoint
Session 1 branding and site development in SharePoint
 
Careers in SharePoint, Office 365, Azure & Power BI
Careers in SharePoint, Office 365, Azure & Power BICareers in SharePoint, Office 365, Azure & Power BI
Careers in SharePoint, Office 365, Azure & Power BI
 
Responsive Web Design with HTML5 and CSS3
Responsive Web Design with HTML5 and CSS3Responsive Web Design with HTML5 and CSS3
Responsive Web Design with HTML5 and CSS3
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Sass - Getting Started with Sass!
Sass - Getting Started with Sass!Sass - Getting Started with Sass!
Sass - Getting Started with Sass!
 

Similar to Pertemuan 7

CSS Bootstrap.pdf
CSS  Bootstrap.pdfCSS  Bootstrap.pdf
CSS Bootstrap.pdf
Priyankapawar886284
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
Peter Kaizer
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSS
Zoe Gillenwater
 
Css home
Css   homeCss   home
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
Sanjoy Kr. Paul
 
DHTML
DHTMLDHTML
Front-End Frameworks: a quick overview
Front-End Frameworks: a quick overviewFront-End Frameworks: a quick overview
Front-End Frameworks: a quick overview
Diacode
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--dev
altsav
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
St. Petersburg College
 
Css
CssCss
Intro To Twitter Bootstrap
Intro To Twitter BootstrapIntro To Twitter Bootstrap
Intro To Twitter Bootstrap
Ahmed Haque
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
Tim Wright
 
ppt of MANOJ KUMAR.pptx
ppt of MANOJ KUMAR.pptxppt of MANOJ KUMAR.pptx
ppt of MANOJ KUMAR.pptx
ManojKumar297202
 
MCA Society Project Seminar.pptx
MCA Society Project Seminar.pptxMCA Society Project Seminar.pptx
MCA Society Project Seminar.pptx
Nomearod1
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
Stefan Bauer
 
Css
CssCss
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1
Aslam Najeebdeen
 

Similar to Pertemuan 7 (20)

CSS Bootstrap.pdf
CSS  Bootstrap.pdfCSS  Bootstrap.pdf
CSS Bootstrap.pdf
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSS
 
Css home
Css   homeCss   home
Css home
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
DHTML
DHTMLDHTML
DHTML
 
Front-End Frameworks: a quick overview
Front-End Frameworks: a quick overviewFront-End Frameworks: a quick overview
Front-End Frameworks: a quick overview
 
Presentation 1 Web--dev
Presentation 1 Web--devPresentation 1 Web--dev
Presentation 1 Web--dev
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Css
CssCss
Css
 
Intro To Twitter Bootstrap
Intro To Twitter BootstrapIntro To Twitter Bootstrap
Intro To Twitter Bootstrap
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
ppt of MANOJ KUMAR.pptx
ppt of MANOJ KUMAR.pptxppt of MANOJ KUMAR.pptx
ppt of MANOJ KUMAR.pptx
 
MCA Society Project Seminar.pptx
MCA Society Project Seminar.pptxMCA Society Project Seminar.pptx
MCA Society Project Seminar.pptx
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
 
Css
CssCss
Css
 
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1
 

More from beiharira

ALgoritma - Chapter 3
ALgoritma - Chapter 3ALgoritma - Chapter 3
ALgoritma - Chapter 3
beiharira
 
Algoritma - Chapter 2
Algoritma - Chapter 2Algoritma - Chapter 2
Algoritma - Chapter 2
beiharira
 
UAS - OOP
UAS - OOPUAS - OOP
UAS - OOP
beiharira
 
Algoritma - Chapter - 1
Algoritma - Chapter - 1Algoritma - Chapter - 1
Algoritma - Chapter - 1
beiharira
 
Sertifikat Dody
Sertifikat DodySertifikat Dody
Sertifikat Dody
beiharira
 
14. OOP Java
14. OOP Java14. OOP Java
14. OOP Java
beiharira
 
Proyek TI - Chapter 12
Proyek TI - Chapter 12Proyek TI - Chapter 12
Proyek TI - Chapter 12
beiharira
 
13. OOP Java
13. OOP Java13. OOP Java
13. OOP Java
beiharira
 
Jarkom
JarkomJarkom
Jarkom
beiharira
 
12. OOP Java
12. OOP Java12. OOP Java
12. OOP Java
beiharira
 
Proyek TI - Chapter 11
Proyek TI - Chapter 11Proyek TI - Chapter 11
Proyek TI - Chapter 11
beiharira
 
11. OOP Java
11. OOP Java11. OOP Java
11. OOP Java
beiharira
 
Proyek TI - Chapter 10
Proyek TI - Chapter 10Proyek TI - Chapter 10
Proyek TI - Chapter 10
beiharira
 
10. OOP - Java
10. OOP - Java10. OOP - Java
10. OOP - Java
beiharira
 
6. Proyek TI - Chapter 8
6. Proyek TI - Chapter 86. Proyek TI - Chapter 8
6. Proyek TI - Chapter 8
beiharira
 
9. Oop Java
9. Oop Java9. Oop Java
9. Oop Java
beiharira
 
5. Proyek TI - Chapter 7
5. Proyek TI - Chapter 75. Proyek TI - Chapter 7
5. Proyek TI - Chapter 7
beiharira
 
8. OOP Java
8. OOP Java8. OOP Java
8. OOP Java
beiharira
 
UTS - OOP
UTS - OOPUTS - OOP
UTS - OOP
beiharira
 
4. Proyek TI - Chapter 6
4. Proyek TI - Chapter 64. Proyek TI - Chapter 6
4. Proyek TI - Chapter 6
beiharira
 

More from beiharira (20)

ALgoritma - Chapter 3
ALgoritma - Chapter 3ALgoritma - Chapter 3
ALgoritma - Chapter 3
 
Algoritma - Chapter 2
Algoritma - Chapter 2Algoritma - Chapter 2
Algoritma - Chapter 2
 
UAS - OOP
UAS - OOPUAS - OOP
UAS - OOP
 
Algoritma - Chapter - 1
Algoritma - Chapter - 1Algoritma - Chapter - 1
Algoritma - Chapter - 1
 
Sertifikat Dody
Sertifikat DodySertifikat Dody
Sertifikat Dody
 
14. OOP Java
14. OOP Java14. OOP Java
14. OOP Java
 
Proyek TI - Chapter 12
Proyek TI - Chapter 12Proyek TI - Chapter 12
Proyek TI - Chapter 12
 
13. OOP Java
13. OOP Java13. OOP Java
13. OOP Java
 
Jarkom
JarkomJarkom
Jarkom
 
12. OOP Java
12. OOP Java12. OOP Java
12. OOP Java
 
Proyek TI - Chapter 11
Proyek TI - Chapter 11Proyek TI - Chapter 11
Proyek TI - Chapter 11
 
11. OOP Java
11. OOP Java11. OOP Java
11. OOP Java
 
Proyek TI - Chapter 10
Proyek TI - Chapter 10Proyek TI - Chapter 10
Proyek TI - Chapter 10
 
10. OOP - Java
10. OOP - Java10. OOP - Java
10. OOP - Java
 
6. Proyek TI - Chapter 8
6. Proyek TI - Chapter 86. Proyek TI - Chapter 8
6. Proyek TI - Chapter 8
 
9. Oop Java
9. Oop Java9. Oop Java
9. Oop Java
 
5. Proyek TI - Chapter 7
5. Proyek TI - Chapter 75. Proyek TI - Chapter 7
5. Proyek TI - Chapter 7
 
8. OOP Java
8. OOP Java8. OOP Java
8. OOP Java
 
UTS - OOP
UTS - OOPUTS - OOP
UTS - OOP
 
4. Proyek TI - Chapter 6
4. Proyek TI - Chapter 64. Proyek TI - Chapter 6
4. Proyek TI - Chapter 6
 

Recently uploaded

What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 

Recently uploaded (20)

What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 

Pertemuan 7

  • 1. Pemrograman Internet Dasar BEI HARIRA IRAWAN, S.KOM, MM, M.KOM
  • 3. 3 Electronic Commerce; Prof. Sheizaf Rafaeli Dynamic HTML • “Call us crazy, but we thought that the next big thing in HTML wasn't going to be a new tag. “ • Netscape’s (DevEdge) guide to DHTML: • http://developer.netscape.com/library/documentation/co mmunicator/dynhtml/index.htm • Microsoft’s Dynamic HTML Object Model: • http://msdn.microsoft.com/msdn- online/workshop/author/dom/domoverview.asp • http://msdn.microsoft.com/workshop/author/om/doc_o bject.asp
  • 4. 4 Electronic Commerce; Prof. Sheizaf Rafaeli DHTML: Dynamic HTML • DHTML - still more a promise than a reality • But certainly the shape of things to come • a group of technologies that make Web pages more like miniature software applications. • If ever there was a Bleeding Edge
  • 5. 5 Electronic Commerce; Prof. Sheizaf Rafaeli Dynamic HTML • Cross-Browser techniques are the holy grail • WebMonkey’s tutorial, Nadav Savio, reconciles the two at: • http://www.hotwired.com/webmonkey/html/97/31/index2a.html • See C-Net builder’s tutorial at: • http://www.cnet.com/Content/Builder/Authoring/Dhtml/?st.cn.fd.acol.bl • See http://www.insidedhtml.com (book and website) • And especially the 10K demos!
  • 6. 6 Electronic Commerce; Prof. Sheizaf Rafaeli DHTML components • DOM: the (DYNAMIC) Document Object Model • CSS: Cascading Style Sheets • Scripting languages: (like Javascript, Active-X, asp). • And, depending on the browser, positioning, downloading fonts, streaming content, “behaviors”, image transition, animated backgrounds, etc.
  • 7. 7 Electronic Commerce; Prof. Sheizaf Rafaeli DOM: The Document object Model • defines all items on a Web page as objects that can be manipulated. • Otherwise, those elements are set, defined solely by the browser. For example, the DOM makes it possible to identify individual letters on a page as separate objects, and then to assign specific qualities, such as color or size, to each letter. In a sense, every letter becomes a tiny Web page.
  • 8. 8 Electronic Commerce; Prof. Sheizaf Rafaeli Cascading Style Sheets (CSS) • Cascading Style Sheets are a simple way to control style without compromising structure. They separate the style (visual design elements) from the structure of documents. • CSS is a form of HTML mark-up that provides web designers with greater control over typography and spacing between elements on a page.
  • 9. 9 Electronic Commerce; Prof. Sheizaf Rafaeli Cascading Style Sheets (CSS) •Changing the style can affect an entire document. •Style sheets can be shared by multiple documents. •So changing a style can affect an entire website • WHAT ABOUT BROWSER COMPATIBILITY? CSS support is provided in Internet Explorer 4+ and Netscape Navigator 4+. However, some annoying browser inconsistencies continue
  • 10. 10 Electronic Commerce; Prof. Sheizaf Rafaeli Cascading Style Sheets (CSS) •CSS overrides the browser's default settings • WHAT DOES CSS LOOK LIKE? • The basic template for CSS code looks like this: • Tag: {Property: value; Property2: value2} • Tag - The element that will be affected Property - What part of the selector will be affected Value - How it will be affected
  • 11. 11 Electronic Commerce; Prof. Sheizaf Rafaeli Cascading Style Sheets (CSS) •CSS overrides the browser's default settings •A CSS declaration has two parts: • a property (”font-size” or “color”) and a value ( “10pt” or "red"). •The basic syntax of a rule • selector {property 1: value 1; property 2: value: 2} •Examples: • P {font-size: 10pt; color: red} • H1 {FONT-SIZE: 9pt; FONT-WEIGHT: bold}
  • 12. 12 Electronic Commerce; Prof. Sheizaf Rafaeli CSS (3) •Linked Global Local style sheet definitions. • Local (inline) definitions replace the <FONT> definitions for typeface, font size, color and margins, etc. • Global (embedded) declarations are defined within <STYLE></STYLE> pairs, usually in header. • Linked (external) stylesheets use separate .css files, and link to them using : • <link rel="stylesheet" href="style.css" type="text/css">
  • 13. 13 Electronic Commerce; Prof. Sheizaf Rafaeli Types of CSS • Inline: <h3 style="font-weight: bold">this will be bold</h3> • Embedded : <HEAD> <STYLE TYPE="text/css"> <!- - Tag: {Property: value; Property2: value2} - -> </STYLE> </HEAD>
  • 14. 14 Electronic Commerce; Prof. Sheizaf Rafaeli Types of CSS • External: <HEAD> <LINK REL="STYLESHEET" HREF="/PATH/SHEET.CSS TYPE="TEXT/CSS"> </HEAD> • The SHEET.CSS file would then contain all the style-sheet code which would be applied to any page that calls it using the code above.
  • 15. 15 Electronic Commerce; Prof. Sheizaf Rafaeli Short, sweet example • REMOVE UNDERLINES - A Complete Style Sheet •Do you want to remove underlines from links on your site? Below is a short and sweet style-sheet that will do just that, just copy and paste it between the <head></head> tags on your site: • <STYLE TYPE="text/css"> <!- - a { text-decoration: none} - -> </STYLE>
  • 16. 16 Electronic Commerce; Prof. Sheizaf Rafaeli Full CSS example<html> <style type="text/css"> <!-- h4 {font: 17pt Arial,Helvetica"; font-weight: bold; color: maroon} h2 {font: 15pt "Courier"; font-weight: bold; color: blue} p {font: 12pt "Arial,Helvetica"; color: black} --> </style> <body> ... </body> </html> This is an example of the middle level (“global” or “embedded” form of CSS. Note how style code is hidden (as in Javascript) Note that fonts can be defined in points, pixels, inches or centimeters.
  • 17. 17 Electronic Commerce; Prof. Sheizaf Rafaeli CSS (4) • Cascading or Inheritance: When conflicting, the more specific stylesheet overrides. • Units of Measure: see: • http://www.hotwired.com/webmonkey/stylesheets/reference/units.html • Attributes: layers of Class, ID, Span and DIV. • Properties: see: • http://www.hotwired.com/webmonkey/stylesheets/reference/css_prope rties.html
  • 18. 18 Electronic Commerce; Prof. Sheizaf Rafaeli CSS (5) • W3C Cascading Style Sheets specs, at: • http://www.w3.org/TR/WD-CSS2/ • Microsoft’s User’s Guide, at: http://msdn.microsoft.com/workshop/author/css/css.asp http://msdn.microsoft.com/workshop/design/layout/css-des.asp • Examples, at: • http://www.hotwired.com/webmonkey/stylesheets/reference/examples.html • Microsoft’s CSS gallery, at: http://www.microsoft.com/truetype/
  • 19. 19 Electronic Commerce; Prof. Sheizaf Rafaeli CSS (6) •http://www.htmlgoodies.com/beyond/classid.ht ml •http://www.w3.org/Style/css/ •http://www.htmlhelp.com/reference/css/ •http://www.canit.se/%7Egriffon/web/writing_styl esheets.html •http://builder.cnet.com/Authoring/CSS/ss02.htm l