SlideShare a Scribd company logo
1 of 18
By: Muhammad Baqar Qazi.
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
3
What Is the World Wide Web?
• The World Wide Web—The Web.
• It’s a network of computers
– able to exchange text, graphics, and multimedia information via the Internet.
• You can visit Web-connected computers
– next door, at a nearby university,
– halfway around the world.
Using either a dialup phone line or a much faster broadband (Ethernet, cable, or DSL connection).
• One can take full advantage of the resources these computers make available, including:
– text,
– graphics,
– videos,
– sounds,
– animation.
• Think of the Web as the multimedia version of the Internet, and you’ll be right on the mark.
Copyright © 2012 Muhammad BaqarQazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
4
What is Hypertext?
• The word “hypertext” is a type of text that contains hyperlinks
(or just links for short), which enable the reader to jump from
one hypertext page to another.
• Hypertext gives readers the ability to choose their own path
through the material that interests them.
• Example:
– A book is designed to be read in sequence: Page 2 follows page 1, and
so on.
– Sure, you can skip around, but books don’t provide much help, beyond
including an index.
– Computer-based hypertexts let readers jump around all they want.
– The computer part is important because it’s hard to build a hypertext
system out of physical media, such as index cards or pieces of paper.
• The Web is a giant computer-based hypermedia system, and
you’ve probably already done lots of jumping around from one
page to another on the Web—it’s called “Surfing”.
Copyright © 2012 Muhammad BaqarQazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
5
Hypertext Markup Language(Html)
• Markup language uses tags to identify content. It does not
perform functions as in scripting languages.
• HTML is a language for describing how pages of text, graphics,
and other information are organized and linked together.
Or
• HTML enables you to mark up text so that it can function as
hypertext on the Web.
• HTML and HTTP were both invented by Tim Berners-Lee.
• The basic structure of an HTML document includes tags, which
surround content and apply meaning to it.
• The html consist of Elements tags, attributes and values .
Copyright © 2012 Muhammad BaqarQazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
6
Elements And Tags
• An element is a construct(made by combination) consisting
(usually) of :
– An opening tag,
– some optional attributes and their respective values,
– some content,
– a closing tag.
• Elements can contain any number of further elements, which are,
in turn, made up of
– tags,
– attributes,
– values,
– content.
– The opening tag can contain multiple attributes, but it cannot contain other
elements or tags, while the closing tag cannot contain anything but itself.
<a href = “abc.html” > My content </a>
Angle Brackets
Content
TagAttribute
Value
Copyright © 2012 Muhammad BaqarQazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
7
Elements Continued..
• Not all elements have closing tags.
• The above said elements are called as self-closing elements, empty
elements, or replaced elements – where as the elements with ending
and closing tags are called as paired, container tags.
• For example: <br>, and <hr>.
• A self-closing element requires a space and a trailing slash,
• such as <br /> or <hr />.
Attributes
• Attributes appear within tags, and they can only contain the value of
the attribute.
• They can have multiple values separated by space.
Copyright © 2012 Muhammad BaqarQazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
8
HTML V/S XHTML
• XHTML stands for EXtensible HyperText Markup Language.
• XHTML is almost identical to HTML 4.01 and is a stricter and
cleaner version of HTML.
• There are several rules that apply to XHTML that do not apply
to HTML.
– The <html>, <head>, and <body> tags are all required in XHTML.
– The <html> tag must have an xmlns attribute with a value of
http://www.w3.org/1999/xhtml.
– All elements must be closed - opening tag must have either an equal
closing tag (if it’s a container tag) or a self-closing space-plus-slash.
– All tags must be written in lowercase.
– All attribute values must be quoted with either single quotes or double
quotes.
– All attributes must have values.
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
9
Basic Html Page Structure
• All HTML documents have three, document-level tags in
common. These tags,
1. <html>,
2. <head>,
3. <body>,
delimit certain sections of the HTML document.
<html>
<head>
<title>Basic Page Structure</title>
</head>
<body>
THIS Is my Html Document
</body>
</html>
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
10
Html
• The <html> tag surrounds the entire HTML document.
• This tag tells the client browser where the document begins
and ends.
Head
• The <head> tag delimits the heading of the HTML document.
or
• The <head> element creates a header section for the document.
• The heading section of the document contains certain heading information
for the document that is not actually content.
• The document’s title,
• Meta information,
• Document scripts are all contained in the <head> section.
• Head portion contain invisible stuff that make page work.
Body
• This is the main body of an HTML document where all of the content
is placed.
• This is the content that people will see, hear, or otherwise experience
when they visit the web page.
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
11
Title Tag
• You should specify a title for every page that you write inside
the <title> element. This element is a child of the <head>
element). It is used in several ways:
• It displays at the very top of a browser window.
• It is used as the default name for a bookmark in browsers.
• Therefore it is important to use a title that really describes the
content of your site.
• The <title> element should contain only the text for the title and
it may not contain any other elements.
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
12
Meta Tag
• Metadata is data (information) about data,
– that will not be displayed on the page
– Can be used by the various processes such as, Web Browser and Webserver.
• Helps in Search Engine Optimization(SEO).
• HTML lets authors specify meta data -- information about a document
rather than document content -- in a variety of ways.
• Examples
• Define keywords for search engines:
<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
• Example 2 - Define a description of your web page:
<meta name="description" content="Free Web tutorials on HTML and CSS">
• Example 3 - Define the author of a page:
<meta name="author" content="Hege Refsnes">
• Example 4 - Refresh document every 30 seconds:
<meta http-equiv="refresh" content="30">
<meta http-equiv="refresh" content="3; url=http://www.google.com" >
• Example 5 – Define Charter Set For Page :
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" >
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
13
Generic Attributes
• Attributes are used to amplify tags.
• What we mean by amplify is that when a web browser interprets a tag, it will also
search for set attributes and then display the element (tags+attributes) in its
entirety.
• Many HTML tags have a unique set of their own attributes.
Attribute Options Function
align right, left, center Horizontally aligns tags
valign top, middle, bottom
Vertically aligns tags within an
HTML element.
bgcolor
numeric, hexidecimal,
RGB values
Places a background color
behind an element
background URL
Places an background image
behind an element
id User Defined
Names an element for use with
Cascading Style Sheets.
class User Defined
Classifies an element for use with
Cascading Style Sheets.
width Numeric Value
Specifies the width of tables,
images, or table cells.
height Numeric Value
Specifies the height of tables,
images, or table cells.
title User Defined "Pop-up" title for your elements.
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
14
Html Formatting Tags
Headings(<h1> to <h6>):
– Any documents starts with a heading.
– You use different sizes for your headings.
– Html has headings raging from 1 to 6.
– It is a paired Tag.
– Example:
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
Paragraph Tag <p>:
•Publishing any kind of written works requires the use of a paragraph.
•The <p> tag defines a paragraph. Using this tag places a blank line above and below the text of the
paragraph.
– It is a paired Tag.
•You can use align attribute to align your paragraphs.
– Left
– Center
– Right
– Justify
•Example:
<p>This is paragraph</p>
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
15
Html Formatting Tags
Line Breaks - The <br /> :
• A line break ends the line you are currently on and resumes on the next line.
•Placing <br /> within the code is the same as pressing the return key in a word processor.
•Example:
Line break Really works<br/>
Horizontal Rules - <hr /> :
•Horizontal rules are used to visually break up sections of a document.
•The <hr> tag creates a line from the current position in the document to the right margin and breaks the line accordingly.
•Example:
Hidaya Foundation<hr/>
Hidaya Trust
Preserve Formatting - <pre> :
•Sometimes you want the text to appear in same format as it was typed in – make use of <pre> …</pre> tags.
•Example:
<pre>
Hidaya Foundation
Hidaya Trust
Hidaya Institute Of Science And Technology
</pre>
Bold and Italic Text - (<b>..<b/> <i>..</i> ):
•If one wants to make the fonts of content bold , italic – can make use of <b> and <i> tags with
respective ending tags.
•Example:
This <b>Bold</b> and <i>Italicized </i> text.
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
16
Comments In Html
• A comment is a way for you as the web page developer to
control what lines of code are to be ignored by the web
browser.
• Placing notes and reminders to yourself is a great way to
remind yourself what pieces of code are doing what.
• Syntax for commenting
<!--
Code Successfully Commented
-->
Suppose if there is you are using a client side scripting language
then:
<script>
<!-- document.write("Hello World!") //-->
</script>
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
17
Assignments
• Write 10 to 15 tags with details
• Make a html webpage
Copyright © 2012 Muhammad Baqar Qazi.
© Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org
18
Questions
?

