SlideShare a Scribd company logo
1 of 41
Download to read offline
Subject Name Code Credit Hours
Internet Fundamental and Applications
HTML
Subject Name Code Credit Hours
Internet Fundamental and Applications
HTML
• HTML stands for Hypertext Markup Language, and it is the most
widely used language to write Web Pages. As its name suggests,
HTML is a markup language (presentation of text).
• Hypertext refers to the way in which Web pages (HTML documents)
are linked together. When you click a link in a Web page, you are
using hypertext.
• Markup Language describes how HTML works. With a markup
language, you simply "mark up" a text document with tags that tell
a Web browser how to structure it to display.
26-Mar-15 Balaganesh -Lincoln University 2
Subject Name Code Credit Hours
Internet Fundamental and Applications
HTML Basic Structure
<HTML>
<HEAD>
<TITLE> Qi’s web! </TITLE>
</HEAD>
3
</HEAD>
<BODY>
<H1> Hello World </H1>
<! Rest of page goes here. This is a comment. >
</BODY>
</HTML>
Subject Name Code Credit Hours
Internet Fundamental and Applications
The basic structure for all HTML documents is simple and should
include the following minimum elements or tags:
<html>
-The main container for HTML pages
<head>
26-Mar-15 Balaganesh -Lincoln University 4
<head>
-The container for page header information
<title>
-The title of the page
<body>
-The main body of the page
Subject Name Code Credit Hours
Internet Fundamental and Applications
BODY Element
<BODY attributename="attributevalue">
• Deprecated attributes (but still used)
– BACKGROUND=“Sunset.jpg” (can be tiled)
=color– BGCOLOR=color
– TEXT=color
– LINK=color (unvisited links)
– VLINK=color (visited links)
– ALINK=color (when selected)
5
Subject Name Code Credit Hours
Internet Fundamental and Applications
Attribute Options Function
Generic Attributes
6
Subject Name Code Credit Hours
Internet Fundamental and Applications
Headings
<H1 ...> text </H1> -- largest of the six
<H2 ...> text </H2>
<H3 ...> text </H3>
<H4 ...> text </H4>
7
<H4 ...> text </H4>
<H5 ...> text </H5>
<H6 ...> text </H6> -- smallest of the six
ALIGN="position" --left (default), center or right
Subject Name Code Credit Hours
Internet Fundamental and Applications
Headings
<HTML>
<HEAD>
<TITLE>Document Headings</TITLE>
</HEAD>
<BODY>
Samples of the six heading types:
<H1>Level-1 (H1)</H1>
8
<H1>Level-1 (H1)</H1>
<H2 ALIGN="center">Level-2 (H2)</H2>
<H3><U>Level-3 (H3)</U></H3>
<H4 ALIGN="right">Level-4 (H4)</H4>
<H5>Level-5 (H5)</H5>
<H6>Level-6 (H6)</H6>
</BODY>
</HTML>
Subject Name Code Credit Hours
Internet Fundamental and Applications
<P> Paragraph
• <P> defines a paragraph
• Add ALIGN="position" (left, center, right)
• Multiple <P>'s do not create blank lines• Multiple <P>'s do not create blank lines
• Use <BR> for blank line
• Fully-specified text uses <P> and </P>
• But </P> is optional
9
Subject Name Code Credit Hours
Internet Fundamental and Applications
<BODY>
<P>Here is some text </P>
<P ALIGN="center"> Centered text </P>
<P><P><P>
<P ALIGN="right"> Right-justified text
<! Note: no closing /P tag is not a problem>
10
<! Note: no closing /P tag is not a problem>
</BODY>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Colors
• Values for BGCOLOR and COLOR
– many are predefined (red, blue, green, ...)
– all colors can be specified as a six character hexadecimal
value: RRGGBBvalue: RRGGBB
– FF0000 – red
– 888888 – grey
– 004400 – dark green
– FFFF00 – yellow
11
Subject Name Code Credit Hours
Internet Fundamental and Applications
Fonts
<FONT COLOR="red" SIZE="2" FACE="Times
Roman">
This is the text of line one </FONT>
<FONT COLOR="green" SIZE="4"
FACE="Arial">
12
FACE="Arial">
Line two contains this text </FONT>
<FONT COLOR="blue" SIZE="6"
FACE="Courier"
The third line has this additional text
</FONT>
Note: <FONT> is now deprecated in favor of CSS.
Subject Name Code Credit Hours
Internet Fundamental and Applications
Ordered (Numbered) Lists
<OL TYPE="1">
<LI> Item one </LI>
<LI> Item two </LI>
<OL TYPE="I" >
<LI> Sublist item one </LI>
13
<LI> Sublist item one </LI>
<LI> Sublist item two </LI>
<OL TYPE="i">
<LI> Sub-sublist item one </LI>
<LI> Sub-sublist item two </LI>
</OL>
</OL>
</OL>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Unordered (Bulleted) Lists
<UL TYPE="disc">
<LI> One </LI>
<LI> Two </LI>
<UL TYPE="circle">
<LI> Three </LI>
14
<LI> Three </LI>
<LI> Four </LI>
<UL TYPE="square">
<LI> Five </LI>
<LI> Six </LI>
</UL>
</UL>
</UL>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Physical Character Styles
<H1>Physical Character Styles</H1>
<B>Bold</B><BR>
<I>Italic</I><BR>
<TT>Teletype (Monospaced)</TT><BR>
<U>Underlined</U><BR>
Subscripts: f<SUB>0</SUB> + f<SUB>1</SUB><BR>
Superscripts: x<SUP>2</SUP> + y<SUP>2</SUP><BR>
<SMALL>Smaller</SMALL><BR>
15
<SMALL>Smaller</SMALL><BR>
<BIG>Bigger</BIG><BR>
<STRIKE>Strike Through</STRIKE><BR>
<B><I>Bold Italic</I></B><BR>
<BIG><TT>Big Monospaced</TT></BIG><BR>
<SMALL><I>Small Italic</I></SMALL><BR>
<FONT COLOR="GRAY">Gray</FONT><BR>
<DEL>Delete</DEL><BR>
<INS>Insert</INS><BR>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Logical Character Styles
<H1>Logical Character Styles</H1>
<EM>Emphasized</EM><BR>
<STRONG>Strongly
Emphasized</STRONG><BR>
<CODE>Code</CODE><BR>
<SAMP>Sample Output</SAMP><BR>
<KBD>Keyboard Text</KBD><BR>
<DFN>Definition</DFN><BR>
16
<DFN>Definition</DFN><BR>
<VAR>Variable</VAR><BR>
<CITE>Citation</CITE><BR>
<EM><CODE>Emphasized
Code</CODE></EM><BR>
<FONT COLOR="GRAY"><CITE>Gray
Citation</CITE></FONT><BR>
<ACRONYM TITLE="Java Development
Kit">JDK Acronym</ACRONYM>
Subject Name Code Credit Hours
Internet Fundamental and Applications
<A> Anchors (HyperLinks)
Link to an absolute URL:
If you get spam, contact
<A HREF="htttp:www.microsoft.com“>Microsoft </A> to report
the problem.
Link to a relative URL:
17
Link to a relative URL:
See these <A HREF="#references"> references </A>
concerning our fine products.
Link to a section within a URL:
Amazon provided a <A HREF="www.amazon.com/#reference">
reference for our company. </A>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Naming a Section
<H2> <A NAME="#references"> Our References </A>
</H2>
Example
18
Subject Name Code Credit Hours
Internet Fundamental and Applications
Hyperlinks
<BODY>
<H3>Welcome to <A HREF="http://www.cs.virginia.edu">
<STRONG>Computer Science</STRONG></A>
at the <A HREF="www.virginia.edu">University of
Virginia.</A>
</H3>
</BODY>
19
</BODY>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Images
• SRC is required
• WIDTH, HEIGHT may be in units of pixels or percentage of
page or frame
– WIDTH="357"– WIDTH="357"
– HEIGHT="50%"
• Images scale to fit the space allowed
20
Subject Name Code Credit Hours
Internet Fundamental and Applications
Images
Align=position Image/Text Placement
Left Image on left edge; text flows to right of image
Right Image on right edge; text flows to left
21
Right Image on right edge; text flows to left
Top Image is left; words align with top of image
Bottom Image is left; words align with bottom of image
Middle Words align with middle of image
Subject Name Code Credit Hours
Internet Fundamental and Applications
Images
<BODY>
<img src="dolphin.jpg" align="left" width="150"
height="150" alt="dolphin jump!">
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
22
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
This is a very cute dolphin on the left!<br>
You can see text wrap around it<br>
</BODY>
</HTML>
Subject Name Code Credit Hours
Internet Fundamental and Applications
ALIGN="left"
23
Subject Name Code Credit Hours
Internet Fundamental and Applications
ALIGN="right"
24
Subject Name Code Credit Hours
Internet Fundamental and Applications
Tables
<TABLE> table tag
<CAPTION> optional table title
<TR> table row
25
<TR> table row
<TH> table column header
<TD> table data element
Subject Name Code Credit Hours
Internet Fundamental and Applications
Tables
<TABLE BORDER=1>
<CAPTION>Table Caption</CAPTION>
<TR><TH>Heading1</TH> <TH>Heading2</TH></TR>
<TR><TD>Row1 Col1 Data</TD><TD>Row1 Col2 Data</TD></TR>
<TR><TD>Row2 Col1 Data</TD><TD>Row2 Col2 Data</TD></TR>
26
<TR><TD>Row2 Col1 Data</TD><TD>Row2 Col2 Data</TD></TR>
<TR><TD>Row3 Col1 Data</TD><TD>Row3 Col2 Data</TD></TR>
</TABLE>
Subject Name Code Credit Hours
Internet Fundamental and Applications
<TABLE> Element Attributes
• ALIGN=position -- left, center, right for table
• BORDER=number -- width in pixels of border (including any cell
spacing, default 0)
• CELLSPACING=number -- spacing in pixels between cells, default• CELLSPACING=number -- spacing in pixels between cells, default
about 3
• CELLPADDING=number -- space in pixels between cell border
and table element, default about 1
• WIDTH=number[%]-- width in pixels or percentage of page/frame
width
27
Subject Name Code Credit Hours
Internet Fundamental and Applications
• cellspacing=10
• cellpadding=10
28
Subject Name Code Credit Hours
Internet Fundamental and Applications
<TABLE> Element Attributes
BGCOLOR=color -- background color of table, also valid
for <TR>, <TH>, and <TD>
RULES=value -- which internal lines are shown; values are
none, rows, cols, and all (default)
29
none, rows, cols, and all (default)
EX: <TABLE COLS=“40%, *,*”>
<TABLE ROWS=“*,*”>
Subject Name Code Credit Hours
Internet Fundamental and Applications
<TR> Table Row Attributes
Valid for the table row:
ALIGN -- left, center, right
VALIGN -- top, middle, bottom
BGCOLOR -- background color
30
<TABLE ALIGN="center" WIDTH="300" HEIGHT="200">
<TR ALIGN="left" VALIGN="top" BGCOLOR="red"><TD>One</TD><TD>Two</TD>
<TR ALIGN="center" VALIGN="middle"
BGCOLOR="lightblue"><TD>Three</TD><TD>Four</TD>
<TR ALIGN="right" VALIGN="bottom" BGCOLOR="yellow"><TD>Five</TD><TD>Six</TD>
</TABLE>
Subject Name Code Credit Hours
Internet Fundamental and Applications
<TD> Table Cell Attributes
Valid for the table cell:
colspan -- how many columns this cell occupies
rowspan – how many rows this cell occupies
<TABLE ALIGN="center" WIDTH="300" HEIGHT="200" border="1">
31
<TABLE ALIGN="center" WIDTH="300" HEIGHT="200" border="1">
<TR>
<TD colspan="1" rowspan="2">a</TD>
<TD colspan="1" rowspan="1">b</TD>
</TR>
<TR>
<TD colspan="1" rowspan="1">c</TD>
</TR>
</TABLE>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Frames
• Frames help control navigation and display
• <FRAME> attributes include
– FRAMEBORDER – yes or 1 for borders
– FRAMESPACING – width of border
– BORDERCOLOR – color
– SRC – location of HTML to display in frame
– NAME – destination for TARGET attribute
32
Subject Name Code Credit Hours
Internet Fundamental and Applications
Frames
– MARGINWIDTH – left/right margins
– MARGINHEIGHT – top/bottom margins
– yes or 1 adds scroll bar– SCROLLING – yes or 1 adds scroll bar
– NORESIZE – yes or 1 disables resizing
33
Subject Name Code Credit Hours
Internet Fundamental and Applications
Frames
<FRAMESET ROWS="75%,25%">
<FRAMESET COLS="*,*,*">
<FRAME SRC="http://www.virginia.edu">
<FRAME SRC="http://www.virginia.edu">
<FRAME SRC="http://www.virginia.edu">
</FRAMESET>
34
</FRAMESET>
<FRAMESET COLS="*,*">
<FRAME SRC="http://www.virginia.edu">
<FRAME SRC="http://www.virginia.edu">
</FRAMESET>
</FRAMESET>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Frames
<FRAMESET ROWS="25%,75%"
<FRAMESET COLS="*,*,*">
<FRAME SRC="http://www.virginia.edu">
<FRAME SRC="http://www.virginia.edu">
<FRAME SRC="http://www.virginia.edu">
</FRAMESET>
35
</FRAMESET>
<FRAMESET COLS="*,*">
<FRAME SRC="http://www.virginia.edu">
<FRAME SRC="http://www.virginia.edu">
</FRAMESET>
</FRAMESET>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Frames
<FRAMESET ROWS="*,*">
<FRAMESET COLS="15%, 2*, *">
<FRAME SRC="http://www.cs.virginia.edu/">
<FRAME SRC="http://www.cs.virginia.edu/">
<FRAME SRC="http://www.cs.virginia.edu/">
36
<FRAME SRC="http://www.cs.virginia.edu/">
</FRAMESET>
<FRAMESET COLS="40%, *">
<FRAME SRC="http://www.cs.virginia.edu/">
<FRAME SRC="http://www.cs.virginia.edu/">
</FRAMESET>
</FRAMESET>
Subject Name Code Credit Hours
Internet Fundamental and Applications
Sample Code for Frames
Framesample.html
<frameset cols="25%,*">
<frame src="file:///C:/Users/BAGA/Desktop/menu.html">
<frame src="file:///C:/Users/BAGA/Desktop/menu.html"
name=main>
</frameset>
Menu.HTMLMenu.HTML
<html>
<head></head>
<Body>
<H1> Menu</H1>
<a href="file:///C:/Users/BAGA/Desktop/first.html"
target=main>First</a><br>
<a
href="file:///C:/Users/BAGA/Documents/first1.html"target=main>Second
</a>
</Body>
</html>
Subject Name Code Credit Hours
Internet Fundamental and Applications
CSS
• CSS information can be provided from various sources. CSS style
information can be in a separate document or it can be embedded
into an HTML document.
• Multiple style sheets can be imported. Different styles can be
Cascading Style Sheets
• Multiple style sheets can be imported. Different styles can be
applied depending on the output device being used; for example,
the screen version can be quite different from the printed version,
so that authors can tailor the presentation appropriately for each
medium.
Subject Name Code Credit Hours
Internet Fundamental and Applications
Sample Code for CSSCSS2.css
h1 {color:blue;}
p {color:blue;}
Hr {color:blue;size:7;}
h2{color:yellow;}
any.HTML
<html>
<head>
<link rel="stylesheet" type="text/css" href=“css2.css"><link rel="stylesheet" type="text/css" href=“css2.css">
</head>
<body>
<hr>
<h1>A heading</h1>
<h2> H2 heading</h2>
<h3> This is H3 heading</h3>
<hr>
<p>A paragraph kjehqw kjehk kjhdqw kkejd kjb
jhdg.</p>
</body>
</html>
Subject Name Code Credit Hours
Internet Fundamental and Applications
<html>
<head><title>My first web site </title></head>
<body bgcolor= "olive" text= white>
<form name="myform"
action="http://www.mydomain.com/myformhandler.cgi"
Sample Code for Form
action="http://www.mydomain.com/myformhandler.cgi"
method="POST">
<input type="text" size="25" value="Enter your name here!">
Enter Password : <input type="password" size="25">
Subject Name Code Credit Hours
Internet Fundamental and Applications
<input type ="checkbox" name="option1" value="Male"> Male<br>
<input type ="checkbox" name="option2" value="FeMale">FeMale<br>
<input type="radio" name="group1" value="A level"> A level<br>
<input type="radio" name="group1" value="B level" checked> B
level<br>
<select>
<option>India</option>
<option>Malaysia</option><option>Malaysia</option>
<option>England</option>
</select>
<textarea cols="40" rows="5" name="myname">
Please enter ur address
</textarea>
<input type="submit" value="Submit">
</form>
</body>
</html>

