SlideShare una empresa de Scribd logo
1 de 6
introduction to web technology - Presentation Transcript
An Introduction to Web Technologies Vikram Singh Asst. Professor, Department of IT, JECRC,
Jodhpur
Internet and WWW
Inter-network and World Wide Web
Interlinked hypertext documents accessed using HTTP Protocol
Client - Server architecture
Why Internet? Use of internet
Email
Social Networking, Chat
Information sharing
Getting updates – News around the world
Entertainment – Games, Videos and Music
Virtual classrooms
Remote Access
Online Jobs
Why Websites? Offline Apps vs. Online Apps
ONLINE APPS
No need to install
Just login and use
Available from anywhere where Internet connection is available
Operating system independent
No piracy issues
Why Websites? Offline Apps vs. Online Apps
OFFLINE APPS
Ease of use
Generally have more features
Easier to develop but difficult to update
Technologies Overview List of Technologies
Client Side Technologies
HTML, CSS, JavaScript, VBScript
XHTML, DHTML, WML, AJAX
FLASH
Server Side Technologies
ASP, PHP, Perl, JSP
ASP.NET, Java
MySQL, SQL Server, Access
Technologies Overview List of Technologies
Some More Advanced Technologies
XML, XSLT, RSS, Atom
X-Path, XQuery, WSDL
XML-DOM, RDF
Ruby on Rails, GRAIL Framework
REST, SOAP
How to choose a Technology?
Depends on:
What is the type of content?
Who is your audience?
Who will modify your content?
What are your Future Plans?
Availability of technology?
Your previous experience?
Portability and Data sharing
HTML Hyper Text Markup Language
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
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
Processed by browsers “on the fly”
Tags usually appear in pairs
Most have reasonable names or mnemonics
Most can be modified by attributes/values
That’s how this…
<html>
<head><title>Welcome onboard</title></head>
<body bgcolor=“#f4f4f4&quot;>
<h1>Welcome</h1>
<img src=“dcetech.gif&quot; width=“222&quot; height=“80&quot; alt=“DCETECH&quot;
BORDER=&quot;0“ />
<h2>A Message from the Speaker </h2>
<p><font color=red>Good evening! Thank you for coming here!</font></p>
<p>Hello and welcome to Web technologies workshop! I'm <b>Ankit Jain,</b>, 4 th year
Computer Engg <a href=“http://dcetech.com&quot;> Head DCETECH.COM </a>. Dcetech is a
student portal and only one of its kind in India.It is not only a technical oriented site which caters
only for engineers but its for students from any background ! Also students from any educational
institution can register and join Dcetech. </p>
...
</body>
</html>
Turns into this…
Some HTML Tags example
START TAG END TAG
<HTML> </HTML>
<HEAD> </HEAD>
<TITLE> </TITLE>
<BODY> </BODY>
<H1>, <H2>, ... </H1>, </H2>, ...
<IMG ...> </IMG> (optional)
<A ...> </A>
<P> </P>
<BR/> (none; &quot;empty&quot; tag)
<OL> </OL>
<UL> </UL>
<LI> </LI>
Basic Structure of HTML document Example of basic tag positioning
<html>
<head>
<title>Title bar text</title>
</head>
<body>
<p>Look, I'm a paragraph!</p>
</body>
</html>
Attributes and Values
Properties, traits, or characteristics that modify the way a tag looks or acts
Usually in pairs: <body bgcolor=&quot;teal&quot; >
Sometimes not: <option selected >
Most HTML tags can take attributes
Format of value depends on attribute
width=&quot;150&quot; ... href=&quot;page3.htm&quot; not width=&quot;page3.htm&quot; ...
href=&quot;150&quot;
Tables
<table border=&quot;1&quot;>
<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
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=&quot;teal&quot; >
Sometimes not: <dl compact >
Most HTML tags can take attributes
Format of value depends on attribute
width=&quot;150&quot; ... href=&quot;page3.htm&quot; not width=&quot;page3.htm&quot; ...
href=&quot;150&quot;
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=&quot;mypage.htm&quot; >My Page</a> <a
href=&quot;www.google.com&quot; >Google</a>
Link text is underscored by default
Whatever is 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; referenced 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
All work is done with attributes/values
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=&quot;smiley.gif&quot; > <img src=&quot;./pix/mypic.jpg&quot; > <img src=&quot;http://
www.myweb.com/mail.gif&quot; >
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=&quot;1&quot;> <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] &quot;Section head&quot;
[Bold, italic, blue] &quot;Glossary term&quot;
[Normal, 10pt, Verdana] &quot;Body text&quot;
[Italic, orange, small caps] &quot;Bob&quot;
Style sheets are control documents that are referenced by content documents
MS Word, other editors & desktop publishing programs have done it for years
DOT : DOC :: CSS : HTM
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
Greatly simplify control & maintenance
What's &quot;Cascading&quot; 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' &quot;pecking order&quot;
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 paragraph style in
Courier New, with one bold word or phrase
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 &quot;…relieve HTML of the responsibility of presentation.&quot;
Translation: &quot;Don't bug us for new tags; change existing tags & make your own using
CSS.&quot;
Idea is to put all formatting in CSS
To that end, many tags are &quot;deprecated&quot; by CSS: <font>, <basefont>, <center>,
<strike>…
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= &quot;value&quot; pairs, e.g., style=&quot;color: blue;&quot;
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 filename .css
Reference .CSS in <head> of .HTM(s)
<head> <link rel=&quot;stylesheet&quot; type=&quot;text/css&quot;
href=&quot;mystyles.css&quot;> </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: &quot;Verdana, Arial, sans-
serif&quot;; font-size: 12pt; color: blue; } </style> </head>
Adding Styles To An HTML Tag
Within a tag's < >, code an attribute = &quot;value&quot; pair defining style characteristics
Tip: Watch out for nested quotes
<h1 style = &quot;font: small-caps bold italic; font-family: 'Verdana, Arial, sans-serif'; color:
#008080; text-align: center;&quot; >Gettysburg Address (First Draft)</h1> <p style = &quot;font-
family: Times; color: #800000; font-weight: bold;&quot; > Four score and seven beers ago…</p>
JavaScript
What JavaScript isn’t
Java (object-oriented programming language)
A &quot;programmers-only&quot; 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)
Usage of JS
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>
Conclusion & Future Work
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 on Clients sides and…
PHP scripts on server sides
Newer technologies like DHTML, XHTML, and XML are based on these
A little knowledge now can prepare you for new technologies!

