Introdution To HTML 1
Introdution To HTML 1
Introdution To HTML 1
HTML CONTENTS
• INTRODUCTION OF HTML
• OBJECTIVE OF HTML
• WORLD WIDE WEB
• HTML TOOLS
• HTML TERMINOLGY
• HOW TO CREATE AN HTML DOCUMENT
• S A V I N G A N D V I E W I N G A H T M L DOCUMENT
• TEXT TEGS
• SPECIAL CHARTACTER
• ADVANTAGES OF HTML
• DISADVANTAGES OF HTML
INTRODUCTION OF HTML
• HTML is a language for describing web pages.
• HTML stands for Hyper Text Markup Language
• HTML is a client side scripting language.
• It is used to design static web pages.
• HTML is not a programming language, it is
a markup language
• A markup language is a set of markup tags
• HTML uses markup tags to describe web pages
INTRODUCTION OF HTML
HTML
HTTP
HTTP
Server response
Server running
Client running a
Web Server
Web Browser
Software (IIS,
7 Apache, etc.)
OBJECTIVE OF HTML
a)Tag
•Tags are always written within angles brackets.
•It is a piece of text used to identify an element so
that the browser realizes how to display its
contents.
•e.g.<HTML> tag indicates the start of an HTML
document .
•HTML tag can be two types.
– Paired
– -Unpaired Tags
HTML TERMINOLGY
• Paired Tags
– A tag is said to be a paired tag if text is placed
between a tag and its companions tag.
– In paired tag, the first tag is referred to as opening
tag and the second tag is referred to as closing
tag. E.g. <html> </html>
• Unpaired Tags
– An unpaired tag does not have a companion tag
– Unpaired tag also known as singular or Stand-
Alone tags. e.g:<br>, <hr> etc.
HTML TERMINOLGY
b) Attribute:
• It is the property of a tag that is specified in the opening
angle brackets.
• It supplies additional information like color, size, home font-
style etc to the browser about a tag.
• E.g. most of the common attributes are height, color, width,
src, border, align etc.
HTML TERMINOLGY
c) ELEMENT:
• Element is the component of a document’s structure such as
a title, a paragraph or a list.
• is a component of an HTML document that tells a web
browser how to structure and interpret a part of the HTML
document.
• It can include an opening and a closing tag and the contents
within it. <!DOCTYPE HTML>
<html> Opening tag
<head>
<title>My First HTML Page</title>
</head>
<body> Closing tag
<p>This is some text...</p>
</body>
</html>
HTML TERMINOLGY
d) Document Type Definition (DTD):
• is a collection of rules written in standard Generalized Markup
Language(SGML).
• HTML is defined in terms of its DTDS.
• All the details of HTML tags, entities and related document
structure are defined in the DTDS.
HOW TO CREATE AN HTML DOCUMENT
• <HTML>
• <HEAD>
• .............
• .............
• .............
• </HEAD>
• <BODY>
• .............
• .............
• .............
• </BODY>
• </HTML>
HEAD Tag <HEAD>
• HEAD tag comes after the HTML start tag. It
contains TITLE tag to give the document a title
that displays on the browsers title bar at the top.
The Format is:
<HEAD>
<TITLE>
Your title goes here
</TITLE>
</HEAD>
BODY Tag <BODY>
• The BODY tag contains all the text and graphics of the
document with all the HTML tags that are used for control
and formatting of the page. The Format is:
<BODY>
Your Document goes here
</BODY>
It is a Network of Networks
MARQUEE TAG
• This tag is used text horizontally across the
screen.
• It is mainly used to deliver a specific message
to the visitor or to scroll Ads on a page.
• Example: <marquee> hello
world></marquee>
Attributes of marquee tag
</P>
<P>
HTML stands for Hypertext Markup Language.<BR>
It is used for creating web page. It is very simple<BR>
and easy to learn.<BR>
</P>
<PRE>
HTML stands for Hypertext Markup Language
It is used for creating web page. It is very simple
and easy to learn.
</PRE>
</BODY>
</HTML>
OUTPUT
• HTML Tutorial
HTML stands for Hypertext Markup Language. It is used for
creating web page. It is very simple and easy to learn.
• Easy to use
• Loose syntax (although, being too flexible will not
comply with standards).
• Supported on almost every browser, if not all
browsers.
• Widely used; established on almost every website, if
not all websites.
• Very similar to XML syntax, which is increasingly used
for data storage.
• Free - You need not buy any software.
• Easy to learn & code even for novice programmers.
DISADVANTAGES OF HTML