SlideShare a Scribd company logo
HTML
Session-1
Prepared by: Vidhi Mehta
Introduction to HTML
• HTML stands for ”Hyper Text Mark-Up Language”.
• It allows us to create a kind of documents that
can be viewed on any machine, in any
operating system, in a similar way.
• The document created using this language is
called webpage.
• The clickable text in these web pages, which
can point to a file document or a webpage is
called Hyperlink or “Hyper Text” .
Types of HTML Pages
• HTML pages are of two types:
 Static
Static pages, as the name indicates, comprise
static content (text or images).
 Dynamic
Dynamic pages are those where the content of
the web page depend on user input. So interaction
with the user is required in order to display the web
page.
The Document Heading & Naming Your
Document
• The purpose of the head is to provide
information to the application that is
interpreting the document.
• The TITLE element is the only required
element of the heading. It is used to give
your document a name. This title is
generally displayed in the title bar of the
browser.
TAG
• An HTML tag is a signal to the browser that it should
do something other than just throw text up on the
screen. All HTML tags begin with an open angle
bracket (<) and end with close angle bracket (>).
• Syntax:
<TAG ATTRIBUTE1=VALUE 1 ATTRIBUTE2=VALUE 2 ..>
ITEM TO BE FORMATTED
</TAG>
Continue…
• HTML tags can be of two types:
1. Paired Tags
A tag is said to be a paired tag if it, along
with a companion tag. For example Bold tag is
a paired tag.
2. Singular Tags
The second type of tag is singular tag or
stand-alone tag. A stand-alone tag does not
have a companion tag.
GENERAL STRUCTURE OF A HTML WEBPAGE
<HTML>
<HEAD>
<TITLE> This is my first HTML page </TITLE>
</HEAD>
<BODY>
ENTER BODY TEXT HERE.
</BODY>
</HTML>
The Document Heading & Naming Your
Document
• The purpose of the head is to provide
information to the application that is
interpreting the document.
• The TITLE element is the only required
element of the heading. It is used to give
your document a name. This title is
generally displayed in the title bar of the
browser.
The Document Body
• The Body of a web page can be created by
<BODY> tag and it will end with </BODY> tag,
between this tags you can give text or you can
use other HTML tags to create different elements
within a webpage. Syntax..
<BODY TEXT=”color code” BACKGROUND=”path of
image” BGCOLOR=”color code” LINK=”color
code” VLINK=”color code” ALINK=”color code”>
----------------
</BODY>
Attribute Function
TEXT Defines the color of the text
BACKGROUND Points to the URL of an image to use
for the document background.
BGCOLOR Defines the color of the document
background.
LINK Defines the color of an unvisited link.
VLINK Defines the color of an already visited
link.
ALINK Defines the color of an active link.
Comments in HTML Documents
• The syntax of writing comments is as
below…….
<!--text written as comment -->
Basic Tags
• Font :- To manipulate font color and font sizes
font tag is used, it has the following syntax…
• <FONT FACE=”Font Name” SIZE=”Font Size”
COLOR=”Color Code”>
. . . . . .
</FONT>
Attribute Function
Face It is used to specify font name. It can
take more than one values Separated with
comma. For example :
<font face=”verdana” , ”arial”>
Size This attribute is used to specify font as
absolute size or relative size. Absolute
size is a number between 1 to 7, 1 being
smallest and 7 largest.
Color It is used to specify text color.
Block-level
• Block-level elements are used to format whole blocks
of text.Element Function
Paragraph
<P>...</P>
It is used to keep some specific paragraph or related
content in one section of a document. The division
(<div>…</div>) element has same function as of
paragraph, but <div> can’t work with all browsers. The
<P> and <DIV> both elements have one ALIGN
attribute. The possible values for the ALIGN
attribute and their functions are listed below.
Heading
<hi>...</hi>
i = 1 to 6
These elements are generally used to create headings
at different levels. <h1> delimits the highest-level
heading, <h2> the next level down (sub-
section), <h3> for a level below that, and so on
to <h6>.
Continue..
Element Function
Center
<center>…
</center>
It is used to display contents of the
document in the center of the screen.
Block quote
<blockquote>…
</blockquote>
A browser inserts white space before and
after a blockquote element. It also insert
margins for the blockquote element.
Address
<address>...
</address>
This is where you identify yourself as the
author of the document. Any copyright
information for the material in the page can
be placed here as well. The address element
is normally placed at either the top or bottom
of a document.
Element Function
Preformatted
<pre>...
</pre>
This element is useful when we want to
write the content of webpage in pre-
decided format. In short, this tag is used to
retain all white spaces and line breaks in
between contents. In other sense, this
element preserves white spaces and other
formatting characters. For example:
<PRE>INDIA PAKISTAN
SHRILANKA
AUSTRALIA
Text Related Tags
Presentational Elements
Element Function
Bold
<b>...</b>
The bold element uses a bold font to
display the text.
For example:- This is in <B>bold</B> text.
Italic
<i>...</i>
The italic element renders text using an
italic font.
For example:- This is in <I>italic</I> text.
Underline
<u>...</u>
The underline element causes text to be
underlined in the viewer.
For example:- This text is
<U>underlined</U>.
Continue…
Element Function
Type writing
<tt>...</tt>
The teletype element displays the contents
with a mono spaced typewriter font.
For example:- This is in <TT>teletype</TT>
text.
Strike
<strike>...
</strike>
The strikethrough element draws a horizontal
line through the middle of the text.
For example:- This is a <STRIKE> strike
through </STRIKE> example.
Big
<big>...</big>
The big print element uses a larger font size
to display the text.
For example:- This is <BIG>big</BIG> text.
Element Function
Small
<small>...
</small>
The small print element displays the text in a
smaller font size.
For example:- This is <SMALL>small</SMALL>
text.
Subscript
<sub>...</sub>
The subscript element moves the text lower
than the surrounding text and (if possible)
displays the text in a smaller size font.
For example:-H<SUB>2</SUB>O.
Superscript
<sup>...</sup>
The superscript element moves the text higher
than the surrounding text and (if possible)
displays the text in a smaller size font.
For example:-
a<SUP>2</SUP>+B<SUP>2</SUP>=1
Continue…
Logical Text Level Elements
Element Function
Quotation
<q>...</q>
It is a short quotation from another source. Modern
browsers will display contained text with quotation
marks added on both sides.
For example:- This will be displayed in <q>double
quotation<q>.
Emphasis
<em>...</em>
The emphasis element is used to indicate a section of
text that the author wants to identify as significant.
Emphasis is generally shown in an italic font.
For example:- Education is very <EM> Important
</EM>.
Strong
<strong>...<s
trong>
The strong element is used to emphasize a particularly
important section of text. Text using strong emphasis
is normally set in a bold font.
For example:- This will display
<STRONG>strong</STRONG>.
Continue…
Element Function
Citation
<cite>...</cite>
The citation element is used to indicate the
citation of a quotation. It can also be used to
indicate the title of a book or article. An italic font
is normally used to display citations.
For example:-This book is published by
<CITE>ATUL PREKASHAN,
AHMEDABAD</CITE>.
Keyboard
<kbd>…</kbd>
The keyboard element is used to indicate a user
entry response. A monospaced typewriter font is
normally used to display keyboard text.
For example:-To run the decoder, type
<KBD>Restore</KBD> followed by your password.
Variable
<var>…</var>
The variable element is used to indicate a dummy
variable name. Variables are normally viewed in an
italic font.
For example:-The sort routine rotates on the
<VAR>I</VAR>the element.
Continue..
Element Function
Code
<code>…</c
ode>
The code element is used to indicate a small
amount of computer code. It is generally
reserved for short sections. Code normally
appears in a monospaced font.
For example:-One of the first lines that every C
programmer learns is:<BR> <CODE>puts(“Hello
World!”);</CODE>.
Sample text
<samp>…</s
amp>
The samp element is used for indicating sample
output from a computer program, script etc.
For example:- This is <samp>Sample computer
output code text</samp>
Definition
Term
<dfn>…
</dfn>
The dfn elementis used for indicating a
definition.
For example:- This is <dfn>Definition term
</dfn>.
Other Elements
• Break (<BR>) :-
The break element is used to break the line
after typing the first sentence and to write the
content in second line.
• Horizontal rule (<HR>) :-
You can create a horizontal line using the
horizontal rule element, <HR>. This tag draws a
shaded, horizontal line across the viewer's display.
The <HR> tag does not require an end tag. There is
an implied paragraph break before and after a
horizontal rule.
• The attributes supported by <hr> element are as
follows.
Attribute Function
ALIGN Can be set to LEFT, CENTER, or RIGHT.
WIDTH Can be entered in pixels or as a percentage of
the viewer window width. If a percentage is
desired, add a percent time to the number.
SIZE The height of the ruled line in pixels.
NOSHADE If this attribute is present, the viewer does
not use a three-dimensional effect.
Image Tag
• To manage images and their attributes within web
page HTML has <IMG> tag.
<IMG src=”path of an image” align=right
alt=”alternate text to be displayed” border=”width of
the border” height=”height of an image”
width=”width of an image” hspace=”horizontal
space” vspace=”vertical space” usemap=”name of
the map file” ismap>
Attribute Function
SRC Used to specify path of the image.
ALIGN Used to set the alignment of the image relative to the text around it
ALT Used to specify alternative text to be displayed in case when image
cannot be loaded.
BORDER Used to specify width of border to be displayed around image.
HEIGHT Used to specify height of an image.
WIDTH Used to specify WIDTH of an image.
HSPACE Used to specify horizontal space around the image.
VSPACE Used to specify vertical space around the image.
USEMAP It is associated with a map element's name or id attribute, and creates
a relationship between the image and the map.
ISMAP It causes an image to function as a graphical navigation tool, when
combined with an anchor tag.
Thank You