More Related Content

What's hot (20)

Computer application html
Computer application htmlComputer application html
Computer application html
 
Intro to html revised2
Intro to html revised2Intro to html revised2
Intro to html revised2
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5
 
Html
HtmlHtml
Html
 
Intro webtechstc
Intro webtechstcIntro webtechstc
Intro webtechstc
 
Css notes
Css notesCss notes
Css notes
 
Beginning html
Beginning  htmlBeginning  html
Beginning html
 
HTML and ASP.NET
HTML and ASP.NETHTML and ASP.NET
HTML and ASP.NET
 
Fam Med Fellows 2009 1 Oct09
Fam Med Fellows 2009 1 Oct09Fam Med Fellows 2009 1 Oct09
Fam Med Fellows 2009 1 Oct09
 
The complete-html-cheat-sheet
The complete-html-cheat-sheetThe complete-html-cheat-sheet
The complete-html-cheat-sheet
 
Html.docx
Html.docxHtml.docx
Html.docx
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
HTML
HTMLHTML
HTML
 
html for beginners
html for beginnershtml for beginners
html for beginners
 
Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
 
HTML
HTMLHTML
HTML
 
Html basic
Html basicHtml basic
Html basic
 
Html basics
Html basicsHtml basics
Html basics
 

Viewers also liked

