SlideShare a Scribd company logo
1 of 39
Introduction to Web
Technologies
Lecture 1
Julie Iskander,
MSc. Communication and Electronics
Before we start?
Internet Vs. WWW
Internet
 World Wide network of
networks.
 Exchange information via
different protocols like
HTTP, FTP, SMTP, IMAP,
………..

The Web (www)
 A subset of the internet
 Uses HTTP to access and
exchange information.
 It is a collection of HTML
documents.
How it all Started?
Ted Nelson and HyperText
Tim Berners Lee
How the web works, using
HTTP?
HTTP
 Characteristics:
1.
2.
3.

Connectionless
Media Independent
Stateless
HTTP Request
HTTP Request Example
HTTP Response
HTTP Response Example
HTML
Hyper Text Markup
Language
HTML
 Not a programming language but a MARKUP Language.
 Uses tags and keywords.
 It is a text file that is saved .html, can be edited with any
text editor.
 It is viewed in a browser
 It is used for structuring contents of a web page

 No layout or styles must be used in HTML (only in css
files)
HTML Markup
HTML Elements
 HTML document is a tree with one node (html node)
 Built on tags < and >
 HTML document is made up of elements
 Elements has an opening tag with name and has content.
<name> Content Here </name>

 Content can be text or another tag

 Examples:
<b> This text appears bold </b>
<em>emphasized text</em>
HTML Markup (Cont’d)
HTML attributes
 HTML attributes are modifiers of HTML elements,
in name-value pair format. It is recommended to
put values in double quotations.
name=“value”
<tag attr=“value”>content</tag>

 Examples:
<a href=http://www.google.com> Go To Google </a>
HTML Markup (Cont’d)
Empty elements
 Has no close tags and no contents
 Has an open tag and attributes only

 Optionally the open tag can has a / at the end (XHTML)
 Examples:
<br> or <br />
<hr>
<img src=“earth.jpg” alt=“Picture of the earth”>
HTML Markup (Cont’d)
Comment Elements
 To insert comments in the source code.
 Are not displayed in the browsers.
<!--This is a comment. Comments are not displayed in
the browser-->
DEMO
HTML Document Structure
HTML Document Structure
DOCTYPE
 All doctypes can be found in:
http://www.w3.org/QA/2002/04/valid-dtd-list.html
META
NOTES
 All whitespaces , tabs and newlines are interpreted as one
whitespace
 Except if inside <pre> tag
 To add a newline use <br>
 To add one whitespace use &nbsp; (escape character)
 To get a list of escape characters
 http://www.theukwebdesigncompany.com/articles/entity-escapecharacters.php
HTML Document Object
Model (DOM)
 A web browser:
 reads HTML documents (parsing phase)
 Then renders the document (rendering phase)

 Parsing phase:
 reads the markup in the document,
 breaks it down into components,
 builds a document object model (DOM) tree.

 Node: each object in the DOM tree (element nodes/text
nodes).

 Root node is the html element.
 There are child, parent, descendants, ancesters and sibling
nodes.
HTML Document Object
Model (DOM)
html

head
title

meta

body
h1

p
em

br
images
 <img src=“url” alt=“text” >
 Empty element
 alt is the alternate text that will appear when image isn’t
loaded yet.
 src is
An absolute URL - points to another web site (like
src="http://www.example.com/image.gif")
 A relative URL - points to a file within a web site (like
src="image.gif")

Hyperlinks
 Created using anchor <a> tag

 Links a webpage to others
 Link to External pages
<a href=http://www.google.com>Go to google</a>
 Link to pages in the same website
<a href=“pagesbooks.html”>Favourite Books</a>
Hyperlink (Cont’d)
 Link to a certain fragment in the current or another
page
<a href=“book1.html#ch1”>Chapter 1</a>
 We need to create an anchor with a name attribute to
identify it in the url.
<a name=“ch1”>Chapter 1</a>

 To link to send email, opens default email client
<a href=mailto:user@server.com>Press to send email</a>
DEMO
Tables
 Used to display tabular data
 Tables fit contents, don’t take all length
 Never use it to format content, better use tableless
approach with css
Tables
Tables
RowSpan and ColSpan
RowSpan and ColSpan
FrameSets and Frames
 This a self-study topic to be done as a homework for
lecture 1.
 A presentation on the topic is provided as a help.
