SlideShare a Scribd company logo
BIT05206 
DHTML
DHTML 
• DHTML is a combination of technologies 
used to create dynamic and interactive Web 
sites. 
– HTML - For creating text and image links and other 
page elements. 
– CSS - Style Sheets for further formatting of text and 
html plus other added features such as positioning 
and layering content. 
– JavaScript - The programming language that allows 
you to accesses and dynamically control the 
individual properties of both HTML and Style Sheets
Why DHTML 
• With DHTML you can create: 
– Animation 
– Pop-up menus 
– Inclusion of Web page content from external 
data sources 
– Elements that can be dragged and dropped 
within the Web page
HTML (Hyper Text Markup 
Language) 
• An HTML file is a text file containing small 
markup tags 
• The markup tags tell the Web browser how to 
display the page 
• An HTML file must have an htm or html file 
extension 
• An HTML file can be created using a simple 
text editor
<html> 
<head> 
HTML (cont.) 
<title>BIT05206-Lab1</title> 
</head> 
<body> 
This is Our First Test. 
<I>This text is Italic</I> 
gives technical information 
about the document, and 
specifies its title. Nothing 
that appears in the header 
section will be displayed by 
the browser. 
</body> 
</html> 
• Most tags have opening and closing tags: 
<html> </html>, <head> </head> 
• Only some don’t have it: <br>, <hr>, <img>
HTML
HTML 
• Some tags have attribute such as: 
<body bgcolor = “green"> 
– Attributes always come in name/value 
pairs like this: name="value". 
• Find out more of HTML Tags and their 
attributes 
• Special treatment for some characters 
&nbsp, &quot
<html> 
<head> 
<title>BIT05206 Lab1</title> 
</head> 
<body bgcolor =Red> 
<p align =center> <B> User Interface Design </B></p> 
<hr> 
<p>[1] Course Notes<br> 
<a href="http://www.ucc.ac.tz"> BIT05206</a> 
</p> 
</body> 
</html> 
HTML
HTML
Try it <body> 
<p>Student Marks<br> </p> 
<table width="100%" border="2"> 
<tr bgcolor="green"> 
<td>Student Number</td> 
<td>Student First Name </td> 
<td>Mark</td> 
</tr> 
<tr> 
<td>10</td> 
<td>Lily</td> 
<td>A+</td> 
</tr> 
<tr> 
<td>20</td> 
<td>Den</td> 
<td>C+</td> 
</tr> 
</table> 
</body>
HTML
CSS 
• CSS stands for Cascading Style 
Sheets 
• Styles define how to display HTML 
elements 
• Styles are normally stored in Style 
Sheets
CSS 
• External Style Sheets can save you a lot of work 
• External Style Sheets are stored in CSS files 
• Multiple style definitions will cascade into one 
• Why? Modularity  simplicity, usability, 
reusability, etc
CSS 
• Syntax 
– selector {property: value} 
• The selector is normally the HTML element/tag 
• the property is the attribute you wish to change, 
• and each property can take a value. 
• Three Method to specify 
– Tag Modfier 
– body {color: black} 
– p { text-align: center; color: black; 
font-family: arial }
CSS 
• Three Method to specify 
– Class Modifier 
• With the class selector you can define different 
styles for the same type of HTML element 
.center {text-align: center} 
<h1 class="center"> 
This heading will be center-aligned 
</h1> 
– The id Selector 
• With the id selector you can define the same style 
for different HTML elements 
• #green {color: green} 
<h1 id="green">Hello </h1> <p id="green">Some text</p>
CSS (cont.) 
• How to Insert a Style Sheet 
– Internal style 
• An internal style sheet should be used when a 
single document has a unique style. 
• You define internal styles in the head section by 
using the <style> 
– Inline Styles: Many of the Advantages are 
lost
CSS Example 
<Html> 
<head> 
<style type="text/css"> 
hr {color: green} 
p {margin-left: 20px} 
body {background-color:yellow} 
</style> 
</head> 
<body> 
<h1 style ="color =blue; text-align=center"> BIT05206 </h1> 
<hr> 
<p>DHTML tutorial</p> 
</body> 
</Html> 
Tag Modifier 
Inline
CSS Example
CSS (cont.) 
• How to Insert a Style Sheet 
– External Style Sheet ideal when the style is 
applied to many pages 
.css text 
file 
<head> 
<link rel="stylesheet" type="text/css“ href="mystyle.css" /> 
</head>
CSS example
CSS 
• Click for more details: 
CSS Tutorial.
JavaScript Introduction 
• JavaScript was designed to add interactivity to 
HTML pages 
• JavaScript is a scripting language (a scripting 
language is a lightweight programming 
language) 
• JavaScript embedded in a web browser 
connects through interfaces called Document 
Object Models (DOMs) to applications server-side 
and client-side. This allows interactivity and 
dynamicity.
JavaScript Introduction 
• A JavaScript is usually embedded directly into 
HTML pages 
• JavaScript is an interpreted language (means 
that scripts execute without preliminary 
compilation)
How to Put a JavaScript Into an 
HTML Page 
• Scripts in the body section: 
– Scripts to be executed when the 
page loads go in the body 
section.. 
<html> 
<body> 
<script type="text/javascript"> 
document.write("Hello World!") 
</script> 
</body> 
</html>
Java Script 
• Scripts in the head section: 
– Scripts to be executed when they are called, 
or when an event is triggered, go in the head 
section. 
<html> 
<head> 
<script type="text/javascript"> 
…….. 
</script> 
</head> 
</html>
Java Script 
• External JavaScript 
– Save the external JavaScript file with a .js file 
extension 
<script src="xxx.js"> </script> 
• Deals with web elements using Java command, 
– If statement 
– Variables 
– Loops 
– …….
JavaScript Examples 
<Html> 
<body> 
<script type="text/javascript"> 
var d=new Date() 
var timeh=d.getHours() 
var timem=d.getMinutes() 
document.bgColor=“red” 
document.write("the time is: ") 
document.write(timeh) 
document.write(":") 
document.write(timem) 
if (timeh>=12) 
document.write(" PM") 
else 
document.write(" AM") 
</script> 
</body>
JavaScript – function 
<html> 
<head> 
<script type="text/javascript"> 
function message() 
{ 
alert("Welcome guest!") 
} 
</script> 
</head> 
<body> 
<input type="button" value="View message" 
onclick="message()" /> 
</body> 
</html>
Java Script and DOM 
<html> 
<body> 
<h1 id="header">My header</h1> 
<script type="text/javascript"> 
document.getElementById('header').style.color="red" 
</script> 
<p><b>Note:</b> It is the script that changes the style of the element!</p> 
</body> 
</html>
More About DOM 
http://www.w3schools.com/htmldom/default.asp
Example Try it 
<html> 
<head> 
<script type="text/javascript"> 
function hide() 
{ 
document.getElementById('txt1').style.visibility ='hidden' 
} 
function show() 
{ 
document.getElementById('txt1').style.visibility = 'visible' 
} 
function format() 
{ 
document.getElementById('txt1').style.color = 'red' 
document.getElementById('txt1').style.fontSize = '20' 
document.getElementById('txt1').style.textAlign ="center" 
document.bgColor='green' 
}
Example (Cont) 
function reset() 
{ 
document.getElementById('txt1').style.color = 'black' 
document.getElementById('txt1').style.fontSize = '14' 
document.getElementById('txt1').style.visibility = 'visible' 
document.bgColor='white' 
document.getElementById('txt1').style.textAlign ="left" 
} 
</script 
</head> 
<body> 
<input type="text" id= "txt1"> 
<input type="button" value="Hide" onclick="hide()"> 
<input type="button" value="show" onclick="show()"> 
<input type="button" value="format" onclick="format()"> 
<input type="button" value="Reset" onclick="reset()"> 
</body> 
</html>
Next: go through all the 
examples and try them