Más contenido relacionado

La actualidad más candente

Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5Anjan Mahanta
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skillsBoneyGawande
 
HTML & CSS Workshop Notes
HTML & CSS Workshop NotesHTML & CSS Workshop Notes
HTML & CSS Workshop NotesPamela Fox
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsNikita Garg
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3Anjan Mahanta
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3Anjan Mahanta
 
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 indiaJignesh Aakoliya
 
Html,javascript & css
Html,javascript & cssHtml,javascript & css
Html,javascript & cssPredhin Sapru
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markertersSEO SKills
 
HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTMLSun Technlogies
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.docbutest
 

La actualidad más candente (20)

HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS Masterclass
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skills
 
Html cia
Html ciaHtml cia
Html cia
 
HTML & CSS Workshop Notes
HTML & CSS Workshop NotesHTML & CSS Workshop Notes
HTML & CSS Workshop Notes
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
Html 5
Html 5Html 5
Html 5
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3
 
Web Development Using CSS3
Web Development Using CSS3Web Development Using CSS3
Web Development Using CSS3
 
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
 
HTML & XHTML Basics
HTML & XHTML BasicsHTML & XHTML Basics
HTML & XHTML Basics
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
 
Html,javascript & css
Html,javascript & cssHtml,javascript & css
Html,javascript & css
 
Day1
Day1Day1
Day1
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markerters
 
HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTML
 
