DeGS 2.0 HTML Notes
DeGS 2.0 HTML Notes
1
DeGS 2.0
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
HTML CONTENTS
2
DeGS 2.0
HTML is a language for describing web
pages.
HTML stands
for Hyper Text Markup Language
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
3
DeGS 2.0
HTML (Hypertext Markup Language) is used to create document on the
World Wide Web. It is simply a collection of certain key words called
‘Tags’ that are helpful in writing the document to be displayed using a
browser on Internet.
It is a platform independent language that can be used on any
platform such as Windows, Linux, Macintosh, and so on. To display a
document in web it is essential to mark-up the different e l eme n t s ( h e a
dings, paragraphs, tables, and so on) of the
document with the HTML tags. To view a mark-up document u s e r h a s
to open the document in a browser. A browser
understands and interpret the HTML tags, identifies the structure of the
document (which part are which) and makes decision about presentation
(how the parts look) of the document.
HTML also provides tags to make the document look attractive
using graphics, font size and colors. User can make a link to the other
document or the different section of the same document by creating
Hypertext Links also known as Hyperlinks
4
DeGS 2.0
create, save and view a HTML document
format a web page using section heading
tags
describe Ordered and Unordered lists
explain graphics in HTML document
describe hypertext links and making
text/image link
5
DeGS 2.0
The World Wide Web (abbreviated
as WWW or W3 and commonly known as the
Web)is a system of interlinked hypertext documents
accessed via the Internet. With a web browser, one
can view web pages that may contain text, images,
videos, and other multimedia and navigate between
them via hyperlinks.
6
DeGS 2.0
There are two tools of HTML.
a) HTML Editor: it is the program that one uses to
create and save HTML documents. They fall into
two categories:
- Text based or code based which allows one to see
the HTML code as one is creating a
document.e.g. Notepad.
- Netscape composer
HTML TOOLS
7
DeGS 2.0
b) Web Browser: it is the program that one uses to
view and test the HTML documents. They
translate Html encoded files into
text,image,sounds and other features user see.
Microsoft Internet Explorer,Netscape,Mosaic
Chrome are examples of browsers that enables
user to view text and images and many more
other World Wide Web featueres.They are
software that must be installed on user computer.
HTML TOOLS
8
DeGS 2.0
Some commonly used terms in HTML are:
a)Tag: Tags are always written within angles brackets. it is a
piece of text is 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. They
are:-
-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.
-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
9
DeGS 2.0
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.
c) DTD: Document Type Definition is a collection of rules written
in standard Generalized Markup Language(SGML).HTML is
define in terms of its DTDS. All the details of HTML tags,
entities and related document structure are defined in the
DTDS.
d) ELEMENT: Element is the component of a document’s
structure such as a title, a paragraph or a list. It can include an
opening and a closing tag and the contents within it.
HTML TERMINOLGY 10
DeGS 2.0
The essential tags that are required to create a
HTML document are:
<HTML>.............</HTML>
<HEAD>.............</HEAD>
<BODY>.............</BODY>
11
DeGS 2.0
The <HTML> tag encloses all other HTML tags and associated
text within your document. It is an optional tag. You can create an
HTML document that omits these tags, and your browser can still
read it and display it. But it is always a good form to include the
start and stop tags.The format is:
<HTML>
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.
<BODY>
Your Document goes here
</BODY>
TEXT TEGS
21
DeGS 2.0
The character formatting tags are used to specify how a
particular text should be displayed on the screen to
distinguish certain characters within the document.
AN HTML DOCUMENT
FORMATTEXT.HTML SHOWS THE USE OF
CHARACTER FORMATTING TAGS.
26
DeGS 2.0
Welcome to the world of Internet
It is a Network of Networks
OUTPUT
27
DeGS 2.0
This tag is used text horizontally across the screen.it is
mainly used to deliver a specfic message to the visitor or to
scroll Ads on a page.
Example: <marquee> hello world></marquee>
MARQUEE TAG
28
DeGS 2.0
Bgcolor : Sets the background color of the marquee.
Direction :Sets the direction of the marquee box to
either left-to-right, right-to-left, up-to-down and down-to-
up.
Width: This sets how wide the marquee should be.
Loop: This sets how many times the marquee should 'Loop'
its text. Each trip counts as one loop.
29
DeGS 2.0
Paragraph level formatting applies to formatting of an
entire portion of text unlike character level tags where only
individual letters or words are formatted.
AN HTML DOCUMENT
CONTROL.HTML SHOWS THE USE OF
<P>,
<BR> AND <PRE> 34
DeGS 2.0
</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
36
DeGS 2.0
An empty tag <HR> basically used to draw lines and
horizontal rules. It can be used to separate two sections of text.
Example:
<BODY>
Your horizontal rule goes here. <HR>
The rest of the text goes here.
</BODY>
Output:
Your horizontal rule goes here.
HEADING:
<H1>.............<H6>TAGS
39
DeGS 2.0
.
<HTML>
<HEAD>
<TITLE>
Section Heading
</TITLE>
</HEAD>
<BODY>
<H1> This is Section Heading 1 </H1>
<H2> This is Section Heading 2 </H2>
<H3> This is Section Heading 3 </H3>
<H4> This is Section Heading 4 </H4>
<H5> This is Section Heading 5 </H5>
<H6> This is Section Heading 6 </H6>
</BODY>
</HTML>
SPECIAL CHARTACTER
42
DeGS 2.0
<PRE>
The copyright symbol is: ©
The registered rank is: ®
</PRE>
Output:
The copyright symbol is:©
The registered rank is:®
EXAMPLE:
43
DeGS 2.0
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.
ADVANTAGES OF HTML
44
DeGS 2.0
It cannot produce dynamic output alone, since it is a static
language
Sometimes, the structuring of HTML documents is hard to
grasp
You have to keep up with deprecated tags, and make sure not
to use them
Deprecated tags appear because another language that works
with HTML has replaced the original work of the tag; thus the
other language needs to be learned (most of the time, it is
CSS)
Security features offered by HTML are limited
DISADVANTAGES OF HTML
45
DeGS 2.0