DEMO
Project Directory structure
 Project Directory

 All .html files
 css Directory
 All .css files

 scripts Directory
 All .js and any other scripts files

 multimedia Directory
 images directory
 All images files

 Videos directory
 All video files

 Audio directory
 All audio files
References
 http://www.w3.org/TR/html-markup/
 http://www.w3.org/TR/html401/
 http://www.w3.org/TR/CSS21/
 http://www.w3.org/TR/CSS2/
 http://www.sitepoint.com/tag/css/

More Related Content

What's hot

What's hot (20)

HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
 
HTML 5 Topic 2
HTML 5 Topic 2HTML 5 Topic 2
HTML 5 Topic 2
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup Language
 
Xhtml
XhtmlXhtml
Xhtml
 
Hyper Text Mark-up Language
Hyper Text Mark-up Language Hyper Text Mark-up Language
Hyper Text Mark-up Language
 
Html5
Html5 Html5
Html5
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Vskills certified html designer Notes
Vskills certified html designer NotesVskills certified html designer Notes
Vskills certified html designer Notes
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS Files
 
Images and Lists in HTML
Images and Lists in HTMLImages and Lists in HTML
Images and Lists in HTML
 
Web page concept final ppt
Web page concept  final pptWeb page concept  final ppt
Web page concept final ppt
 
Html
HtmlHtml
Html
 
Xhtml
XhtmlXhtml
Xhtml
 
Xhtml
XhtmlXhtml
Xhtml
 
Design Tools Html Xhtml
Design Tools Html XhtmlDesign Tools Html Xhtml
Design Tools Html Xhtml
 
HTML
HTMLHTML
HTML
 
Introduction to XHTML
Introduction to XHTMLIntroduction to XHTML
Introduction to XHTML
 
HTML - 5 - Introduction
HTML - 5 - IntroductionHTML - 5 - Introduction
HTML - 5 - Introduction
 
Hypertext markup language (html)
Hypertext markup language (html)Hypertext markup language (html)
Hypertext markup language (html)
 

Similar to Introduction to Web Technologies Lecture 1

CLASS VII COMPUTERS HTML
CLASS VII COMPUTERS HTML CLASS VII COMPUTERS HTML
CLASS VII COMPUTERS HTML Rc Os
 
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
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2Leo Mark Villar
 
Web Development Basics: HOW TO in HTML
Web Development Basics: HOW TO in HTMLWeb Development Basics: HOW TO in HTML
Web Development Basics: HOW TO in HTMLDer Lo
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfAAFREEN SHAIKH
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN PresentationHTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN Presentationsurajsutar467
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxArjayBalberan1
 
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
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introductioneceklu
 
Html (hypertext markup language)
Html (hypertext markup language)Html (hypertext markup language)
Html (hypertext markup language)Anuj Singh Rajput
 

Similar to Introduction to Web Technologies Lecture 1 (20)

CLASS VII COMPUTERS HTML
CLASS VII COMPUTERS HTML CLASS VII COMPUTERS HTML
CLASS VII COMPUTERS HTML
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
Tm 1st quarter - 1st meeting
Tm   1st quarter - 1st meetingTm   1st quarter - 1st meeting
Tm 1st quarter - 1st meeting
 
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
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
 
Html basic
Html basicHtml basic
Html basic
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Web Development Basics: HOW TO in HTML
Web Development Basics: HOW TO in HTMLWeb Development Basics: HOW TO in HTML
Web Development Basics: HOW TO in HTML
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN PresentationHTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN Presentation
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptx
 
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
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
HTML 5
HTML 5HTML 5
HTML 5
 
About html
About htmlAbout html
About html
 
Html (hypertext markup language)
Html (hypertext markup language)Html (hypertext markup language)
Html (hypertext markup language)
 

More from Julie Iskander (20)

HTML 5
HTML 5HTML 5
HTML 5
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
 
C for Engineers
C for EngineersC for Engineers
C for Engineers
 
Design Pattern lecture 3
Design Pattern lecture 3Design Pattern lecture 3
Design Pattern lecture 3
 
Scriptaculous
ScriptaculousScriptaculous
Scriptaculous
 
Prototype Framework
Prototype FrameworkPrototype Framework
Prototype Framework
 