Signs4sa -Company Profile
Signs4sa -Company Profile Signs4sa -Company Profile
Signs4sa -Company Profile Georgie Shaw
 
La enseñanza virtual en la educación superior
La enseñanza virtual en la educación superiorLa enseñanza virtual en la educación superior
La enseñanza virtual en la educación superiorliliana adama
 
THESIS_Tampere All Bright Ambassador network_Mari Taverne
THESIS_Tampere All Bright Ambassador network_Mari TaverneTHESIS_Tampere All Bright Ambassador network_Mari Taverne
THESIS_Tampere All Bright Ambassador network_Mari TaverneMari Taverne
 
Мята перечная
Мята перечнаяМята перечная
Мята перечнаяDulmabald
 
Oracle HRMS Fundamental CV
Oracle HRMS Fundamental CVOracle HRMS Fundamental CV
Oracle HRMS Fundamental CVSyed Badar
 
Christyan coigny
Christyan coignyChristyan coigny
Christyan coignysamara celi
 
Fundamental of computer
Fundamental of computerFundamental of computer
Fundamental of computerMijanur Rahman
 
Comp107 unit 1,2,3 (1)
Comp107 unit 1,2,3 (1)Comp107 unit 1,2,3 (1)
Comp107 unit 1,2,3 (1)Mijanur Rahman
 
