SlideShare a Scribd company logo
1 of 35
Introduction to Web Technologies And Software
CMC
presented
by
CMC TATAKESWAR & CMC SINGUR
Presentation Overview
Look at main technological
components that make up modern
Web pages
HTML – HyperText Markup Language
CSS – Cascading Style Sheets
JavaScript – um, JavaScript
For each component
What it is/isn't, can/can't do
What kinds of constructs it comprises
How to use it in Web pages
How it interacts with other components
HTML Components
Documents
Document = page = HTM file = topic
Content (text, images)
Tags (display commands)
Other terms
Window: browser display window
URL: Uniform Resource Locator
Hyperlink: hypertext jump to a resource
Resource: URL, image, mailto, external
file
HTML Pages
HTML pages are tag-based
documents
Really plain ASCII text files
Don't look like documents they represent
Tags indicate how processing program
should display text and graphics
Designed to describe hypertext, not paper
Processed by browsers "on the fly"
Tags usually appear in pairs
Most have reasonable names or
mnemonics

That's How This...
<HTML>
<HEAD>
<BODY background="slate.gif">
<H1>Welcome</H1>
<IMG SRC="DOUGLAS.GIF" WIDTH="80" HEIGHT="107"
ALT="Our Founder" BORDER="0">
<H2>A Message from the President </H2>
<P><font color=red>Good evening! Thank you for
working late!</font></P>
<P>Hello and welcome to DougCo, Incorporated! I'm
<b>Douglas S. Michaels,</b> President and Founder,
<a href="acronyms.htm">COB, CEO, COO, and
BBBWAIC</a>. Let me take this opportunity to
congratulate you on obtaining employment here at
DougCo; I want you to know that you've chosen to
spend your career in one of the most worthwhile and
rewarding endeavors possible --making me richer!</P>
. . .
...Turns Into This
STARTTAG ENDTAG
<HTML> </HTML>
<HEAD> </HEAD>
<TITLE> </TITLE>
<BODY> </BODY>
<H1>, <H2>, ... </H1>, </H2>, ...
<IMG ...> </IMG> (optional)
<A ...> </A>
<P> </P> (optional)
<BR> (none; "empty" tag)
<OL> </OL>
<UL> </UL>
<LI> </LI> (optional)
Some HTML Tag Examples
HTML Document Layout
Example of basic tag positioning
Always think co ntaine rs !
Tag pairs that enclose content
<html>
<head>
<title>Title bar text</title>
</head>
<body>
<p>Look, I'm a paragraph!</p>
</body>
</html>
Some Common Text Tags
Heading levels
h1 – h6, numbers inverse to text size
<h1>Heading One</h1>
<h2>Heading One</h2>
Paragraph
Probably the most common tag
<p>Yada yada yada...</p>
Line break (an empty tag)
Used when <p>'s white space not wanted
This line will break<br>right there
Note white space or lack thereof in
HTML source does not matter!
Ordered & Unordered Lists
Ordered (numbered)
Use <ol>...</ol> tags
Unordered (bulleted)
Use <ul>...</ul> tags
List Items make up both lists
Use same <li>...</li> tags
Lists can contain almost anything
Text, images, paragraphs, links
Even other (nested) lists, same type or
not
Attributes and Values
Properties, traits, or characteristics that
modify the way a tag looks or acts
Usually in pairs: <body bgcolor="teal">
Sometimes not: <dl compact>
Most HTML tags can take attributes
Format of value depends on attribute
width="150" ... href="page3.htm" no t
width="page3.htm" ... href="150"
The Anchor Tag (1)
The tag that puts the HT in HTML
<a> ... </a> (useless by itself)
Must have attributes to be useful
HREF (Hypertext REFerence) attribute
Makes a jump to someplace (URL)
<a href="mypage.htm">My Page</a>
<a href="www.google.com">Google</a>
Link text is underscored by default
Whateveris between <a> and </a>
is hot (clickable)
Clicking makes the link go somewhere
or do something
The Anchor Tag (2)
Some link examples
text only
image only
both
Images (1)
Used in pages for various reasons
Clarification, navigation, peripheral
training
Images not in page; re fe re nce d by
page
Graphics are separate, required files
Usually GIFs or JPGs, sometimes others
Can be anywhere in document body: in
paragraphs, headings, lists, anchors, etc.
Place image with <img> tag
Like <a>, <img> is useless by itself
Images (2)
Main attribute: SRC
Tells page where to find the image
File name can be local, relative, or full
Case sensitivity depends on server
Animated GIFs added same as static
<img src="smiley.gif">
<img src="./pix/mypic.jpg">
<img src="http://www.myweb.com/mail.gif">
Tables (1)
Powerful, flexible information delivery
Used to reflect or impart structure
A table is a container
<table> ... </table>
That contains other containers (rows)
<tr> ... </tr>
That contain other containers (cells)
<td> ... </td> (data cells)
<th> ... </th> (heading cells)
That contain data – or other containers
Text, graphics, lists, even other tables!
Tables (2)
Basic table markup
<table border="1">
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
</tr>
</table> Row 1, Cell 1 Row 1, Cell 2
Row 2, Cell 1 Row 2, Cell 2
CSS Concepts
Styles are named sets of formatting
commands
[18pt, Arial, left aligned] "Section head"
[Bold, italic, blue] "Glossary term"
[Normal, 10pt, Verdana] "Body text"
[Italic, orange, small caps] "Bob"
Style sheets are control documents
that are referenced by content
documents
MS Word, other editors & desktop
publishing programs have done it for years
Why Use CSS?
HTML formatting is awkward and
imprecise
Originally intended to deliver well
organized text (aimed at structure, not
formatting)
Over time, formatting elements were
added that solved some problems, but
created many more
W3C proposed Cascading Style
Sheets
Separate format from content
Enforce consistency
What's "Cascading" All About?
Three places to put style commands
External: Affects all documents it's attached
to
Internal: Affects only document it appears in
Inline: Affects only text it's applied to
Cascading means styles' "pecking
order"
Precedence is: Inline > Internal > External
Seems backward, but it couldn't work any
other way; for example…
Picture a document whose style sheet
specifies Verdana as the font, with one
What Can CSS Control?
Almost everything
Page background, colors, images, fonts and
text, margins and spacing, headings,
positioning, links, lists, tables, cursors, etc.
W3C intends CSS to "…relieve HTML
of the responsibility of presentation."
Translation: "Don't bug us for new tags;
change existing tags & make your own using
CSS."
Idea is to put all formatting in CSS
To that end, many tags are "deprecated" by
CSS: <font>, <basefont>, <center>,
Coding CSS Rules
Rules have very specific parts and syntax
Rules have two basic parts: selector and declaration
Declaration also has two parts: property and value
Selector tells the rule what to modify
Declaration tells the rule how to modify it
h2 { font-style : italic ; }
rule
property value
selector declaration
CSS Rule Placement
In a separate .CSS file
Affects all pages to which it is linked
.CSS referenced by pages with <link> tag
In the <head> of an .HTM page
Affects only page in which it appears
Rules are coded in <style></style>
container
In an HTML tag in page <body>
Affects only text to which it is attached
Declarations are coded as attribute =
"value " pairs, e.g., style="color: blue;"
Linking To An External CSS
Do not put <style></style> tags in
the .CSS file; this will prevent it from
working
Add CSS rules as needed; break lines
where necessary; format as desired
Save as file nam e .css
Reference .CSS in <head> of .HTM(s)
<head>
<link rel="stylesheet" type="text/css"
href="mystyles.css">
</head>
Adding Styles To A Single Page
Within document's <head>, insert a
<style></style> container
Code rules exactly as you would in an
external .CSS
<head>
<style>
h2 { font-style: italic; color: red; }
p { font-family: "Verdana, Arial, sans-
serif"; font-size: 12pt;
color: blue; }
</style>
</head>
Adding Styles To An HTML Tag
Within a tag's < >, code an
attribute = "value " pair defining style
characteristics
Tip: Watch out for nested quotes
<h1 style = "font: small-caps bold
italic; font-family: 'Verdana, Arial,
sans-serif'; color: #008080; text-
align: center;">Gettysburg Address
(First Draft)</h1>
<p style = "font-family: Times;
color: #800000; font-weight: bold;">
Four score and seven beers ago…</p>
JavaScript Intro
What JavaScript isn’t
Java (object-oriented programming language)
A "programmers-only" language
What JavaScript is
Extension to HTML (support depends on
browser)
An accessible, object-based scripting
language
What JavaScript is for
Interactivity with the user:
* input (user provides data to application)
* processing (application manipulates data)
* output (application provides results to user)
Implementing JavaScript (1)
Direct insertion into page (immediate)
In <script></script> container within
document head or body
Direct insertion into page (deferred)
In <script></script> container and inside
function {… }definition within document
head or body
Through external references
In external .js files (immediate/deferred)
Much like CSS external reference
Embedded inline
Within other tags (as attribute values)
Implementing JavaScript (2a)
Direct insertion into page (immediate)
<body><p>Today is
<script>document.write( Date() );
</script></p>
Direct insertion into page (deferred)
<head><script>
function dwd()
{
document.write( Date() );
}
</script></head>
. . .
<body><p>Today is <script>dwd();
</script></p>
Implementing JavaScript (2b)
Through external references
(immediate/deferred depends on script
file's contents)
<script src="swapimgs.js"></script>
Embedded inline as attribute values
<img id="pic1" src="somepic.jpg"
onmouseover="swapin('pic1')"
onmouseout="swapout('pic1')">
. . .
<input type="button" value="Buy Now"
onclick="placeOrder('ordform')"
</input>
Key Language Components
Objects
Things on a page; think no un
Attributes
Properties of objects; think adje ctive
Methods
Actions taken by objects; think ve rb
Statements
Lines of assembled components; think
se nte nce
Functions
Named groups of statements; think parag raph
Programming Constructs
Variables
Named elements that can change value
Data types
Integer, floating-point, Boolean, string
Operators
Assignment, comparison, arithmetic,
Boolean, string, special
Control statements
Conditions, loops
Keywords
Reserved words with special meaning
A Few JS Examples (1)
Some basic JavaScripts
To get the day of the month
var day = new Date().getDate();
To do something ten times
for (var x=0; x<10; x++)
{
document.write( x * x );
}
To make a decision and act on it
if (username == "Bob")
{ userisknown = true;
displayWelcomeBack(username); }
else
{ userisknown = false;
displayFirstLogin(username); }
A Few JS Examples (2)
Some more basic JavaScripts
To write something into the page
document.write("<b>Welcome, " +
uname + "</b>");
To make a calculation
pcent = score / 100;
To show the user a message box
alert("Score: " + pcent + "%");
To put some text on the Windows clipboard
mycb = "daveg~armadillo";
clipboardData.setData("Text",mycb);
To force a jump to another page
window.location="anotherpage.htm";
Summary
Most Web pages – remote or local –
are a combination of those technologies
Raw content, placed inside…
HTML tags, formatted with…
CSS rules, interactivity produced by…
JavaScript scripts
Newer technologies like DHTML,
XHTML, and XML are based on these
A little knowledge now can prepare you for
new technologies and help you keep up
with your peers, your boss… and your kids!


More Related Content

What's hot (20)

Frontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSSFrontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSS
 
Hf html-cheat-sheet
Hf html-cheat-sheetHf html-cheat-sheet
Hf html-cheat-sheet
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Css
CssCss
Css
 
HTML - LinkedIn
HTML - LinkedInHTML - LinkedIn
HTML - LinkedIn
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
HTML CSS | Computer Science
HTML CSS | Computer ScienceHTML CSS | Computer Science
HTML CSS | Computer Science
 
Html training slide
Html training slideHtml training slide
Html training slide
 
Html
HtmlHtml
Html
 
CSS Overview
CSS OverviewCSS Overview
CSS Overview
 
Presentation on html, css
Presentation on html, cssPresentation on html, css
Presentation on html, css
 
Html and css
Html and cssHtml and css
Html and css
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html (1)
Html (1)Html (1)
Html (1)
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
HTML 5
HTML 5HTML 5
HTML 5
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 

Viewers also liked (13)

11. session 11 functions and objects
11. session 11   functions and objects11. session 11   functions and objects
11. session 11 functions and objects
 
12. session 12 java script objects
12. session 12   java script objects12. session 12   java script objects
12. session 12 java script objects
 
JavaScript Objects
JavaScript ObjectsJavaScript Objects
JavaScript Objects
 
javascript objects
javascript objectsjavascript objects
javascript objects
 
WWW
WWWWWW
WWW
 
C S S Top Elements
C S S  Top  ElementsC S S  Top  Elements
C S S Top Elements
 
Css
CssCss
Css
 
Week 2
Week 2Week 2
Week 2
 
Js
JsJs
Js
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
 
Week 8
Week 8Week 8
Week 8
 
Java script Learn Easy
Java script Learn Easy Java script Learn Easy
Java script Learn Easy
 
Iwt note(module 2)
Iwt note(module 2)Iwt note(module 2)
Iwt note(module 2)
 

Similar to Intro webtechstc

Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML BasicsShawn Calvert
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptxDaniyalSardar
 
05. session 05 introducing css
05. session 05   introducing css05. session 05   introducing css
05. session 05 introducing cssPhúc Đỗ
 
INTRODUCTION FOR HTML
INTRODUCTION  FOR HTML INTRODUCTION  FOR HTML
INTRODUCTION FOR HTML Rahul Bathri
 
Html tutorials-infotech aus
Html tutorials-infotech ausHtml tutorials-infotech aus
Html tutorials-infotech ausNilesh Pujara
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalorerajkamal560066
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfDineshKumar522328
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratchAhmad Al-ammar
 
Html cheat sheet
Html cheat sheetHtml cheat sheet
Html cheat sheetLam Hoang
 
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and StyleLesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and StylePerry Mallari
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsQA TrainingHub
 

Similar to Intro webtechstc (20)

Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML Basics
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 
05. session 05 introducing css
05. session 05   introducing css05. session 05   introducing css
05. session 05 introducing css
 
Uta005 lecture2
Uta005 lecture2Uta005 lecture2
Uta005 lecture2
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
INTRODUCTION FOR HTML
INTRODUCTION  FOR HTML INTRODUCTION  FOR HTML
INTRODUCTION FOR HTML
 
Html tutorials-infotech aus
Html tutorials-infotech ausHtml tutorials-infotech aus
Html tutorials-infotech aus
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
1. HTML
1. HTML1. HTML
1. HTML
 
Html basics
Html basicsHtml basics
Html basics
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalore
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
 
Html cheat sheet
Html cheat sheetHtml cheat sheet
Html cheat sheet
 
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and StyleLesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
 

Recently uploaded

Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 

Recently uploaded (20)

Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 

Intro webtechstc

  • 1. Introduction to Web Technologies And Software CMC presented by CMC TATAKESWAR & CMC SINGUR
  • 2. Presentation Overview Look at main technological components that make up modern Web pages HTML – HyperText Markup Language CSS – Cascading Style Sheets JavaScript – um, JavaScript For each component What it is/isn't, can/can't do What kinds of constructs it comprises How to use it in Web pages How it interacts with other components
  • 3. HTML Components Documents Document = page = HTM file = topic Content (text, images) Tags (display commands) Other terms Window: browser display window URL: Uniform Resource Locator Hyperlink: hypertext jump to a resource Resource: URL, image, mailto, external file
  • 4. HTML Pages HTML pages are tag-based documents Really plain ASCII text files Don't look like documents they represent Tags indicate how processing program should display text and graphics Designed to describe hypertext, not paper Processed by browsers "on the fly" Tags usually appear in pairs Most have reasonable names or mnemonics 
  • 5. That's How This... <HTML> <HEAD> <BODY background="slate.gif"> <H1>Welcome</H1> <IMG SRC="DOUGLAS.GIF" WIDTH="80" HEIGHT="107" ALT="Our Founder" BORDER="0"> <H2>A Message from the President </H2> <P><font color=red>Good evening! Thank you for working late!</font></P> <P>Hello and welcome to DougCo, Incorporated! I'm <b>Douglas S. Michaels,</b> President and Founder, <a href="acronyms.htm">COB, CEO, COO, and BBBWAIC</a>. Let me take this opportunity to congratulate you on obtaining employment here at DougCo; I want you to know that you've chosen to spend your career in one of the most worthwhile and rewarding endeavors possible --making me richer!</P> . . .
  • 7. STARTTAG ENDTAG <HTML> </HTML> <HEAD> </HEAD> <TITLE> </TITLE> <BODY> </BODY> <H1>, <H2>, ... </H1>, </H2>, ... <IMG ...> </IMG> (optional) <A ...> </A> <P> </P> (optional) <BR> (none; "empty" tag) <OL> </OL> <UL> </UL> <LI> </LI> (optional) Some HTML Tag Examples
  • 8. HTML Document Layout Example of basic tag positioning Always think co ntaine rs ! Tag pairs that enclose content <html> <head> <title>Title bar text</title> </head> <body> <p>Look, I'm a paragraph!</p> </body> </html>
  • 9. Some Common Text Tags Heading levels h1 – h6, numbers inverse to text size <h1>Heading One</h1> <h2>Heading One</h2> Paragraph Probably the most common tag <p>Yada yada yada...</p> Line break (an empty tag) Used when <p>'s white space not wanted This line will break<br>right there Note white space or lack thereof in HTML source does not matter!
  • 10. Ordered & Unordered Lists Ordered (numbered) Use <ol>...</ol> tags Unordered (bulleted) Use <ul>...</ul> tags List Items make up both lists Use same <li>...</li> tags Lists can contain almost anything Text, images, paragraphs, links Even other (nested) lists, same type or not
  • 11. Attributes and Values Properties, traits, or characteristics that modify the way a tag looks or acts Usually in pairs: <body bgcolor="teal"> Sometimes not: <dl compact> Most HTML tags can take attributes Format of value depends on attribute width="150" ... href="page3.htm" no t width="page3.htm" ... href="150"
  • 12. The Anchor Tag (1) The tag that puts the HT in HTML <a> ... </a> (useless by itself) Must have attributes to be useful HREF (Hypertext REFerence) attribute Makes a jump to someplace (URL) <a href="mypage.htm">My Page</a> <a href="www.google.com">Google</a> Link text is underscored by default Whateveris between <a> and </a> is hot (clickable) Clicking makes the link go somewhere or do something
  • 13. The Anchor Tag (2) Some link examples text only image only both
  • 14. Images (1) Used in pages for various reasons Clarification, navigation, peripheral training Images not in page; re fe re nce d by page Graphics are separate, required files Usually GIFs or JPGs, sometimes others Can be anywhere in document body: in paragraphs, headings, lists, anchors, etc. Place image with <img> tag Like <a>, <img> is useless by itself
  • 15. Images (2) Main attribute: SRC Tells page where to find the image File name can be local, relative, or full Case sensitivity depends on server Animated GIFs added same as static <img src="smiley.gif"> <img src="./pix/mypic.jpg"> <img src="http://www.myweb.com/mail.gif">
  • 16. Tables (1) Powerful, flexible information delivery Used to reflect or impart structure A table is a container <table> ... </table> That contains other containers (rows) <tr> ... </tr> That contain other containers (cells) <td> ... </td> (data cells) <th> ... </th> (heading cells) That contain data – or other containers Text, graphics, lists, even other tables!
  • 17. Tables (2) Basic table markup <table border="1"> <tr> <td>Row 1, Cell 1</td> <td>Row 1, Cell 2</td> </tr> <tr> <td>Row 2, Cell 1</td> <td>Row 2, Cell 2</td> </tr> </table> Row 1, Cell 1 Row 1, Cell 2 Row 2, Cell 1 Row 2, Cell 2
  • 18. CSS Concepts Styles are named sets of formatting commands [18pt, Arial, left aligned] "Section head" [Bold, italic, blue] "Glossary term" [Normal, 10pt, Verdana] "Body text" [Italic, orange, small caps] "Bob" Style sheets are control documents that are referenced by content documents MS Word, other editors & desktop publishing programs have done it for years
  • 19. Why Use CSS? HTML formatting is awkward and imprecise Originally intended to deliver well organized text (aimed at structure, not formatting) Over time, formatting elements were added that solved some problems, but created many more W3C proposed Cascading Style Sheets Separate format from content Enforce consistency
  • 20. What's "Cascading" All About? Three places to put style commands External: Affects all documents it's attached to Internal: Affects only document it appears in Inline: Affects only text it's applied to Cascading means styles' "pecking order" Precedence is: Inline > Internal > External Seems backward, but it couldn't work any other way; for example… Picture a document whose style sheet specifies Verdana as the font, with one
  • 21. What Can CSS Control? Almost everything Page background, colors, images, fonts and text, margins and spacing, headings, positioning, links, lists, tables, cursors, etc. W3C intends CSS to "…relieve HTML of the responsibility of presentation." Translation: "Don't bug us for new tags; change existing tags & make your own using CSS." Idea is to put all formatting in CSS To that end, many tags are "deprecated" by CSS: <font>, <basefont>, <center>,
  • 22. Coding CSS Rules Rules have very specific parts and syntax Rules have two basic parts: selector and declaration Declaration also has two parts: property and value Selector tells the rule what to modify Declaration tells the rule how to modify it h2 { font-style : italic ; } rule property value selector declaration
  • 23. CSS Rule Placement In a separate .CSS file Affects all pages to which it is linked .CSS referenced by pages with <link> tag In the <head> of an .HTM page Affects only page in which it appears Rules are coded in <style></style> container In an HTML tag in page <body> Affects only text to which it is attached Declarations are coded as attribute = "value " pairs, e.g., style="color: blue;"
  • 24. Linking To An External CSS Do not put <style></style> tags in the .CSS file; this will prevent it from working Add CSS rules as needed; break lines where necessary; format as desired Save as file nam e .css Reference .CSS in <head> of .HTM(s) <head> <link rel="stylesheet" type="text/css" href="mystyles.css"> </head>
  • 25. Adding Styles To A Single Page Within document's <head>, insert a <style></style> container Code rules exactly as you would in an external .CSS <head> <style> h2 { font-style: italic; color: red; } p { font-family: "Verdana, Arial, sans- serif"; font-size: 12pt; color: blue; } </style> </head>
  • 26. Adding Styles To An HTML Tag Within a tag's < >, code an attribute = "value " pair defining style characteristics Tip: Watch out for nested quotes <h1 style = "font: small-caps bold italic; font-family: 'Verdana, Arial, sans-serif'; color: #008080; text- align: center;">Gettysburg Address (First Draft)</h1> <p style = "font-family: Times; color: #800000; font-weight: bold;"> Four score and seven beers ago…</p>
  • 27. JavaScript Intro What JavaScript isn’t Java (object-oriented programming language) A "programmers-only" language What JavaScript is Extension to HTML (support depends on browser) An accessible, object-based scripting language What JavaScript is for Interactivity with the user: * input (user provides data to application) * processing (application manipulates data) * output (application provides results to user)
  • 28. Implementing JavaScript (1) Direct insertion into page (immediate) In <script></script> container within document head or body Direct insertion into page (deferred) In <script></script> container and inside function {… }definition within document head or body Through external references In external .js files (immediate/deferred) Much like CSS external reference Embedded inline Within other tags (as attribute values)
  • 29. Implementing JavaScript (2a) Direct insertion into page (immediate) <body><p>Today is <script>document.write( Date() ); </script></p> Direct insertion into page (deferred) <head><script> function dwd() { document.write( Date() ); } </script></head> . . . <body><p>Today is <script>dwd(); </script></p>
  • 30. Implementing JavaScript (2b) Through external references (immediate/deferred depends on script file's contents) <script src="swapimgs.js"></script> Embedded inline as attribute values <img id="pic1" src="somepic.jpg" onmouseover="swapin('pic1')" onmouseout="swapout('pic1')"> . . . <input type="button" value="Buy Now" onclick="placeOrder('ordform')" </input>
  • 31. Key Language Components Objects Things on a page; think no un Attributes Properties of objects; think adje ctive Methods Actions taken by objects; think ve rb Statements Lines of assembled components; think se nte nce Functions Named groups of statements; think parag raph
  • 32. Programming Constructs Variables Named elements that can change value Data types Integer, floating-point, Boolean, string Operators Assignment, comparison, arithmetic, Boolean, string, special Control statements Conditions, loops Keywords Reserved words with special meaning
  • 33. A Few JS Examples (1) Some basic JavaScripts To get the day of the month var day = new Date().getDate(); To do something ten times for (var x=0; x<10; x++) { document.write( x * x ); } To make a decision and act on it if (username == "Bob") { userisknown = true; displayWelcomeBack(username); } else { userisknown = false; displayFirstLogin(username); }
  • 34. A Few JS Examples (2) Some more basic JavaScripts To write something into the page document.write("<b>Welcome, " + uname + "</b>"); To make a calculation pcent = score / 100; To show the user a message box alert("Score: " + pcent + "%"); To put some text on the Windows clipboard mycb = "daveg~armadillo"; clipboardData.setData("Text",mycb); To force a jump to another page window.location="anotherpage.htm";
  • 35. Summary Most Web pages – remote or local – are a combination of those technologies Raw content, placed inside… HTML tags, formatted with… CSS rules, interactivity produced by… JavaScript scripts Newer technologies like DHTML, XHTML, and XML are based on these A little knowledge now can prepare you for new technologies and help you keep up with your peers, your boss… and your kids! 