More Related Content

What's hot

What's hot (20)

Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTHWeb programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
 
The Complete HTML
The Complete HTMLThe Complete HTML
The Complete HTML
 
Html book2
Html book2Html book2
Html book2
 
HTML or Hypertext Markup Language
HTML or Hypertext Markup LanguageHTML or Hypertext Markup Language
HTML or Hypertext Markup Language
 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Session4
Session4Session4
Session4
 
Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Chapter 6 html
Chapter 6 htmlChapter 6 html
Chapter 6 html
 
Mark-up languages
Mark-up languagesMark-up languages
Mark-up languages
 
Html
HtmlHtml
Html
 
Html basics
Html basicsHtml basics
Html basics
 
Web programming by Najeeb ullahAzad(1)
Web programming by Najeeb ullahAzad(1)Web programming by Najeeb ullahAzad(1)
Web programming by Najeeb ullahAzad(1)
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
CLASS VII COMPUTERS HTML
CLASS VII COMPUTERS HTML CLASS VII COMPUTERS HTML
CLASS VII COMPUTERS HTML
 
Html
HtmlHtml
Html
 
Xhtml
XhtmlXhtml
Xhtml
 
Html ppt
Html pptHtml ppt
Html ppt
 

Similar to Html session1,2,3

Html update1(30 8-2009)
Html update1(30 8-2009)Html update1(30 8-2009)
Html update1(30 8-2009)himankgupta31
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfAAFREEN SHAIKH
 