More Related Content

What's hot

Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademynirmalamanjunath
 
Css presentation lecture 1
Css presentation lecture 1Css presentation lecture 1
Css presentation lecture 1Mudasir Syed
 
How IKANOW uses MongoDB to help organizations solve really big problems
How IKANOW uses MongoDB to help organizations solve really big problemsHow IKANOW uses MongoDB to help organizations solve really big problems
How IKANOW uses MongoDB to help organizations solve really big problemsikanow
 
Html & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshopHtml & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshopVero Rebagliatte
 
Html css workshop, lesson 0, how browsers work
Html css workshop, lesson 0, how browsers workHtml css workshop, lesson 0, how browsers work
Html css workshop, lesson 0, how browsers workAlbino Tonnina
 
Content Modelling Workshop (J Gollner TC World 2013)
Content Modelling Workshop (J Gollner TC World 2013)Content Modelling Workshop (J Gollner TC World 2013)
Content Modelling Workshop (J Gollner TC World 2013)Joe Gollner
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Devang Garach
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_mediaDhairya Joshi
 

What's hot (13)

Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademy
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
 
Unit iv xml dom
Unit iv xml domUnit iv xml dom
Unit iv xml dom
 
Css presentation lecture 1
Css presentation lecture 1Css presentation lecture 1
Css presentation lecture 1
 