More Related Content

What's hot

DHTML - Dynamic HTML
DHTML - Dynamic HTMLDHTML - Dynamic HTML
DHTML - Dynamic HTML
Reem Alattas
 
Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
Himanshu Kumar
 
Html and dhtml
Html and dhtmlHtml and dhtml
Html and dhtml
Laxmihhar Basti
 
Introduction to DOM
Introduction to DOMIntroduction to DOM
Introduction to DOM
Daniel Bragais
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Modelchomas kandar
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
Sukrit Gupta
 
Understanding the dom by Benedict Ayiko
Understanding the dom by Benedict AyikoUnderstanding the dom by Benedict Ayiko
Understanding the dom by Benedict Ayiko
Damalie Wasukira
 
Web Design L1 - Untagling the Web
Web Design L1 - Untagling the WebWeb Design L1 - Untagling the Web
Web Design L1 - Untagling the Web
mykella
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
Mayur Mudgal
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
rahul kundu
 
Lab#2 overview of html
Lab#2 overview of htmlLab#2 overview of html
Lab#2 overview of html
Yaowaluck Promdee
 
Hushang Gaikwad
Hushang GaikwadHushang Gaikwad
Hushang Gaikwad
Hushnag Gaikwad
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
Mindy McAdams
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data bindingPhúc Đỗ
 
