Introdution to HTML Week2
Introdution to HTML Week2
CONCEPTS
AND
TECHNOLOGIES
Introduction to HTML
HTML CONTENTS
• INTRODUCTION OF HTML
• OBJECTIVE OF HTML
• HTML TOOLS
• HTML TERMINOLGY
• 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
b) Attribute: Attribute
is the property of an tag that
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 CONT.
Your Title and Document (contains text with HTML tags) goes here
• </HTML>
Most HTML tags have two parts, an opening tag and closing tag. The
closing tag is the same as the opening tag, except for the slash
mark e.g. </HTML>. The slash mark is always used in closing tags.
AN HTML DOCUMENT HAS TWO DISTINCT PARTS HEAD & BODY
• <HTML>
• <HEAD>
• .............
• </HEAD>
• <BODY>
• .............
• </BODY>
• </HTML>
HEAD TAG <HEAD>
<BODY>
Your Document goes here
</BODY>
An HTML document, web page can be created using a text editor,
Notepad or WordPad. All the HTML documents should have the
extension .htm or html.
It require a web browser like Internet Explorer or Netscape
Navigator/Communicator to view the document.
ATTRIBUTES USED WITH
<BODY>
• BGCOLOR: u s e d t o s e t t h e b a c k g r o u n d c o l o r f o
r t h e document
• Example:
<BODY BGCOLOR="yellow">
Your document text goes here.
</BODY>
• TEXT: used to set the colour of the text of the document. Example:
<BODY TEXT="red">Introduction to HTML:: 77
Document text changed to red color
</BODY>
Document text changed to red color
ATTRIBUTES USED WITH
<BODY>
• MARGINS: set the left hand/right hand margin of the document.
• LEFTMARGIN: set the left hand margin of the document.
• Example:
<BODY LEFTMARGIN="60">
This document is indented 60 pixels from the left hand side of the
page.
</BODY>
• TOPMARGIN: set the left hand margin of the document Example:
<BODY TOPMARGIN="60">
This document is indented 60 pixels from the top of the page.
</BODY>
ATTRIBUTES USED WITH
<BODY>
• BACKGROUND: It is used to point to an image file (the
files with an extension .gif, .jpeg) that will be used as
the background of the document. The image file will be
tiled across the document.
• Example:
<BODY BACKGROUND="filename. if">
Your document text goes here
</BODY>
FOLLOW THE STEPS TO CREATE AND VIEW IN
BROWSER
• Step-1: O p e n t e x t e d i t o r N o t e p a d
• Step-2: Enter the following lines of code:
<HTML>
<HEAD>
<TITLE>
My first Page
</TITLE>
</HEAD>
<BODY>
WELCOME TO MY FIRST WEB PAGE
</BODY>
</HTML>
SAVING AND VIEWING A HTML
DOCUMENT
It is a Network of Networks
MARQUEE TAG
<HTML>
<HEAD>
<TITLE>
Use of Paragraph, Line break and preformatted text Tag
</TITLE>
</HEAD>
<BODY>
HTML Tutorial
<P>
HTML stands for Hypertext Markup Language
It is used for creating web page. It is very simple
and easy to learn.
AN HTML DOCUMENT CONTROL. HTML SHOWS
THE USE OF <P>, <BR> AND <PRE>
(CONTINUATION)
</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
<PRE>
The copyright symbol is: ©
The registered rank is: ®
</PRE>
• Output:
The copyright symbol is:©
The registered rank is:®
ADVANTAGES OF HTML
• 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