HTML stands for HyperText Markup Language. It is used to design web pages using a markup language.

ssuser6478a8 150 views 17 slides Feb 26, 2024
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

HTML stands for HyperText Markup Language. It is used to design web pages using a markup language.


Slide Content

History of HTML
HTMLstandsforHyperTextMarkupLanguage,
whichisthemostwidelyusedlanguageonWebto
developwebpages.
HTMLwascreatedbyBerners-Leeinlate1991
but"HTML2.0"wasthefirststandardHTML
specificationwhichwaspublishedin1995.
HTML4.01wasamajorversionofHTMLandit
waspublishedinlate1999.
ThoughHTML4.01versioniswidelyusedbut
currentlywearehavingHTML-5versionwhichisan
extensiontoHTML4.01,andthisversionwas
publishedin2012

HTML Versions

What is HTML?
•HTML stands for Hyper Text Markup Language
•HTML is a markup language
•A markup language is a set of markuptags
•The tags describedocument content
•HTML documents containHTMLtagsand plain
text
•HTML documents are also calledweb pages

•HypertextreferstothewayinwhichWeb
pages(HTMLdocuments)arelinkedtogether.
Thusthelinkavailableonawebpageare
calledHypertext.
•Asitsnamesuggests,HTMLisaMarkup
LanguagewhichmeansyouuseHTMLto
simply"markup"atextdocumentwithtags
thattellaWebbrowserhowtostructureitto
display.

•Originally,HTMLwasdevelopedwiththe
intentofdefiningthestructureofdocuments
likeheadings,paragraphs,lists,andsoforthto
facilitatethesharingofscientificinformation
betweenresearchers.
•Now,HTMLisbeingwidelyusedtoformat
webpageswiththehelpofdifferenttags
availableinHTMLlanguage.

HTML Page Structure

<!DOCTYPE html>
<html>
<head>
Document header related tags
</head>
<body>
Document body related tags
</body>
</html>

The <!DOCTYPE> Declaration
The <!DOCTYPE> declaration helps the browser to
display a web page correctly.
There are many different documents on the web,
and a browser can only display an HTML page
100% correctly if it knows the HTML type and
version used.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">

•TheDOCTYPEdeclarationdefinesthe
documenttype.The<!DOCTYPE>declaration
helpsthebrowsertodisplayawebpage
correctly.
•The<!DOCTYPE>declarationtagisusedby
thewebbrowsertounderstandtheversion
oftheHTMLusedinthedocument.Current
versionofHTMLis5anditmakesuseofthe
followingdeclaration:
<!DOCTYPEhtml>
•Therearemanyotherdeclarationtypeswhich
canbeusedinHTMLdocumentdependingon
whatversionofHTMLisbeingused.

•Thetextbetween<html>and</html>
describesthewebpage.
•Thetextbetween<head>tagrepresentsthe
document'sheaderwhichcankeepother
HTMLtagslike<title>,<link>etc.
•Thetextbetween<body>and</body>isthe
visiblepagecontent
•Thetextbetween<h1>and</h1>isdisplayed
asaheading
•Thetextbetween<p>and</p>isdisplayedas
aparagraph

HTML Attributes
•HTMLelementscanhaveattributes
•Attributesprovideadditionalinformation
aboutanelement
•Attributesarealwaysspecifiedinthestarttag
•Attributescomeinname/valuepairslike:
name="value"

Attribute Example
<ahref="http://www.google.com">
This is a link</a>

HTML Headings
•Any document starts with a heading. You can use
different sizes for your headings. HTML also has
six levels of headings, which use the
elements<h1>, <h2>, <h3>, <h4>, <h5>, and
<h6>. While displaying any heading, browser
adds one line before and one line after that
heading.
•<h1> defines the most important heading. <h6>
defines the least important heading.
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>

HTML Lines
•Horizontallinesareusedtovisuallybreak
upsectionsofadocument.The<hr>tag
createsalinefromthecurrentpositionin
thedocumenttotherightmarginand
breaksthelineaccordingly.
•The <hr>tag creates a horizontal line in
an HTML page.
•The hr element can be used to separate
content.

Centering Content
•You can use<center>tag to put any content in the center
of the page or any table cell.
<!DOCTYPE html>
<html>
<head>
<title>CentringContent Example</title>
</head>
<body>
<p>This text is not in the center.</p>
<center>
<p>This text is in the center.</p>
</center>
</body>
</html>

HTML Paragraphs
•HTMLdocumentsaredividedintoparagraphs.
•The<p>tagoffersawaytostructureyourtext
intodifferentparagraphs.Eachparagraphof
textshouldgoinbetweenanopening<p>and
aclosing</p>tagasshownbelowinthe
example:
<p>This is a paragraph</p>
<p>This is another paragraph</p>

HTML Line Breaks
•Usethe<br>tagifyouwantalinebreak(anew
line)withoutstartinganewparagraph.
•Wheneveryouusethe<br/>element,anything
followingitstartsfromthenextline.Thistagis
anexampleofanemptyelement,whereyoudo
notneedopeningandclosingtags,asthereis
nothingtogoinbetweenthem.
•The<br/>taghasaspacebetweenthe
charactersbrandtheforwardslash.Ifyouomit
thisspace,olderbrowserswillhavetrouble
renderingthelinebreak,whileifyoumissthe
forwardslashcharacterandjustuse<br>itis
notvalidinXHTML.
Tags