HTML
HTML
Sarbbottam Bandyopadhyay
What is HTML?
HTML is the "mother tongue" of your browser.
HTML was invented in 1990 by a scientist called Tim
Berners-Lee. The purpose was to make it easier for
scientists at different universities to gain access to each
other's research documents. By inventing HTML he laid the
foundation for the Internet as we know it today.
HTML is a language, which makes it possible to present
information on the Internet. What you see when you view a
page on the Internet is your browser's interpretation of
HTML.
Sarbbottam Bandyopadhyay
Basic HTML Structure.
<HTML>
<HEAD>
<TITLE>
your document title goes here
</TITLE>
</HEAD>
<BODY>
your document text goes here
</BODY>
</HTML>
Sarbbottam Bandyopadhyay
Basic HTML tags.
<PRE></PRE> for pre formatting.
<B></B> for bold.
<U></U> for under line
<I></I> for italic.
<H1></H1> …. <H6></H6> for header.
<P></P> for paragraphs.
<BR> for line breaks.
<HR> for horizontal rule.
Sarbbottam Bandyopadhyay
Simple HTML code using basic tags.
<HTML>
<HEAD>
<TITLE>
My first HTML page
</TITLE>
</HEAD>
<BODY>
<h1>In header <H1></h1>
<h2>In header <H2></h2>
<h3>In header <H3></h3>
<h3>In header <H4></h4>
<h5>In header <H5></h5>
<h6>In header <H6></h6>
This is my first HTML page.( Without any tag )
<pre>
This is my
first HTML page. ( Within <PRE> tag )
</pre>
<b>
This is my first HTML page.( Within <B> tag )
</b>
<br>
<br>
<i>
This is my first HTML page.( Within <i> tag )
</i>
<p>
This is my
first HTML page.( Within <p> tag )
</p>
The horizontal line below is due to <hr>.
<hr>
</BODY>
</HTML>
Sarbbottam Bandyopadhyay
DIV tag
Sarbbottam Bandyopadhyay
Lists in HTML
Sarbbottam Bandyopadhyay
Ordered (Numbered) List
<OL>
<LI> 1st content.
<LI> 2nd content.
<LI> and so on….
</OL>
Sarbbottam Bandyopadhyay
Unordered (Bulleted) List
<UL>
<LI> 1st content.
<LI> 2nd content.
<LI> and so on….
</UL>
Sarbbottam Bandyopadhyay
Definition List
<DL>
<DT>
<DD>
<DT>
<DD>
</DL>
Sarbbottam Bandyopadhyay
Hypertext Linking
Hypertext Linking To Another File
<A HREF="http://www.google.com/">
Google</A>
Hypertext Linking Within the Same File
Sarbbottam Bandyopadhyay
Movie clips
Sarbbottam Bandyopadhyay
Table
<TABLE>
<TR> for rows.
<TH> for header
</TH>
<TD> for columns
</TD>
</TR>
</TABLE>
Sarbbottam Bandyopadhyay
Table properties
cellSpacing
cellPadding
border
width
rowspan
colspan
Sarbbottam Bandyopadhyay
Embedded table
<TABLE>
<TR>
<TD>
<TABLE>
<TR>
<TD>
</TD>
<TD>
</TD>
</TR>
</TABLE>
</TD>
<TD>
</TD>
</TR>
</TABLE>
Sarbbottam Bandyopadhyay
Form
<FORM>
</FORM>
NAME
ACTION
METHOD
Sarbbottam Bandyopadhyay
Form element
Submit button
Button
Reset button
Text input area
Pull down menu
Radio button
Check box button
Text area
Password field
Hidden fields
Active images
Sarbbottam Bandyopadhyay
Text input area
Sarbbottam Bandyopadhyay
Password field
Sarbbottam Bandyopadhyay
Hidden fields
Sarbbottam Bandyopadhyay
Check box button
Sarbbottam Bandyopadhyay
Radio button
Sarbbottam Bandyopadhyay
Text area
Sarbbottam Bandyopadhyay
Pull down menu
Sarbbottam Bandyopadhyay
Active images
Sarbbottam Bandyopadhyay
Reset button
Sarbbottam Bandyopadhyay
Submit button
Sarbbottam Bandyopadhyay
Button
Sarbbottam Bandyopadhyay
Frame
<HTML>
<HEAD>
<TITLE> New Frame </TITLE>
</HEAD>
<frameset cols="*,*">
<frame src=“file name" name="" noresize scrolling=no>
<frameset rows="*,*" >
<frame src=" file name " name="" >
<frame src=" file name " name="" >
</frameset>
<BODY>
</BODY>
</HTML>
Sarbbottam Bandyopadhyay
Thank you.
Sarbbottam Bandyopadhyay