The Document Object Model
The Document Object ModelThe Document Object Model
The Document Object Model
Khou Suylong
 
11 Quiz related to HTML, CSS, JS and WP
11 Quiz related to HTML, CSS, JS and WP11 Quiz related to HTML, CSS, JS and WP
11 Quiz related to HTML, CSS, JS and WP
Rashna Maharjan
 

What's hot (19)

DHTML - Dynamic HTML
DHTML - Dynamic HTMLDHTML - Dynamic HTML
DHTML - Dynamic HTML
 
Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
 
Html and dhtml
Html and dhtmlHtml and dhtml
Html and dhtml
 
Introduction to DOM
Introduction to DOMIntroduction to DOM
Introduction to DOM
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Dom structure
Dom structureDom structure
Dom structure
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
Understanding the dom by Benedict Ayiko
Understanding the dom by Benedict AyikoUnderstanding the dom by Benedict Ayiko
Understanding the dom by Benedict Ayiko
 
Web Design L1 - Untagling the Web
Web Design L1 - Untagling the WebWeb Design L1 - Untagling the Web
Web Design L1 - Untagling the Web
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
 
Lab#2 overview of html
Lab#2 overview of htmlLab#2 overview of html
Lab#2 overview of html
 
Hushang Gaikwad
Hushang GaikwadHushang Gaikwad
Hushang Gaikwad
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
 
Introduction css
Introduction cssIntroduction css
Introduction css
 
Xhtml
XhtmlXhtml
Xhtml
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
 
The Document Object Model
The Document Object ModelThe Document Object Model
The Document Object Model
 
11 Quiz related to HTML, CSS, JS and WP
11 Quiz related to HTML, CSS, JS and WP11 Quiz related to HTML, CSS, JS and WP
11 Quiz related to HTML, CSS, JS and WP
 

Similar to Dhtml chapter2

Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
HTML CSS by Anubhav Singh
HTML CSS by Anubhav SinghHTML CSS by Anubhav Singh
HTML CSS by Anubhav Singh
Anubhav659
 
Html
HtmlHtml
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Ahsan Rahim
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4Amanda Case
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company india
Jignesh Aakoliya
 
Intro to CSS_APEC CascadingStyleSheets.pptx
Intro to CSS_APEC CascadingStyleSheets.pptxIntro to CSS_APEC CascadingStyleSheets.pptx
Intro to CSS_APEC CascadingStyleSheets.pptx
stephysnscphysio
 
Hypertext markup language(html)
Hypertext markup language(html)Hypertext markup language(html)
Hypertext markup language(html)Jayson Cortez
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmMaria S Rivera
 
Html
HtmlHtml
Additional HTML
Additional HTML Additional HTML
Additional HTML
Doeun KOCH
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
Dipen Parmar
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
BITM3730 9-12.pptx
BITM3730 9-12.pptxBITM3730 9-12.pptx
BITM3730 9-12.pptx
MattMarino13
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
xu fag
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
Nikita Garg
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
Minea Chem
 

Similar to Dhtml chapter2 (20)

Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
HTML CSS by Anubhav Singh
HTML CSS by Anubhav SinghHTML CSS by Anubhav Singh
HTML CSS by Anubhav Singh
 
Html
HtmlHtml
Html
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company india
 
Intro to CSS_APEC CascadingStyleSheets.pptx
Intro to CSS_APEC CascadingStyleSheets.pptxIntro to CSS_APEC CascadingStyleSheets.pptx
Intro to CSS_APEC CascadingStyleSheets.pptx
 