Week-1_PPT_WEBAPPS-done.pptx
Week-1_PPT_WEBAPPS-done.pptxWeek-1_PPT_WEBAPPS-done.pptx
Week-1_PPT_WEBAPPS-done.pptxJuvyIlustrisimo
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxMohammadRafsunIslam
 
web development.pdf
web development.pdfweb development.pdf
web development.pdfBagHarki
 
Web Design Lecture2.pptx
Web Design Lecture2.pptxWeb Design Lecture2.pptx
Web Design Lecture2.pptxMohammedNoor74
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3bluejayjunior
 
introduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML codingintroduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML codingmeheraf045
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.pptnavyar41
 

Similar to Html session1,2,3 (20)

Html update1(30 8-2009)
Html update1(30 8-2009)Html update1(30 8-2009)
Html update1(30 8-2009)
 
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdfHSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf
 
Week-1_PPT_WEBAPPS-done.pptx
Week-1_PPT_WEBAPPS-done.pptxWeek-1_PPT_WEBAPPS-done.pptx
Week-1_PPT_WEBAPPS-done.pptx
 
Html
HtmlHtml
Html
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
 
Html basic
Html basicHtml basic
Html basic
 
HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
 
Computer language - HTML tags
Computer language - HTML tagsComputer language - HTML tags
Computer language - HTML tags
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Web Design Lecture2.pptx
Web Design Lecture2.pptxWeb Design Lecture2.pptx
Web Design Lecture2.pptx
 
Hf html-cheat-sheet
Hf html-cheat-sheetHf html-cheat-sheet
Hf html-cheat-sheet
 
About html
About htmlAbout html
About html
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
HTML Tags
HTML Tags HTML Tags
HTML Tags
 
html tutorial
html tutorialhtml tutorial
html tutorial
 
introduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML codingintroduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML coding
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.ppt
 
intro-to-html
intro-to-htmlintro-to-html
intro-to-html
 

Recently uploaded

Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesThousandEyes
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupCatarinaPereira64715
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...Product School
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsExpeed Software
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Product School
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀DianaGray10
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...Product School
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsPaul Groth
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Product School
 

Recently uploaded (20)

Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 