Html
HtmlHtml
Html
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 

Destacado

What RabbitMQ Can Do For You (Nomad PHP May 2014)
What RabbitMQ Can Do For You (Nomad PHP May 2014)What RabbitMQ Can Do For You (Nomad PHP May 2014)
What RabbitMQ Can Do For You (Nomad PHP May 2014)James Titcumb
 
Php In The Enterprise 01 24 2010
Php In The Enterprise 01 24 2010Php In The Enterprise 01 24 2010
Php In The Enterprise 01 24 2010phptechtalk
 
Low latency Logging (BrightonPHP - 18th Nov 2013)
Low latency Logging (BrightonPHP - 18th Nov 2013)Low latency Logging (BrightonPHP - 18th Nov 2013)
Low latency Logging (BrightonPHP - 18th Nov 2013)James Titcumb
 
Practical Message Queuing Using RabbitMQ (PHPem, 3rd July 2014)
Practical Message Queuing Using RabbitMQ (PHPem, 3rd July 2014)Practical Message Queuing Using RabbitMQ (PHPem, 3rd July 2014)
Practical Message Queuing Using RabbitMQ (PHPem, 3rd July 2014)James Titcumb
 
Enterprise PHP Development - ZendCon 2008
Enterprise PHP Development - ZendCon 2008Enterprise PHP Development - ZendCon 2008
Enterprise PHP Development - ZendCon 2008Ivo Jansch
 
(In)Secure Ajax-Y Websites With PHP
(In)Secure Ajax-Y Websites With PHP(In)Secure Ajax-Y Websites With PHP
(In)Secure Ajax-Y Websites With PHPchw
 
Php String And Regular Expressions
Php String  And Regular ExpressionsPhp String  And Regular Expressions
Php String And Regular Expressionsmussawir20
 
Don't Ignore Your Errors!
Don't Ignore Your Errors!Don't Ignore Your Errors!
Don't Ignore Your Errors!Mary Jo Sminkey
 

Destacado (8)

What RabbitMQ Can Do For You (Nomad PHP May 2014)
What RabbitMQ Can Do For You (Nomad PHP May 2014)What RabbitMQ Can Do For You (Nomad PHP May 2014)
What RabbitMQ Can Do For You (Nomad PHP May 2014)
 
Php In The Enterprise 01 24 2010
Php In The Enterprise 01 24 2010Php In The Enterprise 01 24 2010
Php In The Enterprise 01 24 2010
 
Low latency Logging (BrightonPHP - 18th Nov 2013)
Low latency Logging (BrightonPHP - 18th Nov 2013)Low latency Logging (BrightonPHP - 18th Nov 2013)
Low latency Logging (BrightonPHP - 18th Nov 2013)
 
Practical Message Queuing Using RabbitMQ (PHPem, 3rd July 2014)
Practical Message Queuing Using RabbitMQ (PHPem, 3rd July 2014)Practical Message Queuing Using RabbitMQ (PHPem, 3rd July 2014)
Practical Message Queuing Using RabbitMQ (PHPem, 3rd July 2014)
 
Enterprise PHP Development - ZendCon 2008
Enterprise PHP Development - ZendCon 2008Enterprise PHP Development - ZendCon 2008
Enterprise PHP Development - ZendCon 2008
 
(In)Secure Ajax-Y Websites With PHP
(In)Secure Ajax-Y Websites With PHP(In)Secure Ajax-Y Websites With PHP
(In)Secure Ajax-Y Websites With PHP
 
Php String And Regular Expressions
Php String  And Regular ExpressionsPhp String  And Regular Expressions
Php String And Regular Expressions
 
Don't Ignore Your Errors!
Don't Ignore Your Errors!Don't Ignore Your Errors!
Don't Ignore Your Errors!
 

Similar a Vijay it 2 year

Intro webtechstc
Intro webtechstcIntro webtechstc
Intro webtechstccmcsubho
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technologyvikram singh
 
