SlideShare a Scribd company logo
(HTML)
Hyper text markup language
TERMS TO KNOW BEFORE STARTING HTML:
 Internet
 Web page
 Websites
 Web browser
INTERNET:
The Internet is a
global network
connecting millions
of computers.
All countries are
linked into exchanges
of data, news and
opinions.
Web page
 A file usually written in HTML that can be read by a
Web browser.
A WEB BROWSER
 Browsers are basically software programs that allow
you to search for and view various kinds of
information on the Web, such as web sites, video,
audio, etc.
A WEBSITE :
A Website is a
collection of
documents known as
webpages.
The main page in a
website is called a
homepage, and other
pages in a website are
called subpages.
These are connected
by hyperlinks.
HTML(Hypertext Markup Language)
 HTML is a language for describing web pages.
 HTML is the language which browser understands.
Intro:
Hyper text markup language
Hypertext is simply a
piece of text that works
as a link.
A Markup Language is a
set of markup tags
HTML is “Interpreted” by your browser
 The browser reads and interprets the HTML text
(code) in real time
 Not all browsers interpret EXACTLY the same way,
so results may vary!
 However, it is very easy to make changes to the
HTML code and immediately see the effect….very
nice for debugging!
Remember!
 HTML tags are keywords surrounded by angle brackets
like <html>
 HTML tags normally come in pairs like <b> and </b>
 The first tag in a pair is the start tag, the second tag is the
end tag
 Start and end tags are also called opening tags and
closing tags
Structure and Syntax
 HTML has a very particular structure and
syntax
 The HTML Section
 The Header Section
 The BODY Section
Basic structure of HTML document
Contains information
which is not directly
displayed in the
browser, but browsers
may use it in other
ways.
Contains the content
to be displayed in the
browser and also the
code that tells the
browser how to render
the content.
head
body
Basic Document Structure
<HTML>
<HEAD>
<Title> </Title>
</HEAD>
<BODY>
</BODY>
</HTML>
signifies an HTML document
instructions about the document
visible pages elements go here
end of the HTML document
Common Tags
 Always include the <HTML>…</HTML> tags
 HTML documents
 HEAD section
 Information about the document
 Information in header not generally rendered in display window
 TITLE element names your Web page
 BODY section
 Page content
 Includes text, images, links, forms, etc.
 Elements include backgrounds, link colors and font faces
 P element forms a paragraph, blank line before and after
<Head> Section:
<html>
<head>
<title>My First HTML Document</title>
</head>
<body>
</body>
</html>
Titles in HTML
 titles appear in the title bar of the page
 titles create a frame of reference for the user
example:
<TITLE>My First Web Page</TITLE>
<BODY> Section:
 Paragraphs:
 HTML documents are divided into paragraphs.
 <P> tag forms a paragraph, blank line before and after.
 Headings
 Simple form of text formatting
 Vary text size based on the header’s
“level”(h1,h2,h3,h4,h5,h6).
 Can vary significantly between browsers
Simple HTML Commands
 HTML commands (also called “tags”) are always
enclosed in angle brackets. E.g., <title>
 Tags are case insensitive, so <title> and <TITLE>
mean the same thing.
Location of HTML Tags
 The effect of an HTML tag is usually independent of
where it appears when you are editing the HTML file
(e.g., does it appear at the start of a line, in the
middle, end of a line). So this is just as good.
<title>
War and Peace
</title>
A Simple HTML Example
<html>
<head>
<title> War and Peace </title>
</head>
<body>
<h1> Chapter 1 </h1> The end.
</body>
</html>
Says this is a HTML document
The following goes in the header
Start the main body
Chapter 1 gets made into a main heading
Close the main body, and the html document
Empty HTML Elements
 HTML elements with no content are called empty
elements.
 A very few elements are declared as EMPTY. This means
three things:
 They do not contain any text. They are used simply as
markers.
 EMPTY elements are not permitted to have an end-
tag.
 They are closed in start tag.
For Example :
 <br/> and <hr/>
<BODY> Section:
<html>
<head>
<title>My First HTML Document</title>
</head>
<body>
<h1> Hello World!!!</h1>
<p> This is my first WEB PAGE</p>
</body>
</html>
Levels of Heading tag:
 <h1> .. </h1>
 <h2 > .. </ h2>
 <h3 > .. </ h3>
 <h4 > .. </ h4>
 <h5 >.. </ h5>
 <h6 > .. </ h6>