Html session1,2,3

  • 2. Introduction to HTML • HTML stands for ”Hyper Text Mark-Up Language”. • It allows us to create a kind of documents that can be viewed on any machine, in any operating system, in a similar way. • The document created using this language is called webpage. • The clickable text in these web pages, which can point to a file document or a webpage is called Hyperlink or “Hyper Text” .
  • 3. Types of HTML Pages • HTML pages are of two types:  Static Static pages, as the name indicates, comprise static content (text or images).  Dynamic Dynamic pages are those where the content of the web page depend on user input. So interaction with the user is required in order to display the web page.
  • 4. The Document Heading & Naming Your Document • The purpose of the head is to provide information to the application that is interpreting the document. • The TITLE element is the only required element of the heading. It is used to give your document a name. This title is generally displayed in the title bar of the browser.
  • 5. TAG • An HTML tag is a signal to the browser that it should do something other than just throw text up on the screen. All HTML tags begin with an open angle bracket (<) and end with close angle bracket (>). • Syntax: <TAG ATTRIBUTE1=VALUE 1 ATTRIBUTE2=VALUE 2 ..> ITEM TO BE FORMATTED </TAG>
  • 6. Continue… • HTML tags can be of two types: 1. Paired Tags A tag is said to be a paired tag if it, along with a companion tag. For example Bold tag is a paired tag. 2. Singular Tags The second type of tag is singular tag or stand-alone tag. A stand-alone tag does not have a companion tag.
  • 7. GENERAL STRUCTURE OF A HTML WEBPAGE <HTML> <HEAD> <TITLE> This is my first HTML page </TITLE> </HEAD> <BODY> ENTER BODY TEXT HERE. </BODY> </HTML>
  • 8. The Document Heading & Naming Your Document • The purpose of the head is to provide information to the application that is interpreting the document. • The TITLE element is the only required element of the heading. It is used to give your document a name. This title is generally displayed in the title bar of the browser.
  • 9. The Document Body • The Body of a web page can be created by <BODY> tag and it will end with </BODY> tag, between this tags you can give text or you can use other HTML tags to create different elements within a webpage. Syntax.. <BODY TEXT=”color code” BACKGROUND=”path of image” BGCOLOR=”color code” LINK=”color code” VLINK=”color code” ALINK=”color code”> ---------------- </BODY>
  • 10. Attribute Function TEXT Defines the color of the text BACKGROUND Points to the URL of an image to use for the document background. BGCOLOR Defines the color of the document background. LINK Defines the color of an unvisited link. VLINK Defines the color of an already visited link. ALINK Defines the color of an active link.
  • 11. Comments in HTML Documents • The syntax of writing comments is as below……. <!--text written as comment -->
  • 12. Basic Tags • Font :- To manipulate font color and font sizes font tag is used, it has the following syntax… • <FONT FACE=”Font Name” SIZE=”Font Size” COLOR=”Color Code”> . . . . . . </FONT>
  • 13. Attribute Function Face It is used to specify font name. It can take more than one values Separated with comma. For example : <font face=”verdana” , ”arial”> Size This attribute is used to specify font as absolute size or relative size. Absolute size is a number between 1 to 7, 1 being smallest and 7 largest. Color It is used to specify text color.
  • 14. Block-level • Block-level elements are used to format whole blocks of text.Element Function Paragraph <P>...</P> It is used to keep some specific paragraph or related content in one section of a document. The division (<div>…</div>) element has same function as of paragraph, but <div> can’t work with all browsers. The <P> and <DIV> both elements have one ALIGN attribute. The possible values for the ALIGN attribute and their functions are listed below. Heading <hi>...</hi> i = 1 to 6 These elements are generally used to create headings at different levels. <h1> delimits the highest-level heading, <h2> the next level down (sub- section), <h3> for a level below that, and so on to <h6>.
  • 15. Continue.. Element Function Center <center>… </center> It is used to display contents of the document in the center of the screen. Block quote <blockquote>… </blockquote> A browser inserts white space before and after a blockquote element. It also insert margins for the blockquote element. Address <address>... </address> This is where you identify yourself as the author of the document. Any copyright information for the material in the page can be placed here as well. The address element is normally placed at either the top or bottom of a document.
  • 16. Element Function Preformatted <pre>... </pre> This element is useful when we want to write the content of webpage in pre- decided format. In short, this tag is used to retain all white spaces and line breaks in between contents. In other sense, this element preserves white spaces and other formatting characters. For example: <PRE>INDIA PAKISTAN SHRILANKA AUSTRALIA
  • 17. Text Related Tags Presentational Elements Element Function Bold <b>...</b> The bold element uses a bold font to display the text. For example:- This is in <B>bold</B> text. Italic <i>...</i> The italic element renders text using an italic font. For example:- This is in <I>italic</I> text. Underline <u>...</u> The underline element causes text to be underlined in the viewer. For example:- This text is <U>underlined</U>.
  • 18. Continue… Element Function Type writing <tt>...</tt> The teletype element displays the contents with a mono spaced typewriter font. For example:- This is in <TT>teletype</TT> text. Strike <strike>... </strike> The strikethrough element draws a horizontal line through the middle of the text. For example:- This is a <STRIKE> strike through </STRIKE> example. Big <big>...</big> The big print element uses a larger font size to display the text. For example:- This is <BIG>big</BIG> text.
  • 19. Element Function Small <small>... </small> The small print element displays the text in a smaller font size. For example:- This is <SMALL>small</SMALL> text. Subscript <sub>...</sub> The subscript element moves the text lower than the surrounding text and (if possible) displays the text in a smaller size font. For example:-H<SUB>2</SUB>O. Superscript <sup>...</sup> The superscript element moves the text higher than the surrounding text and (if possible) displays the text in a smaller size font. For example:- a<SUP>2</SUP>+B<SUP>2</SUP>=1 Continue…
  • 20. Logical Text Level Elements Element Function Quotation <q>...</q> It is a short quotation from another source. Modern browsers will display contained text with quotation marks added on both sides. For example:- This will be displayed in <q>double quotation<q>. Emphasis <em>...</em> The emphasis element is used to indicate a section of text that the author wants to identify as significant. Emphasis is generally shown in an italic font. For example:- Education is very <EM> Important </EM>. Strong <strong>...<s trong> The strong element is used to emphasize a particularly important section of text. Text using strong emphasis is normally set in a bold font. For example:- This will display <STRONG>strong</STRONG>.
  • 21. Continue… Element Function Citation <cite>...</cite> The citation element is used to indicate the citation of a quotation. It can also be used to indicate the title of a book or article. An italic font is normally used to display citations. For example:-This book is published by <CITE>ATUL PREKASHAN, AHMEDABAD</CITE>. Keyboard <kbd>…</kbd> The keyboard element is used to indicate a user entry response. A monospaced typewriter font is normally used to display keyboard text. For example:-To run the decoder, type <KBD>Restore</KBD> followed by your password. Variable <var>…</var> The variable element is used to indicate a dummy variable name. Variables are normally viewed in an italic font. For example:-The sort routine rotates on the <VAR>I</VAR>the element.
  • 22. Continue.. Element Function Code <code>…</c ode> The code element is used to indicate a small amount of computer code. It is generally reserved for short sections. Code normally appears in a monospaced font. For example:-One of the first lines that every C programmer learns is:<BR> <CODE>puts(“Hello World!”);</CODE>. Sample text <samp>…</s amp> The samp element is used for indicating sample output from a computer program, script etc. For example:- This is <samp>Sample computer output code text</samp> Definition Term <dfn>… </dfn> The dfn elementis used for indicating a definition. For example:- This is <dfn>Definition term </dfn>.
  • 23. Other Elements • Break (<BR>) :- The break element is used to break the line after typing the first sentence and to write the content in second line. • Horizontal rule (<HR>) :- You can create a horizontal line using the horizontal rule element, <HR>. This tag draws a shaded, horizontal line across the viewer's display. The <HR> tag does not require an end tag. There is an implied paragraph break before and after a horizontal rule.
  • 24. • The attributes supported by <hr> element are as follows. Attribute Function ALIGN Can be set to LEFT, CENTER, or RIGHT. WIDTH Can be entered in pixels or as a percentage of the viewer window width. If a percentage is desired, add a percent time to the number. SIZE The height of the ruled line in pixels. NOSHADE If this attribute is present, the viewer does not use a three-dimensional effect.
  • 25. Image Tag • To manage images and their attributes within web page HTML has <IMG> tag. <IMG src=”path of an image” align=right alt=”alternate text to be displayed” border=”width of the border” height=”height of an image” width=”width of an image” hspace=”horizontal space” vspace=”vertical space” usemap=”name of the map file” ismap>
  • 26. Attribute Function SRC Used to specify path of the image. ALIGN Used to set the alignment of the image relative to the text around it ALT Used to specify alternative text to be displayed in case when image cannot be loaded. BORDER Used to specify width of border to be displayed around image. HEIGHT Used to specify height of an image. WIDTH Used to specify WIDTH of an image. HSPACE Used to specify horizontal space around the image. VSPACE Used to specify vertical space around the image. USEMAP It is associated with a map element's name or id attribute, and creates a relationship between the image and the map. ISMAP It causes an image to function as a graphical navigation tool, when combined with an anchor tag.