INTRODUCTION FOR HTML
INTRODUCTION  FOR HTML INTRODUCTION  FOR HTML
INTRODUCTION FOR HTML Rahul Bathri
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfDineshKumar522328
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyshabab shihan
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simpleJagadishBabuParri
 
INTRODUCTION TO HTML & CSS .pptx
INTRODUCTION TO HTML & CSS .pptxINTRODUCTION TO HTML & CSS .pptx
INTRODUCTION TO HTML & CSS .pptxSarthakrOkr
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centrejatin batra
 
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
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page DesigningAmit Mali
 
Web Design Fundamentals
Web Design FundamentalsWeb Design Fundamentals
Web Design FundamentalsAhmed Faris
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLToni Kolev
 

Similar a Vijay it 2 year (20)

Intro webtechstc
Intro webtechstcIntro webtechstc
Intro webtechstc
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
INTRODUCTION FOR HTML
INTRODUCTION  FOR HTML INTRODUCTION  FOR HTML
INTRODUCTION FOR HTML
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
HTML Tutorials
HTML TutorialsHTML Tutorials
HTML Tutorials
 
Html
HtmlHtml
Html
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
HTML
HTMLHTML
HTML
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
 
INTRODUCTION TO HTML & CSS .pptx
INTRODUCTION TO HTML & CSS .pptxINTRODUCTION TO HTML & CSS .pptx
INTRODUCTION TO HTML & CSS .pptx
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centre
 
Html
HtmlHtml
Html
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page Designing
 
Web Design Fundamentals
Web Design FundamentalsWeb Design Fundamentals
Web Design Fundamentals
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
 