Design Pattern lecture 4
Design Pattern lecture 4Design Pattern lecture 4
Design Pattern lecture 4
 
Design Pattern lecture 2
Design Pattern lecture 2Design Pattern lecture 2
Design Pattern lecture 2
 
Design Pattern lecture 1
Design Pattern lecture 1Design Pattern lecture 1
Design Pattern lecture 1
 
Ajax and ASP.NET AJAX
Ajax and ASP.NET AJAXAjax and ASP.NET AJAX
Ajax and ASP.NET AJAX
 
jQuery
jQueryjQuery
jQuery
 
ASP.NET Lecture 5
ASP.NET Lecture 5ASP.NET Lecture 5
ASP.NET Lecture 5
 
ASP.NET lecture 8
ASP.NET lecture 8ASP.NET lecture 8
ASP.NET lecture 8
 
ASP.NET Lecture 7
ASP.NET Lecture 7ASP.NET Lecture 7
ASP.NET Lecture 7
 
ASP.NET Lecture 6
ASP.NET Lecture 6ASP.NET Lecture 6
ASP.NET Lecture 6
 
ASP.NET Lecture 4
ASP.NET Lecture 4ASP.NET Lecture 4
ASP.NET Lecture 4
 
ASP.NET Lecture 3
ASP.NET Lecture 3ASP.NET Lecture 3
ASP.NET Lecture 3
 
ASP.NET Lecture 2
ASP.NET Lecture 2ASP.NET Lecture 2
ASP.NET Lecture 2
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
AJAX and JSON
AJAX and JSONAJAX and JSON
AJAX and JSON
 

Recently uploaded

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

Introduction to Web Technologies Lecture 1

  • 1. Introduction to Web Technologies Lecture 1 Julie Iskander, MSc. Communication and Electronics
  • 3. Internet Vs. WWW Internet  World Wide network of networks.  Exchange information via different protocols like HTTP, FTP, SMTP, IMAP, ……….. The Web (www)  A subset of the internet  Uses HTTP to access and exchange information.  It is a collection of HTML documents.
  • 4. How it all Started?
  • 5. Ted Nelson and HyperText
  • 7. How the web works, using HTTP?
  • 14. HTML  Not a programming language but a MARKUP Language.  Uses tags and keywords.  It is a text file that is saved .html, can be edited with any text editor.  It is viewed in a browser  It is used for structuring contents of a web page  No layout or styles must be used in HTML (only in css files)
  • 15. HTML Markup HTML Elements  HTML document is a tree with one node (html node)  Built on tags < and >  HTML document is made up of elements  Elements has an opening tag with name and has content. <name> Content Here </name>  Content can be text or another tag  Examples: <b> This text appears bold </b> <em>emphasized text</em>
  • 16. HTML Markup (Cont’d) HTML attributes  HTML attributes are modifiers of HTML elements, in name-value pair format. It is recommended to put values in double quotations. name=“value” <tag attr=“value”>content</tag>  Examples: <a href=http://www.google.com> Go To Google </a>
  • 17. HTML Markup (Cont’d) Empty elements  Has no close tags and no contents  Has an open tag and attributes only  Optionally the open tag can has a / at the end (XHTML)  Examples: <br> or <br /> <hr> <img src=“earth.jpg” alt=“Picture of the earth”>
  • 18. HTML Markup (Cont’d) Comment Elements  To insert comments in the source code.  Are not displayed in the browsers. <!--This is a comment. Comments are not displayed in the browser-->
  • 19. DEMO
  • 22. DOCTYPE  All doctypes can be found in: http://www.w3.org/QA/2002/04/valid-dtd-list.html
  • 23. META
  • 24. NOTES  All whitespaces , tabs and newlines are interpreted as one whitespace  Except if inside <pre> tag  To add a newline use <br>  To add one whitespace use &nbsp; (escape character)  To get a list of escape characters  http://www.theukwebdesigncompany.com/articles/entity-escapecharacters.php
  • 25. HTML Document Object Model (DOM)  A web browser:  reads HTML documents (parsing phase)  Then renders the document (rendering phase)  Parsing phase:  reads the markup in the document,  breaks it down into components,  builds a document object model (DOM) tree.  Node: each object in the DOM tree (element nodes/text nodes).  Root node is the html element.  There are child, parent, descendants, ancesters and sibling nodes.
  • 26. HTML Document Object Model (DOM) html head title meta body h1 p em br
  • 27. images  <img src=“url” alt=“text” >  Empty element  alt is the alternate text that will appear when image isn’t loaded yet.  src is An absolute URL - points to another web site (like src="http://www.example.com/image.gif")  A relative URL - points to a file within a web site (like src="image.gif") 
  • 28. Hyperlinks  Created using anchor <a> tag  Links a webpage to others  Link to External pages <a href=http://www.google.com>Go to google</a>  Link to pages in the same website <a href=“pagesbooks.html”>Favourite Books</a>
  • 29. Hyperlink (Cont’d)  Link to a certain fragment in the current or another page <a href=“book1.html#ch1”>Chapter 1</a>  We need to create an anchor with a name attribute to identify it in the url. <a name=“ch1”>Chapter 1</a>  To link to send email, opens default email client <a href=mailto:user@server.com>Press to send email</a>
  • 30. DEMO
  • 31. Tables  Used to display tabular data  Tables fit contents, don’t take all length  Never use it to format content, better use tableless approach with css
  • 36. FrameSets and Frames  This a self-study topic to be done as a homework for lecture 1.  A presentation on the topic is provided as a help.
  • 37. DEMO
  • 38. Project Directory structure  Project Directory  All .html files  css Directory  All .css files  scripts Directory  All .js and any other scripts files  multimedia Directory  images directory  All images files  Videos directory  All video files  Audio directory  All audio files
  • 39. References  http://www.w3.org/TR/html-markup/  http://www.w3.org/TR/html401/  http://www.w3.org/TR/CSS21/  http://www.w3.org/TR/CSS2/  http://www.sitepoint.com/tag/css/