Comp 107 unit 4(operating systems)
Comp 107 unit 4(operating systems)Comp 107 unit 4(operating systems)
Comp 107 unit 4(operating systems)Mijanur Rahman
 
Sabrina silveira
Sabrina silveiraSabrina silveira
Sabrina silveirasamara celi
 
Hipertensi¢n arterial
Hipertensi¢n arterialHipertensi¢n arterial
Hipertensi¢n arterialRosario Solis
 
Comp unit 9 e commerce
Comp unit 9 e commerceComp unit 9 e commerce
Comp unit 9 e commerceMijanur Rahman
 
Comp 107 unit 7 and 8 (networking, internet and intranet) (1)
Comp 107 unit 7 and 8 (networking, internet and intranet) (1)Comp 107 unit 7 and 8 (networking, internet and intranet) (1)
Comp 107 unit 7 and 8 (networking, internet and intranet) (1)Mijanur Rahman
 
Comp 107 unit 7 and 8 (networking, internet and intranet)
Comp 107 unit 7 and 8 (networking, internet and intranet)Comp 107 unit 7 and 8 (networking, internet and intranet)
Comp 107 unit 7 and 8 (networking, internet and intranet)Mijanur Rahman
 

Viewers also liked (20)

Signs4sa -Company Profile
Signs4sa -Company Profile Signs4sa -Company Profile
Signs4sa -Company Profile
 