Vijay it 2 year

  • 1. introduction to web technology - Presentation Transcript An Introduction to Web Technologies Vikram Singh Asst. Professor, Department of IT, JECRC, Jodhpur Internet and WWW Inter-network and World Wide Web Interlinked hypertext documents accessed using HTTP Protocol Client - Server architecture Why Internet? Use of internet Email Social Networking, Chat Information sharing Getting updates – News around the world Entertainment – Games, Videos and Music Virtual classrooms Remote Access Online Jobs Why Websites? Offline Apps vs. Online Apps ONLINE APPS No need to install Just login and use Available from anywhere where Internet connection is available Operating system independent No piracy issues Why Websites? Offline Apps vs. Online Apps OFFLINE APPS Ease of use Generally have more features Easier to develop but difficult to update Technologies Overview List of Technologies Client Side Technologies HTML, CSS, JavaScript, VBScript XHTML, DHTML, WML, AJAX FLASH Server Side Technologies ASP, PHP, Perl, JSP ASP.NET, Java MySQL, SQL Server, Access Technologies Overview List of Technologies Some More Advanced Technologies XML, XSLT, RSS, Atom X-Path, XQuery, WSDL XML-DOM, RDF Ruby on Rails, GRAIL Framework REST, SOAP How to choose a Technology? Depends on: What is the type of content? Who is your audience? Who will modify your content? What are your Future Plans? Availability of technology? Your previous experience? Portability and Data sharing HTML Hyper Text Markup Language Documents Document = page = HTM file = topic
  • 2. 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 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 Processed by browsers “on the fly” Tags usually appear in pairs Most have reasonable names or mnemonics Most can be modified by attributes/values That’s how this… <html> <head><title>Welcome onboard</title></head> <body bgcolor=“#f4f4f4&quot;> <h1>Welcome</h1> <img src=“dcetech.gif&quot; width=“222&quot; height=“80&quot; alt=“DCETECH&quot; BORDER=&quot;0“ /> <h2>A Message from the Speaker </h2> <p><font color=red>Good evening! Thank you for coming here!</font></p> <p>Hello and welcome to Web technologies workshop! I'm <b>Ankit Jain,</b>, 4 th year Computer Engg <a href=“http://dcetech.com&quot;> Head DCETECH.COM </a>. Dcetech is a student portal and only one of its kind in India.It is not only a technical oriented site which caters only for engineers but its for students from any background ! Also students from any educational institution can register and join Dcetech. </p> ... </body> </html> Turns into this… Some HTML Tags example START TAG END TAG <HTML> </HTML> <HEAD> </HEAD> <TITLE> </TITLE> <BODY> </BODY> <H1>, <H2>, ... </H1>, </H2>, ... <IMG ...> </IMG> (optional) <A ...> </A> <P> </P> <BR/> (none; &quot;empty&quot; tag) <OL> </OL> <UL> </UL> <LI> </LI> Basic Structure of HTML document Example of basic tag positioning <html> <head> <title>Title bar text</title> </head> <body> <p>Look, I'm a paragraph!</p> </body>
  • 3. </html> Attributes and Values Properties, traits, or characteristics that modify the way a tag looks or acts Usually in pairs: <body bgcolor=&quot;teal&quot; > Sometimes not: <option selected > Most HTML tags can take attributes Format of value depends on attribute width=&quot;150&quot; ... href=&quot;page3.htm&quot; not width=&quot;page3.htm&quot; ... href=&quot;150&quot; Tables <table border=&quot;1&quot;> <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 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=&quot;teal&quot; > Sometimes not: <dl compact > Most HTML tags can take attributes Format of value depends on attribute width=&quot;150&quot; ... href=&quot;page3.htm&quot; not width=&quot;page3.htm&quot; ... href=&quot;150&quot; 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=&quot;mypage.htm&quot; >My Page</a> <a href=&quot;www.google.com&quot; >Google</a> Link text is underscored by default Whatever is between <a> and </a> is hot (clickable)
  • 4. 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; referenced 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 All work is done with attributes/values 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=&quot;smiley.gif&quot; > <img src=&quot;./pix/mypic.jpg&quot; > <img src=&quot;http:// www.myweb.com/mail.gif&quot; > 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=&quot;1&quot;> <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] &quot;Section head&quot; [Bold, italic, blue] &quot;Glossary term&quot; [Normal, 10pt, Verdana] &quot;Body text&quot; [Italic, orange, small caps] &quot;Bob&quot; Style sheets are control documents that are referenced by content documents MS Word, other editors & desktop publishing programs have done it for years DOT : DOC :: CSS : HTM 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 Greatly simplify control & maintenance What's &quot;Cascading&quot; All About? Three places to put style commands External: Affects all documents it's attached to Internal: Affects only document it appears in
  • 5. Inline: Affects only text it's applied to Cascading means styles' &quot;pecking order&quot; 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 paragraph style in Courier New, with one bold word or phrase 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 &quot;…relieve HTML of the responsibility of presentation.&quot; Translation: &quot;Don't bug us for new tags; change existing tags & make your own using CSS.&quot; Idea is to put all formatting in CSS To that end, many tags are &quot;deprecated&quot; by CSS: <font>, <basefont>, <center>, <strike>… 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= &quot;value&quot; pairs, e.g., style=&quot;color: blue;&quot; 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 filename .css Reference .CSS in <head> of .HTM(s) <head> <link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;mystyles.css&quot;> </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: &quot;Verdana, Arial, sans- serif&quot;; font-size: 12pt; color: blue; } </style> </head> Adding Styles To An HTML Tag Within a tag's < >, code an attribute = &quot;value&quot; pair defining style characteristics Tip: Watch out for nested quotes <h1 style = &quot;font: small-caps bold italic; font-family: 'Verdana, Arial, sans-serif'; color: #008080; text-align: center;&quot; >Gettysburg Address (First Draft)</h1> <p style = &quot;font- family: Times; color: #800000; font-weight: bold;&quot; > Four score and seven beers ago…</p> JavaScript What JavaScript isn’t Java (object-oriented programming language) A &quot;programmers-only&quot; language What JavaScript is
  • 6. 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) Usage of JS 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> Conclusion & Future Work 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 on Clients sides and… PHP scripts on server sides Newer technologies like DHTML, XHTML, and XML are based on these A little knowledge now can prepare you for new technologies!