SlideShare a Scribd company logo
1 of 18
Web Forms and
HTML
Sam
Lecture-1
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.
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”.
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 .
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
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.
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.
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>
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.
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.
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" >
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.
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>
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.
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>
Assignments
• Write 10 to 15 tags with details
• Make a html webpage
Questions
?

More Related Content

What's hot

Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
Jussi Pohjolainen
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basics
messinam
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
vikram singh
 
An Introduction to HTML
An Introduction to HTMLAn Introduction to HTML
An Introduction to HTML
crea8ivemoiz
 

What's hot (20)

Html 5
Html 5Html 5
Html 5
 
Elements of html powerpoint
Elements of html powerpointElements of html powerpoint
Elements of html powerpoint
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Web I - 02 - XHTML Introduction
Web I - 02 - XHTML IntroductionWeb I - 02 - XHTML Introduction
Web I - 02 - XHTML Introduction
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
 
HTML5
HTML5 HTML5
HTML5
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
 
Design Tools Html Xhtml
Design Tools Html XhtmlDesign Tools Html Xhtml
Design Tools Html Xhtml
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basics
 
Unit 2 (html)
Unit 2  (html)Unit 2  (html)
Unit 2 (html)
 
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
Web Site Designing - Basic
Web Site Designing - Basic Web Site Designing - Basic
Web Site Designing - Basic
 
An Introduction to HTML
An Introduction to HTMLAn Introduction to HTML
An Introduction to HTML
 
Origins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTMLOrigins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTML
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
 
Html formatting
Html formattingHtml formatting
Html formatting
 
Html
HtmlHtml
Html
 
Introduction to Web Technology
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web Technology
 

Viewers also liked (10)

Motivating Employees
Motivating EmployeesMotivating Employees
Motivating Employees
 
Html images
Html imagesHtml images
Html images
 
What is the point of having a good life if everything will end to death? How ...
What is the point of having a good life if everything will end to death? How ...What is the point of having a good life if everything will end to death? How ...
What is the point of having a good life if everything will end to death? How ...
 
Sa aking mga kabata
Sa aking mga kabataSa aking mga kabata
Sa aking mga kabata
 
The overall concept of financial management
The overall concept of financial managementThe overall concept of financial management
The overall concept of financial management
 
Bonds and their characteristcs
Bonds and their characteristcsBonds and their characteristcs
Bonds and their characteristcs
 
Psychological attributes of personality
Psychological attributes of personalityPsychological attributes of personality
Psychological attributes of personality
 
Hibik ng pilipinas sa inang espanya (trilogy)
Hibik ng pilipinas sa inang espanya (trilogy)Hibik ng pilipinas sa inang espanya (trilogy)
Hibik ng pilipinas sa inang espanya (trilogy)
 
Foundation of personality
Foundation of personalityFoundation of personality
Foundation of personality
 
Aspects of individual's personality
Aspects of individual's personalityAspects of individual's personality
Aspects of individual's personality
 

Similar to Web forms and html (lect 1)

web development.pdf
web development.pdfweb development.pdf
web development.pdf
BagHarki
 
introduction-to-html hyper text markup .ppt
introduction-to-html hyper text markup  .pptintroduction-to-html hyper text markup  .ppt
introduction-to-html hyper text markup .ppt
ubaidullah75790
 

Similar to Web forms and html (lect 1) (20)

Html
HtmlHtml
Html
 
Lecture 2 introduction to html basics
Lecture 2 introduction to html basicsLecture 2 introduction to html basics
Lecture 2 introduction to html basics
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptx
 
introdution-to-html.ppt coding programming
introdution-to-html.ppt coding programmingintrodution-to-html.ppt coding programming
introdution-to-html.ppt coding programming
 
Html
HtmlHtml
Html
 
Batch -25 PPT.pptx
Batch -25 PPT.pptxBatch -25 PPT.pptx
Batch -25 PPT.pptx
 
Presentation html
Presentation   htmlPresentation   html
Presentation html
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Html
HtmlHtml
Html
 
Std 10 Computer Chapter 1 introduction to HTML (Part 1)
Std 10 Computer Chapter 1  introduction to HTML (Part 1)Std 10 Computer Chapter 1  introduction to HTML (Part 1)
Std 10 Computer Chapter 1 introduction to HTML (Part 1)
 
Class1slides
Class1slidesClass1slides
Class1slides
 
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 /
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
 
LS2.1_V1_HTML.pptx
LS2.1_V1_HTML.pptxLS2.1_V1_HTML.pptx
LS2.1_V1_HTML.pptx
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
 
introduction-to-html hyper text markup .ppt
introduction-to-html hyper text markup  .pptintroduction-to-html hyper text markup  .ppt
introduction-to-html hyper text markup .ppt
 
WEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTMLWEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTML
 

More from Salman Memon

More from Salman Memon (20)

PHP Array very Easy Demo
PHP Array very Easy DemoPHP Array very Easy Demo
PHP Array very Easy Demo
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
How to Use Dreamweaver cs6
How to Use Dreamweaver cs6 How to Use Dreamweaver cs6
How to Use Dreamweaver cs6
 
what is programming and its clear Concepts to the point
what is programming and its clear Concepts to the point what is programming and its clear Concepts to the point
what is programming and its clear Concepts to the point
 
Working with variables in PHP
Working with variables in PHPWorking with variables in PHP
Working with variables in PHP
 
Web forms and html (lect 5)
Web forms and html (lect 5)Web forms and html (lect 5)
Web forms and html (lect 5)
 
Web forms and html (lect 4)
Web forms and html (lect 4)Web forms and html (lect 4)
Web forms and html (lect 4)
 
Web forms and html (lect 3)
Web forms and html (lect 3)Web forms and html (lect 3)
Web forms and html (lect 3)
 
Web forms and html (lect 2)
Web forms and html (lect 2)Web forms and html (lect 2)
Web forms and html (lect 2)
 
Managing in the Future Enterprise
Managing in the Future EnterpriseManaging in the Future Enterprise
Managing in the Future Enterprise
 
Overview of Technology Management
Overview of Technology ManagementOverview of Technology Management
Overview of Technology Management
 
Align Information Technology and Business Strategy
Align Information Technology and Business Strategy Align Information Technology and Business Strategy
Align Information Technology and Business Strategy
 
WHITE BOX & BLACK BOX TESTING IN DATABASE
WHITE BOX & BLACK BOXTESTING IN DATABASEWHITE BOX & BLACK BOXTESTING IN DATABASE
WHITE BOX & BLACK BOX TESTING IN DATABASE
 
Email security netwroking
Email security  netwrokingEmail security  netwroking
Email security netwroking
 
Email security - Netwroking
Email security - Netwroking Email security - Netwroking
Email security - Netwroking
 
Query decomposition in data base
Query decomposition in data baseQuery decomposition in data base
Query decomposition in data base
 
Time Management
Time Management Time Management
Time Management
 
Multimedea device and routes
Multimedea device and routesMultimedea device and routes
Multimedea device and routes
 
Hash function
Hash function Hash function
Hash function
 
Data clustring
Data clustring Data clustring
Data clustring
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 

Web forms and html (lect 1)

  • 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.
  • 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”.
  • 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 .
  • 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
  • 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.
  • 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.
  • 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>
  • 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.
  • 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.
  • 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" >
  • 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.
  • 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>
  • 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.
  • 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>
  • 17. Assignments • Write 10 to 15 tags with details • Make a html webpage