La enseñanza virtual en la educación superior
La enseñanza virtual en la educación superiorLa enseñanza virtual en la educación superior
La enseñanza virtual en la educación superior
 
THESIS_Tampere All Bright Ambassador network_Mari Taverne
THESIS_Tampere All Bright Ambassador network_Mari TaverneTHESIS_Tampere All Bright Ambassador network_Mari Taverne
THESIS_Tampere All Bright Ambassador network_Mari Taverne
 
Comunicacion social
Comunicacion socialComunicacion social
Comunicacion social
 
Мята перечная
Мята перечнаяМята перечная
Мята перечная
 
Oracle HRMS Fundamental CV
Oracle HRMS Fundamental CVOracle HRMS Fundamental CV
Oracle HRMS Fundamental CV
 
Christyan coigny
Christyan coignyChristyan coigny
Christyan coigny
 
Fundamental of computer
Fundamental of computerFundamental of computer
Fundamental of computer
 
Comp107 unit 1,2,3 (1)
Comp107 unit 1,2,3 (1)Comp107 unit 1,2,3 (1)
Comp107 unit 1,2,3 (1)
 
Comp 107 unit 4(operating systems)
Comp 107 unit 4(operating systems)Comp 107 unit 4(operating systems)
Comp 107 unit 4(operating systems)
 
Sabrina silveira
Sabrina silveiraSabrina silveira
Sabrina silveira
 
Comp107 unit 5,6
Comp107 unit 5,6Comp107 unit 5,6
Comp107 unit 5,6
 
Osam Khairi-Resume 1
Osam Khairi-Resume 1Osam Khairi-Resume 1
Osam Khairi-Resume 1
 
Comp107 unit 1,2,3
Comp107 unit 1,2,3Comp107 unit 1,2,3
Comp107 unit 1,2,3
 
Unit 10
Unit 10Unit 10
Unit 10
 
Hipertensi¢n arterial
Hipertensi¢n arterialHipertensi¢n arterial
Hipertensi¢n arterial
 
Comp unit 9 e commerce
Comp unit 9 e commerceComp unit 9 e commerce
Comp unit 9 e commerce
 
Comp 107 unit 7 and 8 (networking, internet and intranet) (1)
Comp 107 unit 7 and 8 (networking, internet and intranet) (1)Comp 107 unit 7 and 8 (networking, internet and intranet) (1)
Comp 107 unit 7 and 8 (networking, internet and intranet) (1)
 
Comp 107 unit 7 and 8 (networking, internet and intranet)
Comp 107 unit 7 and 8 (networking, internet and intranet)Comp 107 unit 7 and 8 (networking, internet and intranet)
Comp 107 unit 7 and 8 (networking, internet and intranet)
 
Nicaurys alt. checo
Nicaurys alt. checoNicaurys alt. checo
Nicaurys alt. checo
 

Similar to Unit 11 (20)

Introduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar SinghIntroduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar Singh
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
Html
HtmlHtml
Html
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
 
HyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.pptHyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.ppt
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Basic tags
Basic tagsBasic tags
Basic tags
 
Basic tags
Basic tagsBasic tags
Basic tags
 
Html
HtmlHtml
Html
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
 
Ifi7174 lesson1
Ifi7174 lesson1Ifi7174 lesson1
Ifi7174 lesson1
 
Html 5
Html 5Html 5
Html 5
 
Hypertext markup language(html)
Hypertext markup language(html)Hypertext markup language(html)
Hypertext markup language(html)
 
Web Developement Workshop (Oct 2009 -Day 1)
Web Developement Workshop (Oct 2009 -Day 1)Web Developement Workshop (Oct 2009 -Day 1)
Web Developement Workshop (Oct 2009 -Day 1)
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
 
HTML Tutorials
HTML TutorialsHTML Tutorials
HTML Tutorials
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 

Recently uploaded

20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdfMatthew Sinclair
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...tanu pandey
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableSeo
 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...SUHANI PANDEY
 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋nirzagarg
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdfMatthew Sinclair
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtrahman018755
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge GraphsEleniIlkou
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...SUHANI PANDEY
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLimonikaupta
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Delhi Call girls
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirtrahman018755
 
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...SUHANI PANDEY
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftAanSulistiyo
 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubaikojalkojal131
 

Recently uploaded (20)

20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
 
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
 
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
 