<html>
<head>
</head>
<body>
<center>
<h1> Level 1 Header </h1>
<h2 > Level 2 Header </ h2>
<h3 > Level 3 Header </ h3>
<h4 > Level 4Header </ h4>
<h5 > Level 5 Header </ h5>
<h6 > Level 6 Header </ h6>
</center>
</body>
</html>
EXAMPLE:
Header elements H1 through H6
Text Styling
Text Styling
 Underline style
 <U>…</U>
 Align elements with ALIGN attribute
 right, left or center
 Close nested tags in the reverse order from which they
were opened
 Emphasis (italics) style
 <EM>…</EM>
 Strong (bold) style
 <STRONG>…</STRONG>
Example:
<html>
<body>
<p><b>This text is bold</b></p>
<p><strong>This text is strong</strong></p>
<p><i>This text is italic</i></p>
<p><em>This text is emphasized</em></p>
</body>
</html>
Stylizing text on Web pages
HTML Text Formatting Tags
Tag Description
<b> </b> bold text
<big> </big>
big text.(causes the size of text
to be increased by one font
size. )
<em> </em> emphasized text
<i> </i> italic text
<small> </small>
small text(causes the size of text
to be decreased by one font size)
<strong> </strong> strong text
<sub> </sub> subscripted text
<sup> </sup> superscripted text
<ins> </ins> inserted text
<del> </del> deleted text
Example:
Example:
<html>
<body>
<p><big>This text is big</big> </p>
<p><small>This text is small</small></p>
<p>This is<sub> subscript</sub> </p>
<p>This is<sup>superscript</sup></p>
<p>This is<del>deleted</del></p>
<p>This is<del>deleted</del> but <ins> insert
</ins> is used</p>
</body>
</html>
 Output:
Text in HTML
 simple text is enclosed in paragraph tags
example:
<P>The rain in Spain <P>stays mainly
only the plain.
appears as:
The rain in Spain
stays mainly on the plain.
The closing </p> tag is optional.
Text in HTML
 break tags help to format lines
example:
<P>Roses are red,<BR/>
violets are blue,<BR/>
sugar is sweet . . .
</P>
appears as:
Roses are red,
violets are blue,
sugar is sweet . . .
Attributes of Tags:
“Attributes are the properties of tag.”
 Attributes give certain characteristics to a tag