Hypertext markup language(html)
Hypertext markup language(html)Hypertext markup language(html)
Hypertext markup language(html)
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
 
Html
HtmlHtml
Html
 
Additional HTML
Additional HTML Additional HTML
Additional HTML
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
BITM3730 9-12.pptx
BITM3730 9-12.pptxBITM3730 9-12.pptx
BITM3730 9-12.pptx
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 

More from FLYMAN TECHNOLOGY LIMITED

Flyman Technology Limited Introduction Presentation
Flyman Technology Limited Introduction PresentationFlyman Technology Limited Introduction Presentation
Flyman Technology Limited Introduction Presentation
FLYMAN TECHNOLOGY LIMITED
 
Flyman Technology Limited (Mzumbe University Tanzania)
Flyman Technology Limited (Mzumbe University Tanzania)Flyman Technology Limited (Mzumbe University Tanzania)
Flyman Technology Limited (Mzumbe University Tanzania)
FLYMAN TECHNOLOGY LIMITED
 
Flyman Technology Limited Tanzania
Flyman Technology Limited TanzaniaFlyman Technology Limited Tanzania
Flyman Technology Limited Tanzania
FLYMAN TECHNOLOGY LIMITED
 
Uuzaji wa mazao ya kuku wa asili
Uuzaji wa mazao ya kuku wa asiliUuzaji wa mazao ya kuku wa asili
Uuzaji wa mazao ya kuku wa asili
FLYMAN TECHNOLOGY LIMITED
 
Entrepreneurship manual BIT
Entrepreneurship manual BITEntrepreneurship manual BIT
Entrepreneurship manual BIT
FLYMAN TECHNOLOGY LIMITED
 
introduction to the document object model- Dom chapter5
introduction to the document object model- Dom chapter5introduction to the document object model- Dom chapter5
introduction to the document object model- Dom chapter5
FLYMAN TECHNOLOGY LIMITED
 
internet intranet and extranet
internet intranet and extranetinternet intranet and extranet
internet intranet and extranet
FLYMAN TECHNOLOGY LIMITED
 
Marketing management
Marketing managementMarketing management
Marketing management
FLYMAN TECHNOLOGY LIMITED
 
Marketing communications
Marketing communicationsMarketing communications
Marketing communications
FLYMAN TECHNOLOGY LIMITED
 
Marketing analysis
Marketing analysisMarketing analysis
Marketing analysis
FLYMAN TECHNOLOGY LIMITED
 
Consumer markets
Consumer marketsConsumer markets
Consumer markets
FLYMAN TECHNOLOGY LIMITED
 
ENTREPRENEURSHIP MANUAL
ENTREPRENEURSHIP MANUALENTREPRENEURSHIP MANUAL
ENTREPRENEURSHIP MANUAL
FLYMAN TECHNOLOGY LIMITED
 
THINGS NOT TO DO IN A JOB INTERVIEW!
THINGS NOT TO DO IN A JOB INTERVIEW!THINGS NOT TO DO IN A JOB INTERVIEW!
THINGS NOT TO DO IN A JOB INTERVIEW!
FLYMAN TECHNOLOGY LIMITED
 

More from FLYMAN TECHNOLOGY LIMITED (20)

Flyman Technology Limited Introduction Presentation
Flyman Technology Limited Introduction PresentationFlyman Technology Limited Introduction Presentation
Flyman Technology Limited Introduction Presentation
 
Flyman Technology Limited (Mzumbe University Tanzania)
Flyman Technology Limited (Mzumbe University Tanzania)Flyman Technology Limited (Mzumbe University Tanzania)
Flyman Technology Limited (Mzumbe University Tanzania)
 
Flyman Technology Limited Tanzania
Flyman Technology Limited TanzaniaFlyman Technology Limited Tanzania
Flyman Technology Limited Tanzania
 
Saadani national park 2015
Saadani national park 2015Saadani national park 2015
Saadani national park 2015
 
Uuzaji wa mazao ya kuku wa asili
Uuzaji wa mazao ya kuku wa asiliUuzaji wa mazao ya kuku wa asili
Uuzaji wa mazao ya kuku wa asili
 
Entrepreneurship manual BIT
Entrepreneurship manual BITEntrepreneurship manual BIT
Entrepreneurship manual BIT
 