Unit 11

  • 1. Subject Name Code Credit Hours Internet Fundamental and Applications HTML
  • 2. Subject Name Code Credit Hours Internet Fundamental and Applications HTML • HTML stands for Hypertext Markup Language, and it is the most widely used language to write Web Pages. As its name suggests, HTML is a markup language (presentation of text). • Hypertext refers to the way in which Web pages (HTML documents) are linked together. When you click a link in a Web page, you are using hypertext. • Markup Language describes how HTML works. With a markup language, you simply "mark up" a text document with tags that tell a Web browser how to structure it to display. 26-Mar-15 Balaganesh -Lincoln University 2
  • 3. Subject Name Code Credit Hours Internet Fundamental and Applications HTML Basic Structure <HTML> <HEAD> <TITLE> Qi’s web! </TITLE> </HEAD> 3 </HEAD> <BODY> <H1> Hello World </H1> <! Rest of page goes here. This is a comment. > </BODY> </HTML>
  • 4. Subject Name Code Credit Hours Internet Fundamental and Applications The basic structure for all HTML documents is simple and should include the following minimum elements or tags: <html> -The main container for HTML pages <head> 26-Mar-15 Balaganesh -Lincoln University 4 <head> -The container for page header information <title> -The title of the page <body> -The main body of the page
  • 5. Subject Name Code Credit Hours Internet Fundamental and Applications BODY Element <BODY attributename="attributevalue"> • Deprecated attributes (but still used) – BACKGROUND=“Sunset.jpg” (can be tiled) =color– BGCOLOR=color – TEXT=color – LINK=color (unvisited links) – VLINK=color (visited links) – ALINK=color (when selected) 5
  • 6. Subject Name Code Credit Hours Internet Fundamental and Applications Attribute Options Function Generic Attributes 6
  • 7. Subject Name Code Credit Hours Internet Fundamental and Applications Headings <H1 ...> text </H1> -- largest of the six <H2 ...> text </H2> <H3 ...> text </H3> <H4 ...> text </H4> 7 <H4 ...> text </H4> <H5 ...> text </H5> <H6 ...> text </H6> -- smallest of the six ALIGN="position" --left (default), center or right
  • 8. Subject Name Code Credit Hours Internet Fundamental and Applications Headings <HTML> <HEAD> <TITLE>Document Headings</TITLE> </HEAD> <BODY> Samples of the six heading types: <H1>Level-1 (H1)</H1> 8 <H1>Level-1 (H1)</H1> <H2 ALIGN="center">Level-2 (H2)</H2> <H3><U>Level-3 (H3)</U></H3> <H4 ALIGN="right">Level-4 (H4)</H4> <H5>Level-5 (H5)</H5> <H6>Level-6 (H6)</H6> </BODY> </HTML>
  • 9. Subject Name Code Credit Hours Internet Fundamental and Applications <P> Paragraph • <P> defines a paragraph • Add ALIGN="position" (left, center, right) • Multiple <P>'s do not create blank lines• Multiple <P>'s do not create blank lines • Use <BR> for blank line • Fully-specified text uses <P> and </P> • But </P> is optional 9
  • 10. Subject Name Code Credit Hours Internet Fundamental and Applications <BODY> <P>Here is some text </P> <P ALIGN="center"> Centered text </P> <P><P><P> <P ALIGN="right"> Right-justified text <! Note: no closing /P tag is not a problem> 10 <! Note: no closing /P tag is not a problem> </BODY>
  • 11. Subject Name Code Credit Hours Internet Fundamental and Applications Colors • Values for BGCOLOR and COLOR – many are predefined (red, blue, green, ...) – all colors can be specified as a six character hexadecimal value: RRGGBBvalue: RRGGBB – FF0000 – red – 888888 – grey – 004400 – dark green – FFFF00 – yellow 11
  • 12. Subject Name Code Credit Hours Internet Fundamental and Applications Fonts <FONT COLOR="red" SIZE="2" FACE="Times Roman"> This is the text of line one </FONT> <FONT COLOR="green" SIZE="4" FACE="Arial"> 12 FACE="Arial"> Line two contains this text </FONT> <FONT COLOR="blue" SIZE="6" FACE="Courier" The third line has this additional text </FONT> Note: <FONT> is now deprecated in favor of CSS.
  • 13. Subject Name Code Credit Hours Internet Fundamental and Applications Ordered (Numbered) Lists <OL TYPE="1"> <LI> Item one </LI> <LI> Item two </LI> <OL TYPE="I" > <LI> Sublist item one </LI> 13 <LI> Sublist item one </LI> <LI> Sublist item two </LI> <OL TYPE="i"> <LI> Sub-sublist item one </LI> <LI> Sub-sublist item two </LI> </OL> </OL> </OL>
  • 14. Subject Name Code Credit Hours Internet Fundamental and Applications Unordered (Bulleted) Lists <UL TYPE="disc"> <LI> One </LI> <LI> Two </LI> <UL TYPE="circle"> <LI> Three </LI> 14 <LI> Three </LI> <LI> Four </LI> <UL TYPE="square"> <LI> Five </LI> <LI> Six </LI> </UL> </UL> </UL>
  • 15. Subject Name Code Credit Hours Internet Fundamental and Applications Physical Character Styles <H1>Physical Character Styles</H1> <B>Bold</B><BR> <I>Italic</I><BR> <TT>Teletype (Monospaced)</TT><BR> <U>Underlined</U><BR> Subscripts: f<SUB>0</SUB> + f<SUB>1</SUB><BR> Superscripts: x<SUP>2</SUP> + y<SUP>2</SUP><BR> <SMALL>Smaller</SMALL><BR> 15 <SMALL>Smaller</SMALL><BR> <BIG>Bigger</BIG><BR> <STRIKE>Strike Through</STRIKE><BR> <B><I>Bold Italic</I></B><BR> <BIG><TT>Big Monospaced</TT></BIG><BR> <SMALL><I>Small Italic</I></SMALL><BR> <FONT COLOR="GRAY">Gray</FONT><BR> <DEL>Delete</DEL><BR> <INS>Insert</INS><BR>
  • 16. Subject Name Code Credit Hours Internet Fundamental and Applications Logical Character Styles <H1>Logical Character Styles</H1> <EM>Emphasized</EM><BR> <STRONG>Strongly Emphasized</STRONG><BR> <CODE>Code</CODE><BR> <SAMP>Sample Output</SAMP><BR> <KBD>Keyboard Text</KBD><BR> <DFN>Definition</DFN><BR> 16 <DFN>Definition</DFN><BR> <VAR>Variable</VAR><BR> <CITE>Citation</CITE><BR> <EM><CODE>Emphasized Code</CODE></EM><BR> <FONT COLOR="GRAY"><CITE>Gray Citation</CITE></FONT><BR> <ACRONYM TITLE="Java Development Kit">JDK Acronym</ACRONYM>
  • 17. Subject Name Code Credit Hours Internet Fundamental and Applications <A> Anchors (HyperLinks) Link to an absolute URL: If you get spam, contact <A HREF="htttp:www.microsoft.com“>Microsoft </A> to report the problem. Link to a relative URL: 17 Link to a relative URL: See these <A HREF="#references"> references </A> concerning our fine products. Link to a section within a URL: Amazon provided a <A HREF="www.amazon.com/#reference"> reference for our company. </A>
  • 18. Subject Name Code Credit Hours Internet Fundamental and Applications Naming a Section <H2> <A NAME="#references"> Our References </A> </H2> Example 18
  • 19. Subject Name Code Credit Hours Internet Fundamental and Applications Hyperlinks <BODY> <H3>Welcome to <A HREF="http://www.cs.virginia.edu"> <STRONG>Computer Science</STRONG></A> at the <A HREF="www.virginia.edu">University of Virginia.</A> </H3> </BODY> 19 </BODY>
  • 20. Subject Name Code Credit Hours Internet Fundamental and Applications Images • SRC is required • WIDTH, HEIGHT may be in units of pixels or percentage of page or frame – WIDTH="357"– WIDTH="357" – HEIGHT="50%" • Images scale to fit the space allowed 20
  • 21. Subject Name Code Credit Hours Internet Fundamental and Applications Images Align=position Image/Text Placement Left Image on left edge; text flows to right of image Right Image on right edge; text flows to left 21 Right Image on right edge; text flows to left Top Image is left; words align with top of image Bottom Image is left; words align with bottom of image Middle Words align with middle of image
  • 22. Subject Name Code Credit Hours Internet Fundamental and Applications Images <BODY> <img src="dolphin.jpg" align="left" width="150" height="150" alt="dolphin jump!"> This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> 22 This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> This is a very cute dolphin on the left!<br> You can see text wrap around it<br> </BODY> </HTML>
  • 23. Subject Name Code Credit Hours Internet Fundamental and Applications ALIGN="left" 23
  • 24. Subject Name Code Credit Hours Internet Fundamental and Applications ALIGN="right" 24
  • 25. Subject Name Code Credit Hours Internet Fundamental and Applications Tables <TABLE> table tag <CAPTION> optional table title <TR> table row 25 <TR> table row <TH> table column header <TD> table data element
  • 26. Subject Name Code Credit Hours Internet Fundamental and Applications Tables <TABLE BORDER=1> <CAPTION>Table Caption</CAPTION> <TR><TH>Heading1</TH> <TH>Heading2</TH></TR> <TR><TD>Row1 Col1 Data</TD><TD>Row1 Col2 Data</TD></TR> <TR><TD>Row2 Col1 Data</TD><TD>Row2 Col2 Data</TD></TR> 26 <TR><TD>Row2 Col1 Data</TD><TD>Row2 Col2 Data</TD></TR> <TR><TD>Row3 Col1 Data</TD><TD>Row3 Col2 Data</TD></TR> </TABLE>
  • 27. Subject Name Code Credit Hours Internet Fundamental and Applications <TABLE> Element Attributes • ALIGN=position -- left, center, right for table • BORDER=number -- width in pixels of border (including any cell spacing, default 0) • CELLSPACING=number -- spacing in pixels between cells, default• CELLSPACING=number -- spacing in pixels between cells, default about 3 • CELLPADDING=number -- space in pixels between cell border and table element, default about 1 • WIDTH=number[%]-- width in pixels or percentage of page/frame width 27
  • 28. Subject Name Code Credit Hours Internet Fundamental and Applications • cellspacing=10 • cellpadding=10 28
  • 29. Subject Name Code Credit Hours Internet Fundamental and Applications <TABLE> Element Attributes BGCOLOR=color -- background color of table, also valid for <TR>, <TH>, and <TD> RULES=value -- which internal lines are shown; values are none, rows, cols, and all (default) 29 none, rows, cols, and all (default) EX: <TABLE COLS=“40%, *,*”> <TABLE ROWS=“*,*”>
  • 30. Subject Name Code Credit Hours Internet Fundamental and Applications <TR> Table Row Attributes Valid for the table row: ALIGN -- left, center, right VALIGN -- top, middle, bottom BGCOLOR -- background color 30 <TABLE ALIGN="center" WIDTH="300" HEIGHT="200"> <TR ALIGN="left" VALIGN="top" BGCOLOR="red"><TD>One</TD><TD>Two</TD> <TR ALIGN="center" VALIGN="middle" BGCOLOR="lightblue"><TD>Three</TD><TD>Four</TD> <TR ALIGN="right" VALIGN="bottom" BGCOLOR="yellow"><TD>Five</TD><TD>Six</TD> </TABLE>
  • 31. Subject Name Code Credit Hours Internet Fundamental and Applications <TD> Table Cell Attributes Valid for the table cell: colspan -- how many columns this cell occupies rowspan – how many rows this cell occupies <TABLE ALIGN="center" WIDTH="300" HEIGHT="200" border="1"> 31 <TABLE ALIGN="center" WIDTH="300" HEIGHT="200" border="1"> <TR> <TD colspan="1" rowspan="2">a</TD> <TD colspan="1" rowspan="1">b</TD> </TR> <TR> <TD colspan="1" rowspan="1">c</TD> </TR> </TABLE>
  • 32. Subject Name Code Credit Hours Internet Fundamental and Applications Frames • Frames help control navigation and display • <FRAME> attributes include – FRAMEBORDER – yes or 1 for borders – FRAMESPACING – width of border – BORDERCOLOR – color – SRC – location of HTML to display in frame – NAME – destination for TARGET attribute 32
  • 33. Subject Name Code Credit Hours Internet Fundamental and Applications Frames – MARGINWIDTH – left/right margins – MARGINHEIGHT – top/bottom margins – yes or 1 adds scroll bar– SCROLLING – yes or 1 adds scroll bar – NORESIZE – yes or 1 disables resizing 33
  • 34. Subject Name Code Credit Hours Internet Fundamental and Applications Frames <FRAMESET ROWS="75%,25%"> <FRAMESET COLS="*,*,*"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> </FRAMESET> 34 </FRAMESET> <FRAMESET COLS="*,*"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> </FRAMESET> </FRAMESET>
  • 35. Subject Name Code Credit Hours Internet Fundamental and Applications Frames <FRAMESET ROWS="25%,75%" <FRAMESET COLS="*,*,*"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> </FRAMESET> 35 </FRAMESET> <FRAMESET COLS="*,*"> <FRAME SRC="http://www.virginia.edu"> <FRAME SRC="http://www.virginia.edu"> </FRAMESET> </FRAMESET>
  • 36. Subject Name Code Credit Hours Internet Fundamental and Applications Frames <FRAMESET ROWS="*,*"> <FRAMESET COLS="15%, 2*, *"> <FRAME SRC="http://www.cs.virginia.edu/"> <FRAME SRC="http://www.cs.virginia.edu/"> <FRAME SRC="http://www.cs.virginia.edu/"> 36 <FRAME SRC="http://www.cs.virginia.edu/"> </FRAMESET> <FRAMESET COLS="40%, *"> <FRAME SRC="http://www.cs.virginia.edu/"> <FRAME SRC="http://www.cs.virginia.edu/"> </FRAMESET> </FRAMESET>
  • 37. Subject Name Code Credit Hours Internet Fundamental and Applications Sample Code for Frames Framesample.html <frameset cols="25%,*"> <frame src="file:///C:/Users/BAGA/Desktop/menu.html"> <frame src="file:///C:/Users/BAGA/Desktop/menu.html" name=main> </frameset> Menu.HTMLMenu.HTML <html> <head></head> <Body> <H1> Menu</H1> <a href="file:///C:/Users/BAGA/Desktop/first.html" target=main>First</a><br> <a href="file:///C:/Users/BAGA/Documents/first1.html"target=main>Second </a> </Body> </html>
  • 38. Subject Name Code Credit Hours Internet Fundamental and Applications CSS • CSS information can be provided from various sources. CSS style information can be in a separate document or it can be embedded into an HTML document. • Multiple style sheets can be imported. Different styles can be Cascading Style Sheets • Multiple style sheets can be imported. Different styles can be applied depending on the output device being used; for example, the screen version can be quite different from the printed version, so that authors can tailor the presentation appropriately for each medium.
  • 39. Subject Name Code Credit Hours Internet Fundamental and Applications Sample Code for CSSCSS2.css h1 {color:blue;} p {color:blue;} Hr {color:blue;size:7;} h2{color:yellow;} any.HTML <html> <head> <link rel="stylesheet" type="text/css" href=“css2.css"><link rel="stylesheet" type="text/css" href=“css2.css"> </head> <body> <hr> <h1>A heading</h1> <h2> H2 heading</h2> <h3> This is H3 heading</h3> <hr> <p>A paragraph kjehqw kjehk kjhdqw kkejd kjb jhdg.</p> </body> </html>
  • 40. Subject Name Code Credit Hours Internet Fundamental and Applications <html> <head><title>My first web site </title></head> <body bgcolor= "olive" text= white> <form name="myform" action="http://www.mydomain.com/myformhandler.cgi" Sample Code for Form action="http://www.mydomain.com/myformhandler.cgi" method="POST"> <input type="text" size="25" value="Enter your name here!"> Enter Password : <input type="password" size="25">
  • 41. Subject Name Code Credit Hours Internet Fundamental and Applications <input type ="checkbox" name="option1" value="Male"> Male<br> <input type ="checkbox" name="option2" value="FeMale">FeMale<br> <input type="radio" name="group1" value="A level"> A level<br> <input type="radio" name="group1" value="B level" checked> B level<br> <select> <option>India</option> <option>Malaysia</option><option>Malaysia</option> <option>England</option> </select> <textarea cols="40" rows="5" name="myname"> Please enter ur address </textarea> <input type="submit" value="Submit"> </form> </body> </html>