SlideShare a Scribd company logo
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 codecademy
nirmalamanjunath
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
Joel Linquico
 
Unit iv xml dom
Unit iv xml domUnit iv xml dom
Unit iv xml dom
smitha273566
 
Css presentation lecture 1
Css presentation lecture 1Css presentation lecture 1
Css presentation lecture 1
Mudasir Syed
 
Html 2
Html 2Html 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
ikanow
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
University of Technology
 
CSS
CSSCSS
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
Vero 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 work
Albino 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-3
Devang Garach
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
Dhairya 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
Php Mysql Php Mysql
Php Mysql
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.1
Mudasir 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 5
Mudasir Syed
 
Ajax
Ajax Ajax
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminAdminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
Mudasir Syed
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
Mudasir Syed
 
PHP mysql Sql
PHP mysql  SqlPHP mysql  Sql
PHP mysql Sql
Mudasir Syed
 
Cookies in php lecture 2
Cookies in php  lecture  2Cookies in php  lecture  2
Cookies in php lecture 2
Mudasir 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 1
Mudasir Syed
 
PHP mysql Database normalizatin
PHP mysql  Database normalizatinPHP mysql  Database normalizatin
PHP mysql Database normalizatin
Mudasir Syed
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagram
Mudasir Syed
 
Reporting using FPDF
Reporting using FPDFReporting using FPDF
Reporting using FPDF
Mudasir Syed
 
Sql select
Sql select Sql select
Sql select
Mudasir Syed
 
PHP mysql Mysql joins
PHP mysql  Mysql joinsPHP mysql  Mysql joins
PHP mysql Mysql joins
Mudasir Syed
 
Time manipulation lecture 2
Time manipulation lecture 2Time manipulation lecture 2
Time manipulation lecture 2
Mudasir Syed
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
Mudasir 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

DITA and SEO
DITA and SEODITA and SEO
DITA and SEO
IXIASOFT
 
Dom Structure in html
Dom Structure in htmlDom Structure in html
Unit 01 (1).pdf
Unit 01 (1).pdfUnit 01 (1).pdf
Unit 01 (1).pdf
sayalishivarkar1
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTML
Rich Dron
 
Khoa dang (kay)
Khoa dang (kay)Khoa dang (kay)
Khoa dang (kay)
halfofdemon
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
clement swarnappa
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basics
messinam
 
Introduction web tech
Introduction web techIntroduction web tech
Introduction web tech
Liaquat Rahoo
 
web development process WT
web development process WTweb development process WT
Html part 2
Html part 2Html part 2
Html part 2
lokenra
 
Intro to html revised2
Intro to html revised2Intro to html revised2
Intro to html revised2
mmvidanes29
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
nobel mujuji
 
Html presentation
Html presentationHtml presentation
Html presentation
Jordan Dichev
 
Html5 shubelal
Html5 shubelalHtml5 shubelal
Html5 shubelal
Shub
 
BSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptxBSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptx
VikasTuwar1
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
Karthikeyan Dhanasekaran CUA
 
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 /
Sachin Yadav
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
Marlon Jamera
 
Web development using html and wordpress
Web development using html and wordpressWeb development using html and wordpress
Web development using html and wordpress
Dakshata Gavand
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1
BeeNear
 

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)
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 
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
 
BSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptxBSC notes of _HTML_Easyto understand lease see.pptx
BSC notes of _HTML_Easyto understand lease see.pptx
 
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
 

More from Mudasir Syed

Filing system in PHP
Filing system in PHPFiling system in PHP
Filing system in PHP
Mudasir Syed
 
PHP mysql Introduction database
 PHP mysql  Introduction database PHP mysql  Introduction database
PHP mysql Introduction database
Mudasir Syed
 
PHP mysql Aggregate functions
PHP mysql Aggregate functionsPHP mysql Aggregate functions
PHP mysql Aggregate functions
Mudasir 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 4
Mudasir Syed
 
Javascript lecture 3
Javascript lecture 3Javascript lecture 3
Javascript lecture 3
Mudasir Syed
 
Javascript 2
Javascript 2Javascript 2
Javascript 2
Mudasir Syed
 
Java script lecture 1
Java script lecture 1Java script lecture 1
Java script lecture 1
Mudasir Syed
 
Dom in javascript
Dom in javascriptDom in javascript
Dom in javascript
Mudasir Syed
 
Functions in php
Functions in phpFunctions in php
Functions in php
Mudasir Syed
 
PHP array 2
PHP array 2PHP array 2
PHP array 2
Mudasir 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

Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
IsmaelVazquez38
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
ImMuslim
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
EduSkills OECD
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 

Recently uploaded (20)

Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 

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 ?