Editor's Notes

  1. HyperText: is text which is not constrained to be linear. A text which is contains links to other text, non-sequential writing.Term invented by Ted Nelson in his project Xanada.Hypermedia: is hypertext including graphics, video and sound.
  2. In the early nineties, worked on a hypertext GUI browser and editor , named “World Wide Web”
  3. HTTP (Hyper Text Transfer Protocol) is the main part of the web. A protocol for communicating between browser and web server.TCP/IP communication protocol to deliver all files and data (HTML files, images …….)
  4. Connectionless  each http request is independent of any preceding or subsequent requests. After sending a request the client is disconnected from the server.Media Independent  any data can be sent as long as client and server can handle it.Stateless  since it is connectionless, server and client don’t remember each other after the end of the request.
  5. Crcarriage return \r ascii 13Lf line feed \n ascii 10Example: GET /index.html HTTP/1.1Host:www.google.comUser-Agent:Mozilla/3.0Last-Modified:Fri, 3 Dec 1999 22:22:34 GMTMethods GET  retrieve information identified by Request URI POST  accept entity enclosed in request as a HEAD no message body is sent in the response DELETE  request the origin server delete the resource identified request URI PUT request that enclosed entity be stored under the supplied request URI
  6. PopularStatus codes and phrases, 1xx  informational,2xxSuccess, 3xxRedirection, 4xxclient error, 5xxserver error 200 OK 201 created 301 Moved Permeanantly 400 Bad Request 401 UnAuthorized 404 Not Found 505 http version not supported
  7. Brief HistoryLate 80’s Tim Berner Lee wrote first HTML1994 HTML 2, Netscape is formed1995 HTML 3, MS IE came out, Netscape proposed frames1997 HTML 3.2 then start on HTML 41999 HTML 4.012000 XHTML 1.0, 2001 XHTML 1.1 , 2009 abandoned XHTML 22008 start on HTML 5
  8. Separation of concernsHTML  Content onlyCSS  presentation
  9. ML is annoted text so computer can manipulate the text, are human readable.
  10. Create a .html file try simple tagsa,h1,h2,p,br,hr,em,address,pre
  11. Only one root &lt;html&gt;Root has only 2 children &lt;head&gt;, &lt;body&gt; nothing is outside these 2 tags&lt;head&gt; contains tags that provide information to the browser and search engines, links to css and js external files
  12. Create a .html file try simple tagsa,h1,h2,p,br,hr,em,address,pre
  13. Note: borders are added for better illustration but the code will not create them
  14. Create a .html file try simple tagsa,h1,h2,p,br,hr,em,address,pre