Html 2
Html 2Html 2
Html 2
 
How IKANOW uses MongoDB to help organizations solve really big problems
How IKANOW uses MongoDB to help organizations solve really big problemsHow IKANOW uses MongoDB to help organizations solve really big problems
How IKANOW uses MongoDB to help organizations solve really big problems
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
 
CSS
CSSCSS
CSS
 
Html & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshopHtml & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshop
 
Html css workshop, lesson 0, how browsers work
Html css workshop, lesson 0, how browsers workHtml css workshop, lesson 0, how browsers work
Html css workshop, lesson 0, how browsers work
 
Content Modelling Workshop (J Gollner TC World 2013)
Content Modelling Workshop (J Gollner TC World 2013)Content Modelling Workshop (J Gollner TC World 2013)
Content Modelling Workshop (J Gollner TC World 2013)
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
 

Viewers also liked

Error reporting in php
Error reporting in php Error reporting in php
Error reporting in php Mudasir Syed
 
PHP mysql Installing my sql 5.1
PHP mysql  Installing my sql 5.1PHP mysql  Installing my sql 5.1
PHP mysql Installing my sql 5.1Mudasir Syed
 
Web forms and html lecture Number 5
Web forms and html lecture Number 5Web forms and html lecture Number 5
Web forms and html lecture Number 5Mudasir Syed
 
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminAdminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminMudasir Syed
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2Mudasir Syed
 
Cookies in php lecture 2
Cookies in php  lecture  2Cookies in php  lecture  2
Cookies in php lecture 2Mudasir Syed
 