Security chapter6
Security chapter6Security chapter6
Security chapter6
 
introduction to the document object model- Dom chapter5
introduction to the document object model- Dom chapter5introduction to the document object model- Dom chapter5
introduction to the document object model- Dom chapter5
 
internet intranet and extranet
internet intranet and extranetinternet intranet and extranet
internet intranet and extranet
 
introduction to web application development
introduction to web application developmentintroduction to web application development
introduction to web application development
 
Marketing management
Marketing managementMarketing management
Marketing management
 
Marketing communications
Marketing communicationsMarketing communications
Marketing communications
 
Marketing analysis
Marketing analysisMarketing analysis
Marketing analysis
 
Market segmentation
Market segmentationMarket segmentation
Market segmentation
 
Consumer markets
Consumer marketsConsumer markets
Consumer markets
 
ENTREPRENEURSHIP MANUAL
ENTREPRENEURSHIP MANUALENTREPRENEURSHIP MANUAL
ENTREPRENEURSHIP MANUAL
 
THINGS NOT TO DO IN A JOB INTERVIEW!
THINGS NOT TO DO IN A JOB INTERVIEW!THINGS NOT TO DO IN A JOB INTERVIEW!
THINGS NOT TO DO IN A JOB INTERVIEW!
 
TAXATION CONCEPTS
TAXATION CONCEPTSTAXATION CONCEPTS
TAXATION CONCEPTS
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
SYSTEM MODELLING
SYSTEM MODELLINGSYSTEM MODELLING
SYSTEM MODELLING
 

Recently uploaded

Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 

Recently uploaded (20)

Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 

