HTML Pptshow
HTML Pptshow
HTML Pptshow
stands
for
Hyper
Text
Markup
Language
Hyper is the opposite of linear. HTML allows the person viewing the
World Wide Web page to go anywhere,any time they want.
Text is what you will use. Real, honest to goodness English letters.
Mark up is what you will do.It Refers to sequence of characters or
symbols that are inserted in text or word processing file
Language because they needed something that started with "L" to finish
HTML and Hypertext Markup Louie didn't flow correctly. Because it's a
language, really -- but the language is plain English.
12/25/2014
A.Nagesh,Informatics
Dept.
Many HTML tags contain one or more attributes that can give extra
information to tell the browser how to interpret the tag.( In most tags,
the attributes are optional
Attributes always come in name/value pairs like this: name="value".
<TAG ATTRIBUTE1=value1 ATTRIBUTE2=value2> </TAG>
Attributes are always added to the start tag of an HTML element.
Attribute values should always be enclosed in quotes. Double style
quotes are the most common, but single style quotes are also allowed
An html document is divided into two main sections the head
section and the body section.
The head section contains information about the document and is
usually placed at the top of the html document (so it can load into the
browser first) and wont be displayed inside your browser window.
The body section contains the content of your document that will be
displayed, such as text and images.
12/25/2014
A.Nagesh,Informatics
Dept.
The body of a HTML document contains all the text and images that
make up the page, together with all the HTML elements that provide
the control/formatting of the page
12/25/2014
A.Nagesh,Informatics
Dept.
Attributes of <BODY>
BGCOLOR
The BGCOLOR attribute, allows setting of the background colour for
the document.
Example :<BODY BGCOLOR="#rrggbb">
Document here
</BODY>
BACKGROUND
The BACKGROUND attribute can be used to point to an image file that
will be tiled across the browser window, to provide a background for
the document. Specifying :
Example :<BODY BACKGROUND="URL or path/filename.gif">
Document here
</BODY>
12/25/2014
A.Nagesh,Informatics
Dept.
TEXT
This attribute is used to control the colour of all the normal text
in the document.
Example :<BODY TEXT="#rrggbb">
Document here
</BODY>
12/25/2014
A.Nagesh,Informatics
Dept.
12/25/2014
A.Nagesh,Informatics
Dept.
Headings
HTML defines six levels of heading. A Heading element implies all the
font changes, paragraph breaks before and after, and white space
necessary to render the heading.
Headings are defined with the <h1> to <h6> tags. <h1> defines the
largest heading. <h6> defines the smallest heading.
The exact sizes they appear as will vary from one browser to another
<H1>Level 1 heading</H1>
<H2>Level 2 heading</H2>
<H3>Level 3 heading</H3>
<H4>Level 4 heading</H4>
<H5>Level 5 heading</H5>
<H6>Level 6 heading</H6>
ALIGN attribute
The ALIGN = left | center | right attribute has been added to the <H1>
through to <H6> elements.
Example :<H1 ALIGN=center>Hello, this is a heading</H1>
HTML automatically adds an extra blank line before and after a
heading.
12/25/2014
A.Nagesh,Informatics
Dept.
Horizontal rules
A.Nagesh,Informatics
Dept.
Comments in HTML
The comment tag is used to insert a comment in the HTML source
code. A comment will be ignored by the browser. You can use
comments to explain your code, which can help you when you edit the
source code at a later date.
Example :<!-- This is a comment -->
Line Breaks
The Line Break element specifies that a new line must be started at the
given point.
The <br> tag is used when you want to end a line, but don't want to
start a new paragraph. The <br> tag forces a line break wherever you
place it.
Example :<p>This <br> is a para<br>graph with line breaks</p>
The <br> tag is an empty tag. It has no closing tag.
12/25/2014
A.Nagesh,Informatics
Dept.
Paragraphs
The Paragraph element indicates a paragraph. Typically, paragraphs
are surrounded by a vertical space of one line or half a line. With
some browsers, the first line in a paragraph is indented.
Paragraphs are defined with the <p> tag.
<p>This is a paragraph</p>
<p>This is another paragraph</p>
ALIGN attribute
Basically, ALIGN = left | center | right attributes have been added to
the <P> element.
Example : <P ALIGN=LEFT> ... </P>
All text within the paragraph will be aligned to the left side of the page
layout. This setting is equal to the default <P> element.
<P ALIGN=CENTER> ... </P>
All text within the paragraph will be aligned to the centre of the page.
<P ALIGN=RIGHT> ... </P>
All text within the paragraph will be aligned to the right side of the
page.
HTML automatically adds an extra blank line before and after a
paragraph.
A division tag <DIV> </DIV> can also be used to create a new
paragraph. The difference is that it doesnt create a blank space before
the paragraph the way a <P> tag will .
12/25/2014
A.Nagesh,Informatics
Dept.
12/25/2014
A.Nagesh,Informatics
Dept.
12/25/2014
A.Nagesh,Informatics
Dept.
12/25/2014
A.Nagesh,Informatics
Dept.
ALT
Specifies the text that will display while the picture is
loading
or if it doesnt load. If the pictures important,
make sure you
include this. Some people dont have
browsers that show
images and some turn image loading off
to speed up their
browsing. Recent browsers use the
alternate text as a popup when the mouse is moved
over the image.
BORDER
Specifies the width (in pixels) of the pictures border. Set
this
to 0 if the picture is a hyper-link; otherwise a border the
colour of your links will appear around the image.
ALIGN
TOP
Aligns the top of the picture with the
top of
the current line of text
MIDDLE
Aligns the middle of the picture with the
middle of the current line of text
BOTTOM
Aligns the bottom of the picture with
the
bottom of the current line of text
LEFT
Aligns the picture to the left of text and
will
make text wrap around the picture
RIGHT
Aligns the picture to the right of text
and
will make text wrap around the picture
12/25/2014
A.Nagesh,Informatics
Dept.