(e.g., height, width, color, etc.
 Attributes are always specified in the start tag.
 Attribute values should always be enclosed in
quotes.
Syntax:
The general syntax is as follows:
<tag attribute1 = "value" attribute2 = "value" ... >
</tag>
Text in HTML
 font faces and other attributes may be specified
example:
<P><FONT FACE=“Arial”>
The rain in Spain stays mainly
on the plain.
</FONT></P>
appears as: (in Arial)
The rain in Spain stays mainly on the plain.
Words To Know:
HTML Tag :
 Tags are elements of the HTML document used to specify how the
document should be displayed by the browser. Tags look like this:
<tag>
Elements:
 Tags are also called element.
 An HTML element starts with a start tag / opening <tag> An HTML
element ends with an end tag / closing </tag>. .
 The element content is everything between the start and the end tag.
Attribute :
 Used to modify the value of the HTML element. Elements will often
have multiple attributes.
For now just know that a tag is a command the web browser interprets,
an element is a complete tag, and an attribute customizes or modifies
HTML elements.
HTML Comments
 Comments can be inserted into the HTML code
to make it more readable and understandable.
Comments are ignored by the browser and are
not displayed.
 Comments are written like this:
<!-- This is a comment -->
Editing HTML
 HTML files or documents
 Written in source-code form using text editor
 Notepad: Start-Programs-Accessories
 HTML files
 .htm or .html extensions
 Name your files to describe their functionality
 File name of your home page should be index.html
 Errors in HTML
 Usually not fatal

More Related Content

What's hot

Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
DenMas Hengky
 
Html ppt
Html pptHtml ppt
Html ppt
jaswinder01
 
Html ppt computer
Html ppt computerHtml ppt computer
Html ppt computer
Anmol Pant
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
Pranay Agrawal
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
Hinopak Motors Limited
 
Html basics
Html basicsHtml basics
Html basics
Vjay Vijju
 
Html
HtmlHtml
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
Nisa Soomro
 
Html heading
Html headingHtml heading
Html headingsaichii27
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
MayaLisa
 
Html and its tags
Html and its tagsHtml and its tags
Html and its tags
Afrasiyab Haider
 
Intro Html
Intro HtmlIntro Html
Intro Html
Chidanand Byahatti
 
HTML | Computer Science
HTML | Computer ScienceHTML | Computer Science
HTML | Computer Science
Transweb Global Inc
 
Session4
Session4Session4
Session4
Denise Garofalo
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
Juvywen
 

What's hot (19)

html tags
html tagshtml tags
html tags
 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
 
Html ppt
Html pptHtml ppt
Html ppt
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
Html ppt computer
Html ppt computerHtml ppt computer
Html ppt computer
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
 
Html basics
Html basicsHtml basics
Html basics
 
Html
HtmlHtml
Html
 
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
 
Html heading
Html headingHtml heading
Html heading
 
Html
HtmlHtml
Html
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html and its tags
Html and its tagsHtml and its tags
Html and its tags
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
HTML | Computer Science
HTML | Computer ScienceHTML | Computer Science
HTML | Computer Science
 
Session4
Session4Session4
Session4
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
 
Standard html tags
Standard html tagsStandard html tags
Standard html tags
 

Viewers also liked

HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
Jishan Ali
 
An Introduction to HTML
An Introduction to HTMLAn Introduction to HTML
An Introduction to HTMLcrea8ivemoiz
 
HTML Images
HTML Images HTML Images
HTML Images
Nisa Soomro
 
Html (hyper text markup language)
Html (hyper text markup language)Html (hyper text markup language)
Html (hyper text markup language)Denni Domingo
 
The History of the Internet
The History of the Internet The History of the Internet
The History of the Internet crea8ivemoiz
 
HTML Basics by software development company india
HTML Basics by software development company indiaHTML Basics by software development company india
HTML Basics by software development company india
iFour Institute - Sustainable Learning
 

Viewers also liked (8)

HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
An Introduction to HTML
An Introduction to HTMLAn Introduction to HTML
An Introduction to HTML
 
Html
HtmlHtml
Html
 
HTML Images
HTML Images HTML Images
HTML Images
 
Leng Kee
Leng KeeLeng Kee
Leng Kee
 
Html (hyper text markup language)
Html (hyper text markup language)Html (hyper text markup language)
Html (hyper text markup language)
 
The History of the Internet
The History of the Internet The History of the Internet
The History of the Internet
 
HTML Basics by software development company india
HTML Basics by software development company indiaHTML Basics by software development company india
HTML Basics by software development company india
 

Similar to Introduction to HTML

Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
Sara Corpuz
 
Html
Html Html
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
aneebkmct
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
asdfhgjh1
 
Html presentation
Html presentationHtml presentation
Html presentation
limon ahmed
 
About html
About htmlAbout html
About html
Manvigangwar
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
Manoj kumar Deswal
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
manya abrol
 
Tm 1st quarter - 1st meeting
Tm   1st quarter - 1st meetingTm   1st quarter - 1st meeting
Tm 1st quarter - 1st meeting
Esmeraldo Jr Guimbarda
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
NextGenr
 
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
AAFREEN SHAIKH
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
MohammadRafsunIslam
 
Ict html
Ict htmlIct html
Ict html
Thando Mdluli
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
Unaib Aslam
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
NAGARAJU MAMILLAPALLY
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
Hameda Hurmat
 

Similar to Introduction to HTML (20)

Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 
Html
Html Html
Html
 
Html
HtmlHtml
Html
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Html presentation
Html presentationHtml presentation
Html presentation
 
About html
About htmlAbout html
About html
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
 
Tm 1st quarter - 1st meeting
Tm   1st quarter - 1st meetingTm   1st quarter - 1st meeting
Tm 1st quarter - 1st meeting
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
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
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
 
Ict html
Ict htmlIct html
Ict html
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 

Recently uploaded

Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
h7j5io0
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
n0tivyq
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
jyz59f4j
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
aaryangarg12
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
Top 5 Indian Style Modular Kitchen Designs
Top 5 Indian Style Modular Kitchen DesignsTop 5 Indian Style Modular Kitchen Designs
Top 5 Indian Style Modular Kitchen Designs
Finzo Kitchens
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
CA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdfCA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdf
SudhanshuMandlik
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
fastfixgaragedoor
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
taqyed
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
madhavlakhanpal29
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
h7j5io0
 

Recently uploaded (20)

Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
Top 5 Indian Style Modular Kitchen Designs
Top 5 Indian Style Modular Kitchen DesignsTop 5 Indian Style Modular Kitchen Designs
Top 5 Indian Style Modular Kitchen Designs
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
CA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdfCA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdf
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
 

Introduction to HTML

  • 2. TERMS TO KNOW BEFORE STARTING HTML:  Internet  Web page  Websites  Web browser
  • 3. INTERNET: The Internet is a global network connecting millions of computers. All countries are linked into exchanges of data, news and opinions.
  • 4. Web page  A file usually written in HTML that can be read by a Web browser.
  • 5. A WEB BROWSER  Browsers are basically software programs that allow you to search for and view various kinds of information on the Web, such as web sites, video, audio, etc.
  • 6. A WEBSITE : A Website is a collection of documents known as webpages. The main page in a website is called a homepage, and other pages in a website are called subpages. These are connected by hyperlinks.
  • 7. HTML(Hypertext Markup Language)  HTML is a language for describing web pages.  HTML is the language which browser understands. Intro:
  • 8. Hyper text markup language Hypertext is simply a piece of text that works as a link. A Markup Language is a set of markup tags
  • 9. HTML is “Interpreted” by your browser  The browser reads and interprets the HTML text (code) in real time  Not all browsers interpret EXACTLY the same way, so results may vary!  However, it is very easy to make changes to the HTML code and immediately see the effect….very nice for debugging!
  • 10. Remember!  HTML tags are keywords surrounded by angle brackets like <html>  HTML tags normally come in pairs like <b> and </b>  The first tag in a pair is the start tag, the second tag is the end tag  Start and end tags are also called opening tags and closing tags
  • 11. Structure and Syntax  HTML has a very particular structure and syntax  The HTML Section  The Header Section  The BODY Section
  • 12. Basic structure of HTML document Contains information which is not directly displayed in the browser, but browsers may use it in other ways. Contains the content to be displayed in the browser and also the code that tells the browser how to render the content. head body
  • 13. Basic Document Structure <HTML> <HEAD> <Title> </Title> </HEAD> <BODY> </BODY> </HTML> signifies an HTML document instructions about the document visible pages elements go here end of the HTML document
  • 14. Common Tags  Always include the <HTML>…</HTML> tags  HTML documents  HEAD section  Information about the document  Information in header not generally rendered in display window  TITLE element names your Web page  BODY section  Page content  Includes text, images, links, forms, etc.  Elements include backgrounds, link colors and font faces  P element forms a paragraph, blank line before and after
  • 15. <Head> Section: <html> <head> <title>My First HTML Document</title> </head> <body> </body> </html>
  • 16. Titles in HTML  titles appear in the title bar of the page  titles create a frame of reference for the user example: <TITLE>My First Web Page</TITLE>
  • 17. <BODY> Section:  Paragraphs:  HTML documents are divided into paragraphs.  <P> tag forms a paragraph, blank line before and after.  Headings  Simple form of text formatting  Vary text size based on the header’s “level”(h1,h2,h3,h4,h5,h6).  Can vary significantly between browsers
  • 18. Simple HTML Commands  HTML commands (also called “tags”) are always enclosed in angle brackets. E.g., <title>  Tags are case insensitive, so <title> and <TITLE> mean the same thing.
  • 19. Location of HTML Tags  The effect of an HTML tag is usually independent of where it appears when you are editing the HTML file (e.g., does it appear at the start of a line, in the middle, end of a line). So this is just as good. <title> War and Peace </title>
  • 20. A Simple HTML Example <html> <head> <title> War and Peace </title> </head> <body> <h1> Chapter 1 </h1> The end. </body> </html> Says this is a HTML document The following goes in the header Start the main body Chapter 1 gets made into a main heading Close the main body, and the html document
  • 21. Empty HTML Elements  HTML elements with no content are called empty elements.  A very few elements are declared as EMPTY. This means three things:  They do not contain any text. They are used simply as markers.  EMPTY elements are not permitted to have an end- tag.  They are closed in start tag. For Example :  <br/> and <hr/>
  • 22. <BODY> Section: <html> <head> <title>My First HTML Document</title> </head> <body> <h1> Hello World!!!</h1> <p> This is my first WEB PAGE</p> </body> </html>
  • 23. Levels of Heading tag:  <h1> .. </h1>  <h2 > .. </ h2>  <h3 > .. </ h3>  <h4 > .. </ h4>  <h5 >.. </ h5>  <h6 > .. </ h6>
  • 24. <html> <head> </head> <body> <center> <h1> Level 1 Header </h1> <h2 > Level 2 Header </ h2> <h3 > Level 3 Header </ h3> <h4 > Level 4Header </ h4> <h5 > Level 5 Header </ h5> <h6 > Level 6 Header </ h6> </center> </body> </html> EXAMPLE:
  • 25. Header elements H1 through H6
  • 27. Text Styling  Underline style  <U>…</U>  Align elements with ALIGN attribute  right, left or center  Close nested tags in the reverse order from which they were opened  Emphasis (italics) style  <EM>…</EM>  Strong (bold) style  <STRONG>…</STRONG>
  • 28. Example: <html> <body> <p><b>This text is bold</b></p> <p><strong>This text is strong</strong></p> <p><i>This text is italic</i></p> <p><em>This text is emphasized</em></p> </body> </html>
  • 29. Stylizing text on Web pages
  • 30. HTML Text Formatting Tags Tag Description <b> </b> bold text <big> </big> big text.(causes the size of text to be increased by one font size. ) <em> </em> emphasized text <i> </i> italic text <small> </small> small text(causes the size of text to be decreased by one font size) <strong> </strong> strong text <sub> </sub> subscripted text <sup> </sup> superscripted text <ins> </ins> inserted text <del> </del> deleted text
  • 31. Example: Example: <html> <body> <p><big>This text is big</big> </p> <p><small>This text is small</small></p> <p>This is<sub> subscript</sub> </p> <p>This is<sup>superscript</sup></p> <p>This is<del>deleted</del></p> <p>This is<del>deleted</del> but <ins> insert </ins> is used</p> </body> </html>  Output:
  • 32. Text in HTML  simple text is enclosed in paragraph tags example: <P>The rain in Spain <P>stays mainly only the plain. appears as: The rain in Spain stays mainly on the plain. The closing </p> tag is optional.
  • 33. Text in HTML  break tags help to format lines example: <P>Roses are red,<BR/> violets are blue,<BR/> sugar is sweet . . . </P> appears as: Roses are red, violets are blue, sugar is sweet . . .
  • 34. Attributes of Tags: “Attributes are the properties of tag.”  Attributes give certain characteristics to a tag (e.g., height, width, color, etc.  Attributes are always specified in the start tag.  Attribute values should always be enclosed in quotes.
  • 35. Syntax: The general syntax is as follows: <tag attribute1 = "value" attribute2 = "value" ... > </tag>
  • 36. Text in HTML  font faces and other attributes may be specified example: <P><FONT FACE=“Arial”> The rain in Spain stays mainly on the plain. </FONT></P> appears as: (in Arial) The rain in Spain stays mainly on the plain.
  • 37. Words To Know: HTML Tag :  Tags are elements of the HTML document used to specify how the document should be displayed by the browser. Tags look like this: <tag> Elements:  Tags are also called element.  An HTML element starts with a start tag / opening <tag> An HTML element ends with an end tag / closing </tag>. .  The element content is everything between the start and the end tag. Attribute :  Used to modify the value of the HTML element. Elements will often have multiple attributes. For now just know that a tag is a command the web browser interprets, an element is a complete tag, and an attribute customizes or modifies HTML elements.
  • 38. HTML Comments  Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed.  Comments are written like this: <!-- This is a comment -->
  • 39. Editing HTML  HTML files or documents  Written in source-code form using text editor  Notepad: Start-Programs-Accessories  HTML files  .htm or .html extensions  Name your files to describe their functionality  File name of your home page should be index.html  Errors in HTML  Usually not fatal