Dhtml chapter2

  • 2. DHTML • DHTML is a combination of technologies used to create dynamic and interactive Web sites. – HTML - For creating text and image links and other page elements. – CSS - Style Sheets for further formatting of text and html plus other added features such as positioning and layering content. – JavaScript - The programming language that allows you to accesses and dynamically control the individual properties of both HTML and Style Sheets
  • 3. Why DHTML • With DHTML you can create: – Animation – Pop-up menus – Inclusion of Web page content from external data sources – Elements that can be dragged and dropped within the Web page
  • 4.
  • 5. HTML (Hyper Text Markup Language) • An HTML file is a text file containing small markup tags • The markup tags tell the Web browser how to display the page • An HTML file must have an htm or html file extension • An HTML file can be created using a simple text editor
  • 6. <html> <head> HTML (cont.) <title>BIT05206-Lab1</title> </head> <body> This is Our First Test. <I>This text is Italic</I> gives technical information about the document, and specifies its title. Nothing that appears in the header section will be displayed by the browser. </body> </html> • Most tags have opening and closing tags: <html> </html>, <head> </head> • Only some don’t have it: <br>, <hr>, <img>
  • 8. HTML • Some tags have attribute such as: <body bgcolor = “green"> – Attributes always come in name/value pairs like this: name="value". • Find out more of HTML Tags and their attributes • Special treatment for some characters &nbsp, &quot
  • 9. <html> <head> <title>BIT05206 Lab1</title> </head> <body bgcolor =Red> <p align =center> <B> User Interface Design </B></p> <hr> <p>[1] Course Notes<br> <a href="http://www.ucc.ac.tz"> BIT05206</a> </p> </body> </html> HTML
  • 10. HTML
  • 11. Try it <body> <p>Student Marks<br> </p> <table width="100%" border="2"> <tr bgcolor="green"> <td>Student Number</td> <td>Student First Name </td> <td>Mark</td> </tr> <tr> <td>10</td> <td>Lily</td> <td>A+</td> </tr> <tr> <td>20</td> <td>Den</td> <td>C+</td> </tr> </table> </body>
  • 12. HTML
  • 13.
  • 14. CSS • CSS stands for Cascading Style Sheets • Styles define how to display HTML elements • Styles are normally stored in Style Sheets
  • 15. CSS • External Style Sheets can save you a lot of work • External Style Sheets are stored in CSS files • Multiple style definitions will cascade into one • Why? Modularity  simplicity, usability, reusability, etc
  • 16. CSS • Syntax – selector {property: value} • The selector is normally the HTML element/tag • the property is the attribute you wish to change, • and each property can take a value. • Three Method to specify – Tag Modfier – body {color: black} – p { text-align: center; color: black; font-family: arial }
  • 17. CSS • Three Method to specify – Class Modifier • With the class selector you can define different styles for the same type of HTML element .center {text-align: center} <h1 class="center"> This heading will be center-aligned </h1> – The id Selector • With the id selector you can define the same style for different HTML elements • #green {color: green} <h1 id="green">Hello </h1> <p id="green">Some text</p>
  • 18. CSS (cont.) • How to Insert a Style Sheet – Internal style • An internal style sheet should be used when a single document has a unique style. • You define internal styles in the head section by using the <style> – Inline Styles: Many of the Advantages are lost
  • 19. CSS Example <Html> <head> <style type="text/css"> hr {color: green} p {margin-left: 20px} body {background-color:yellow} </style> </head> <body> <h1 style ="color =blue; text-align=center"> BIT05206 </h1> <hr> <p>DHTML tutorial</p> </body> </Html> Tag Modifier Inline
  • 21. CSS (cont.) • How to Insert a Style Sheet – External Style Sheet ideal when the style is applied to many pages .css text file <head> <link rel="stylesheet" type="text/css“ href="mystyle.css" /> </head>
  • 23. CSS • Click for more details: CSS Tutorial.
  • 24.
  • 25. JavaScript Introduction • JavaScript was designed to add interactivity to HTML pages • JavaScript is a scripting language (a scripting language is a lightweight programming language) • JavaScript embedded in a web browser connects through interfaces called Document Object Models (DOMs) to applications server-side and client-side. This allows interactivity and dynamicity.
  • 26. JavaScript Introduction • A JavaScript is usually embedded directly into HTML pages • JavaScript is an interpreted language (means that scripts execute without preliminary compilation)
  • 27. How to Put a JavaScript Into an HTML Page • Scripts in the body section: – Scripts to be executed when the page loads go in the body section.. <html> <body> <script type="text/javascript"> document.write("Hello World!") </script> </body> </html>
  • 28. Java Script • Scripts in the head section: – Scripts to be executed when they are called, or when an event is triggered, go in the head section. <html> <head> <script type="text/javascript"> …….. </script> </head> </html>
  • 29. Java Script • External JavaScript – Save the external JavaScript file with a .js file extension <script src="xxx.js"> </script> • Deals with web elements using Java command, – If statement – Variables – Loops – …….
  • 30. JavaScript Examples <Html> <body> <script type="text/javascript"> var d=new Date() var timeh=d.getHours() var timem=d.getMinutes() document.bgColor=“red” document.write("the time is: ") document.write(timeh) document.write(":") document.write(timem) if (timeh>=12) document.write(" PM") else document.write(" AM") </script> </body>
  • 31. JavaScript – function <html> <head> <script type="text/javascript"> function message() { alert("Welcome guest!") } </script> </head> <body> <input type="button" value="View message" onclick="message()" /> </body> </html>
  • 32. Java Script and DOM <html> <body> <h1 id="header">My header</h1> <script type="text/javascript"> document.getElementById('header').style.color="red" </script> <p><b>Note:</b> It is the script that changes the style of the element!</p> </body> </html>
  • 33. More About DOM http://www.w3schools.com/htmldom/default.asp
  • 34. Example Try it <html> <head> <script type="text/javascript"> function hide() { document.getElementById('txt1').style.visibility ='hidden' } function show() { document.getElementById('txt1').style.visibility = 'visible' } function format() { document.getElementById('txt1').style.color = 'red' document.getElementById('txt1').style.fontSize = '20' document.getElementById('txt1').style.textAlign ="center" document.bgColor='green' }
  • 35. Example (Cont) function reset() { document.getElementById('txt1').style.color = 'black' document.getElementById('txt1').style.fontSize = '14' document.getElementById('txt1').style.visibility = 'visible' document.bgColor='white' document.getElementById('txt1').style.textAlign ="left" } </script </head> <body> <input type="text" id= "txt1"> <input type="button" value="Hide" onclick="hide()"> <input type="button" value="show" onclick="show()"> <input type="button" value="format" onclick="format()"> <input type="button" value="Reset" onclick="reset()"> </body> </html>
  • 36. Next: go through all the examples and try them