Time manipulation lecture 1
Time manipulation lecture 1 Time manipulation lecture 1
Time manipulation lecture 1 Mudasir Syed
 
Cookies in php lecture 1
Cookies in php lecture 1Cookies in php lecture 1
Cookies in php lecture 1Mudasir Syed
 
PHP mysql Database normalizatin
PHP mysql  Database normalizatinPHP mysql  Database normalizatin
PHP mysql Database normalizatinMudasir Syed
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagramMudasir Syed
 
Reporting using FPDF
Reporting using FPDFReporting using FPDF
Reporting using FPDFMudasir Syed
 
PHP mysql Mysql joins
PHP mysql  Mysql joinsPHP mysql  Mysql joins
PHP mysql Mysql joinsMudasir Syed
 
Time manipulation lecture 2
Time manipulation lecture 2Time manipulation lecture 2
Time manipulation lecture 2Mudasir Syed
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2Mudasir Syed
 
String functions and operations
String functions and operations String functions and operations
String functions and operations Mudasir Syed
 
Form validation with built in functions
Form validation with built in functions Form validation with built in functions
Form validation with built in functions Mudasir Syed
 

Viewers also liked (20)

Error reporting in php
Error reporting in php Error reporting in php
Error reporting in php
 
Php Mysql
Php Mysql Php Mysql
Php Mysql
 
PHP mysql Installing my sql 5.1
PHP mysql  Installing my sql 5.1PHP mysql  Installing my sql 5.1
PHP mysql Installing my sql 5.1
 
Web forms and html lecture Number 5
Web forms and html lecture Number 5Web forms and html lecture Number 5
Web forms and html lecture Number 5
 
Ajax
Ajax Ajax
Ajax
 
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminAdminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
 
PHP mysql Sql
PHP mysql  SqlPHP mysql  Sql
PHP mysql Sql
 
Cookies in php lecture 2
Cookies in php  lecture  2Cookies in php  lecture  2
Cookies in php lecture 2
 
Time manipulation lecture 1
Time manipulation lecture 1 Time manipulation lecture 1
Time manipulation lecture 1
 
Cookies in php lecture 1
Cookies in php lecture 1Cookies in php lecture 1
Cookies in php lecture 1
 
PHP mysql Database normalizatin
PHP mysql  Database normalizatinPHP mysql  Database normalizatin
PHP mysql Database normalizatin
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagram
 
Reporting using FPDF
Reporting using FPDFReporting using FPDF
Reporting using FPDF
 
Sql select
Sql select Sql select
Sql select
 
PHP mysql Mysql joins
PHP mysql  Mysql joinsPHP mysql  Mysql joins
PHP mysql Mysql joins
 
Time manipulation lecture 2
Time manipulation lecture 2Time manipulation lecture 2
Time manipulation lecture 2
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
 
String functions and operations
String functions and operations String functions and operations
String functions and operations
 
Form validation with built in functions
Form validation with built in functions Form validation with built in functions
Form validation with built in functions
 

Similar to Web forms and html lecture Number 2

Similar to Web forms and html lecture Number 2 (20)

DITA and SEO
DITA and SEODITA and SEO
DITA and SEO
 
Dom Structure in html
Dom Structure in htmlDom Structure in html
Dom Structure in html
 
Unit 01 (1).pdf
Unit 01 (1).pdfUnit 01 (1).pdf
Unit 01 (1).pdf
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTML
 
Khoa dang (kay)
Khoa dang (kay)Khoa dang (kay)
Khoa dang (kay)
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basics
 
Introduction web tech
Introduction web techIntroduction web tech
Introduction web tech
 
web development process WT
web development process WTweb development process WT
web development process WT
 
Html part 2
Html part 2Html part 2
Html part 2
 
Intro to html revised2
Intro to html revised2Intro to html revised2
Intro to html revised2
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html5 shubelal
Html5 shubelalHtml5 shubelal
Html5 shubelal
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
Website/Web Applications / Static vs Dynamic Website / Web Browser /
Website/Web Applications  / Static vs Dynamic Website / Web Browser / Website/Web Applications  / Static vs Dynamic Website / Web Browser /
Website/Web Applications / Static vs Dynamic Website / Web Browser /
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
 
Web development using html and wordpress
Web development using html and wordpressWeb development using html and wordpress
Web development using html and wordpress
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 

More from Mudasir Syed

Filing system in PHP
Filing system in PHPFiling system in PHP
Filing system in PHPMudasir Syed
 
PHP mysql Introduction database
 PHP mysql  Introduction database PHP mysql  Introduction database
PHP mysql Introduction databaseMudasir Syed
 
PHP mysql Aggregate functions
PHP mysql Aggregate functionsPHP mysql Aggregate functions
PHP mysql Aggregate functionsMudasir Syed
 
Form validation server side
Form validation server side Form validation server side
Form validation server side Mudasir Syed
 
Form validation client side
Form validation client side Form validation client side
Form validation client side Mudasir Syed
 
Javascript lecture 4
Javascript lecture  4Javascript lecture  4
Javascript lecture 4Mudasir Syed
 
Javascript lecture 3
Javascript lecture 3Javascript lecture 3
Javascript lecture 3Mudasir Syed
 
Java script lecture 1
Java script lecture 1Java script lecture 1
Java script lecture 1Mudasir Syed
 

More from Mudasir Syed (12)

Filing system in PHP
Filing system in PHPFiling system in PHP
Filing system in PHP
 
PHP mysql Introduction database
 PHP mysql  Introduction database PHP mysql  Introduction database
PHP mysql Introduction database
 
PHP mysql Aggregate functions
PHP mysql Aggregate functionsPHP mysql Aggregate functions
PHP mysql Aggregate functions
 
Form validation server side
Form validation server side Form validation server side
Form validation server side
 
Form validation client side
Form validation client side Form validation client side
Form validation client side
 
Javascript lecture 4
Javascript lecture  4Javascript lecture  4
Javascript lecture 4
 
Javascript lecture 3
Javascript lecture 3Javascript lecture 3
Javascript lecture 3
 
Javascript 2
Javascript 2Javascript 2
Javascript 2
 
Java script lecture 1
Java script lecture 1Java script lecture 1
Java script lecture 1
 
Dom in javascript
Dom in javascriptDom in javascript
Dom in javascript
 
Functions in php
Functions in phpFunctions in php
Functions in php
 
PHP array 2
PHP array 2PHP array 2
PHP array 2
 

Recently uploaded

Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 

Recently uploaded (20)

Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 

Web forms and html lecture Number 2

  • 1. By: Muhammad Baqar Qazi. Copyright © 2012 Muhammad Baqar Qazi.
  • 2.
  • 3. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 3 What Is the World Wide Web? • The World Wide Web—The Web. • It’s a network of computers – able to exchange text, graphics, and multimedia information via the Internet. • You can visit Web-connected computers – next door, at a nearby university, – halfway around the world. Using either a dialup phone line or a much faster broadband (Ethernet, cable, or DSL connection). • One can take full advantage of the resources these computers make available, including: – text, – graphics, – videos, – sounds, – animation. • Think of the Web as the multimedia version of the Internet, and you’ll be right on the mark. Copyright © 2012 Muhammad BaqarQazi.
  • 4. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 4 What is Hypertext? • The word “hypertext” is a type of text that contains hyperlinks (or just links for short), which enable the reader to jump from one hypertext page to another. • Hypertext gives readers the ability to choose their own path through the material that interests them. • Example: – A book is designed to be read in sequence: Page 2 follows page 1, and so on. – Sure, you can skip around, but books don’t provide much help, beyond including an index. – Computer-based hypertexts let readers jump around all they want. – The computer part is important because it’s hard to build a hypertext system out of physical media, such as index cards or pieces of paper. • The Web is a giant computer-based hypermedia system, and you’ve probably already done lots of jumping around from one page to another on the Web—it’s called “Surfing”. Copyright © 2012 Muhammad BaqarQazi.
  • 5. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 5 Hypertext Markup Language(Html) • Markup language uses tags to identify content. It does not perform functions as in scripting languages. • HTML is a language for describing how pages of text, graphics, and other information are organized and linked together. Or • HTML enables you to mark up text so that it can function as hypertext on the Web. • HTML and HTTP were both invented by Tim Berners-Lee. • The basic structure of an HTML document includes tags, which surround content and apply meaning to it. • The html consist of Elements tags, attributes and values . Copyright © 2012 Muhammad BaqarQazi.
  • 6. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 6 Elements And Tags • An element is a construct(made by combination) consisting (usually) of : – An opening tag, – some optional attributes and their respective values, – some content, – a closing tag. • Elements can contain any number of further elements, which are, in turn, made up of – tags, – attributes, – values, – content. – The opening tag can contain multiple attributes, but it cannot contain other elements or tags, while the closing tag cannot contain anything but itself. <a href = “abc.html” > My content </a> Angle Brackets Content TagAttribute Value Copyright © 2012 Muhammad BaqarQazi.
  • 7. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 7 Elements Continued.. • Not all elements have closing tags. • The above said elements are called as self-closing elements, empty elements, or replaced elements – where as the elements with ending and closing tags are called as paired, container tags. • For example: <br>, and <hr>. • A self-closing element requires a space and a trailing slash, • such as <br /> or <hr />. Attributes • Attributes appear within tags, and they can only contain the value of the attribute. • They can have multiple values separated by space. Copyright © 2012 Muhammad BaqarQazi.
  • 8. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 8 HTML V/S XHTML • XHTML stands for EXtensible HyperText Markup Language. • XHTML is almost identical to HTML 4.01 and is a stricter and cleaner version of HTML. • There are several rules that apply to XHTML that do not apply to HTML. – The <html>, <head>, and <body> tags are all required in XHTML. – The <html> tag must have an xmlns attribute with a value of http://www.w3.org/1999/xhtml. – All elements must be closed - opening tag must have either an equal closing tag (if it’s a container tag) or a self-closing space-plus-slash. – All tags must be written in lowercase. – All attribute values must be quoted with either single quotes or double quotes. – All attributes must have values. Copyright © 2012 Muhammad Baqar Qazi.
  • 9. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 9 Basic Html Page Structure • All HTML documents have three, document-level tags in common. These tags, 1. <html>, 2. <head>, 3. <body>, delimit certain sections of the HTML document. <html> <head> <title>Basic Page Structure</title> </head> <body> THIS Is my Html Document </body> </html> Copyright © 2012 Muhammad Baqar Qazi.
  • 10. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 10 Html • The <html> tag surrounds the entire HTML document. • This tag tells the client browser where the document begins and ends. Head • The <head> tag delimits the heading of the HTML document. or • The <head> element creates a header section for the document. • The heading section of the document contains certain heading information for the document that is not actually content. • The document’s title, • Meta information, • Document scripts are all contained in the <head> section. • Head portion contain invisible stuff that make page work. Body • This is the main body of an HTML document where all of the content is placed. • This is the content that people will see, hear, or otherwise experience when they visit the web page. Copyright © 2012 Muhammad Baqar Qazi.
  • 11. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 11 Title Tag • You should specify a title for every page that you write inside the <title> element. This element is a child of the <head> element). It is used in several ways: • It displays at the very top of a browser window. • It is used as the default name for a bookmark in browsers. • Therefore it is important to use a title that really describes the content of your site. • The <title> element should contain only the text for the title and it may not contain any other elements. Copyright © 2012 Muhammad Baqar Qazi.
  • 12. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 12 Meta Tag • Metadata is data (information) about data, – that will not be displayed on the page – Can be used by the various processes such as, Web Browser and Webserver. • Helps in Search Engine Optimization(SEO). • HTML lets authors specify meta data -- information about a document rather than document content -- in a variety of ways. • Examples • Define keywords for search engines: <meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript"> • Example 2 - Define a description of your web page: <meta name="description" content="Free Web tutorials on HTML and CSS"> • Example 3 - Define the author of a page: <meta name="author" content="Hege Refsnes"> • Example 4 - Refresh document every 30 seconds: <meta http-equiv="refresh" content="30"> <meta http-equiv="refresh" content="3; url=http://www.google.com" > • Example 5 – Define Charter Set For Page : <meta charset="UTF-8"> <meta http-equiv="content-type" content="text/html; charset=UTF-8" > Copyright © 2012 Muhammad Baqar Qazi.
  • 13. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 13 Generic Attributes • Attributes are used to amplify tags. • What we mean by amplify is that when a web browser interprets a tag, it will also search for set attributes and then display the element (tags+attributes) in its entirety. • Many HTML tags have a unique set of their own attributes. Attribute Options Function align right, left, center Horizontally aligns tags valign top, middle, bottom Vertically aligns tags within an HTML element. bgcolor numeric, hexidecimal, RGB values Places a background color behind an element background URL Places an background image behind an element id User Defined Names an element for use with Cascading Style Sheets. class User Defined Classifies an element for use with Cascading Style Sheets. width Numeric Value Specifies the width of tables, images, or table cells. height Numeric Value Specifies the height of tables, images, or table cells. title User Defined "Pop-up" title for your elements. Copyright © 2012 Muhammad Baqar Qazi.
  • 14. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 14 Html Formatting Tags Headings(<h1> to <h6>): – Any documents starts with a heading. – You use different sizes for your headings. – Html has headings raging from 1 to 6. – It is a paired Tag. – Example: <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> Paragraph Tag <p>: •Publishing any kind of written works requires the use of a paragraph. •The <p> tag defines a paragraph. Using this tag places a blank line above and below the text of the paragraph. – It is a paired Tag. •You can use align attribute to align your paragraphs. – Left – Center – Right – Justify •Example: <p>This is paragraph</p> Copyright © 2012 Muhammad Baqar Qazi.
  • 15. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 15 Html Formatting Tags Line Breaks - The <br /> : • A line break ends the line you are currently on and resumes on the next line. •Placing <br /> within the code is the same as pressing the return key in a word processor. •Example: Line break Really works<br/> Horizontal Rules - <hr /> : •Horizontal rules are used to visually break up sections of a document. •The <hr> tag creates a line from the current position in the document to the right margin and breaks the line accordingly. •Example: Hidaya Foundation<hr/> Hidaya Trust Preserve Formatting - <pre> : •Sometimes you want the text to appear in same format as it was typed in – make use of <pre> …</pre> tags. •Example: <pre> Hidaya Foundation Hidaya Trust Hidaya Institute Of Science And Technology </pre> Bold and Italic Text - (<b>..<b/> <i>..</i> ): •If one wants to make the fonts of content bold , italic – can make use of <b> and <i> tags with respective ending tags. •Example: This <b>Bold</b> and <i>Italicized </i> text. Copyright © 2012 Muhammad Baqar Qazi.
  • 16. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 16 Comments In Html • A comment is a way for you as the web page developer to control what lines of code are to be ignored by the web browser. • Placing notes and reminders to yourself is a great way to remind yourself what pieces of code are doing what. • Syntax for commenting <!-- Code Successfully Commented --> Suppose if there is you are using a client side scripting language then: <script> <!-- document.write("Hello World!") //--> </script> Copyright © 2012 Muhammad Baqar Qazi.
  • 17. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 17 Assignments • Write 10 to 15 tags with details • Make a html webpage Copyright © 2012 Muhammad Baqar Qazi.
  • 18. © Copyright 2012 Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 18 Questions ?