Professional Documents
Culture Documents
HTML
HTML
.
World Wide Web Consortium (W3C) .
http://www.w3.org
HTML ,
HTML
HTML . HTML Document <html>
(tag) </html> tag .
<head> ------ </head> , <body> -------------- </body>
. <head> tag (Title) Meta
tags . <body> tag
.
. - <p> --------- </p>, <h1> ---------- </h1>
html .
<Html>
<Head>
----------------------------------------------</head>
<Body>
----------------------------------------------------------</body>
</html>
1.
Note pad (Start >> All Programs >> Accessories >> Notepad)
.
<Html>
<Head>
</head>
<Body>
<p>
<u>simple </u>
Way, The basic structure of an HTML document.
</p>
</body>
</html>
. Double Click
.
<title> Tag
<head> tag <title> tag
- Title
. (Search
engines) . Title
.
tag .
<p> tag
<p> </p> tag .
<p> </p>
.
10
11
12
<b> <strong>
.
13
Italic <em>
14
Underline <u>
15
<ol>
<li>first line </li>
<li>Second line </li>
<li>something </li>
<li>xxxxxxxxx </li>
</ol>
16
type=1, type=a .
<ol>
<li type="1">xxxxxxxxxx</li>
<li type="a">xxxxxxxxxxxxxx</li>
<li type="A">xxxxxxxxxxxxxx</li>
<li type="i">xxxxxxxxxxxxxx</li>
<li type="I">xxxxxxxxxxxxxx</li>
<li >xxxxxxxxxxxxxx
<ol>
<li>xxxxxxxx</li>
<li>xxxxxxxxxxxxx
<ol>
<li type="a">xxxxxxxxxxxx</li>
<li type="a">xxxxxxxxxxxxx</li>
</ol>
</li>
<li>xxxxxxx</li>
</ol>
</li>
<li>xxxxxxxxxxx</li>
</ol>
17
<ul>
<li>first line </li>
<li>Second line </li>
<li>something </li>
<li>xxxxxxxxx </li>
</ul>
18
<ul>
<li>xxxxxxxx</li>
<li type="circle">xxxxxxxxxxxxxxxx</li>
<li type="disc">xxxxxxxxxxxxxxxxxxx</li>
<li type="square">xxxxxxxxxxxx </li>
<li>xxxxxxxxxxxx
<ul>
<li>xxxxxxx</li>
<li>xxxxxxxxxx</li>
<li>xxxxxxxxxxx
<ul>
<li>xxxxxxxxxx</li>
<li>xxxxxxxxxxxx</li>
</ul>
</li>
<li>xxxxxxxxx</li>
</ul>
</li>
<li>xxxxxx</li>
</ul>
19
HTML File .
<Html>
<Head>
</head>
<Body>
<p>
<u>simple </u><br><br>
The basic structure of an HTML document.
</p>
<hr>
<h1>Br </h1>
20
..
.
<< Back :: Home :: Next >>
</ol>
</li>
</li>
<li>xxxxxxx</li>
<li>xxxxxxxxxxx</li>
</ol>
..
.
21
<ul>
<li>first line </li>
<li>Second line </li>
<li>something </li>
<li>xxxxxxxxx </li>
</ul>
<ul>
<li>xxxxxxxx</li>
<li type="circle">xxxxxxxxxxxxxxxx</li>
<li type="disc">xxxxxxxxxxxxxxxxxxx</li>
<li type="square">xxxxxxxxxxxx </li>
<li>xxxxxxxxxxxx
<ul>
<li>xxxxxxx</li>
<li>xxxxxxxxxx</li>
<li>xxxxxxxxxxx
<ul>
<li>xxxxxxxxxx</li>
<li>xxxxxxxxxxxx</li>
</ul>
</li>
<li>xxxxxxxxx</li>
</ul>
</li>
<li>xxxxxx</li>
</ul>
</body>
</html>
22
.
.
23
<Pre> Tag
<pre> tag
type
HTML .
<pre>
All Annual Champions
--------------------------------------------------------Year
Winner
Loser
--------------2000
Ravi
Ragu
1999
Karan
Robert
1998
Nila
Thana
1997
Mathy
Mayo
1996
Siva
Mayo
---------------------------------------------------------</pre>
24
25
<blockquote>
<blockguote>
. .
<p>
Here begins the quote
</p>
<blockquote>
<p>
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The
quick
brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
fox
jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The
quick
brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
fox
jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The
quick
brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
fox
jumps over the lazy dog.
</p>
<p>Professional Web designing 2002 - 2008.</p>
</blockquote>
<p>
And there ends the quote
</p>
26
27
(Character Formatting )
.
<b>
<u>
<i>
<strike>
<sub>
<sup>
28
Boldface type
Underlined text
Italics
Text that has a line through it
Subscript
Superscript
size .
<font size=2>
This is small
</font>
<font size=5>
This is large
</font>
<p>
<font size=-3>
This is very small
</font>
<font size=+3>
This is very large
</font>
</p>
29
face .
30
color .
RGB R = 60, G = 182, B = 85 .
hexadecimal 60 hexadecimal 3C . 182
B6, 85 55 . color = #3CB655
.
31
<font color=#00ff00>xxxxxxxxxxxx</font>
<font color=green>xxxxxxxxxxx</font>
<font color=#0000ff>xxxxxxxxxxxxxxxx</font>
<font color=blue>xxxxxxxxxxxxx</font>
<body text=green>
<body text=#00ff00>
<body bgcolor=#00ffff>
32
:
(<body> </body> )
<basefont size=5 color=#006699>
.
33
(Images) <img>
.
HTML <img> Tag
. JPEG, GIF, PNG .
plug-in . GIF
.
-
(File Size) . File Size
.
.
.
800 x 600 (pixels) .
Screen Resolution (Monitor) .
34
35
36
37
bk 301
4x 003
38
4 x 003
bk 75
(Buttons) GIF
(Color full) JPEG .
.
39
(Graphic Type )
(File Format )
(Photographs)
JPG
(Text with few colors)
(Small icons)
GIF
Anything with 256+ colors
40
GIF
JPG
<img> tag src
.
<img src=MyPicture.gif>
folder
.
Folder images Folder
.
<img src=images/MyPicture.gif>
.
41
42
43
.
.
www.google.com Logo_25wht.gif
.
<img src="http://www.google.com/logos/Logo_25wht.gif" >
(URL) .
44
45
alt .
<img src=images/MyPicture.gif width=127 height=115 border=4 alt=This is my picture>
Mouse .
46
align .
<img src=images/MyPicture.gif width=127 height=115 border=2 align=left>
47
48
<body> tag background
.
<body background=back.gif">
49
(Links)
(File)
.
<a> tag .
<a > tag href .
.
<a href = file Name > </a>
mypage.html
show my page
.
<a href = mypage.html > show my page </a>
50
:1) page1.html
.
2) .
3)
<a href = page1.html > click here </a> to show page 1.
4) mainpage.html .
5) mainpage.html .
,
51
52
.
myfile.exe ,
This is our software <a href = myfile.exe >Download here </a>
.
dialog box .
53
,
href .
<a href = http://www.google.com/ > Worlds #1 search engine </a> Google.
google.com .
.
<a href = http://www.opensourceshare.com/ > Open Source Downloads </a>
<a href = http://www.opensourceshare.com/GoogleDesktopBar-Setup.exe > Google Desktop
Bar </a>
54
,
.
target _blank, _parent, _self _top .
_blank
.
.
<a href = http://www.opensourceshare.com/ target = _blank > Open Source Downloads </a>
_parent
.
<a href = http://www.opensourceshare.com/ target = _parent > Open Source Downloads
</a>
_self .
_top Frame
. (Frame .)
55
Named Anchor
<a > tag
name
. Named
Anchor
.
.
<a name=top ></a>
top anchor
.
<a href="#top">Go to top</a>
.
56
57
E-Mail Links
.
<a href="mailto:info@mysite.com">Mail Me</a>
( Outlook
Express) to
.
.
58
.
(<img> tag .)
<a href="http://www.w3.org"><img src="valid-html401.gif" width="88" height="31"
border="0" /></a>
(mouse)
.
www.w3.org
.
59
Tables <table>
table .
, .
table
<table width="100%" border="1" >
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
60
61
colspan, rowspan
cell .
.
<table width="400" border="1" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td rowspan="3"> </td>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
62
cellspacing cell .
cellpadding cell .
width, height, bgcolor, background, border, bordercolor, align, valign .
.
<table width="400" border="1" cellpadding="0" cellspacing="4" bgcolor="#FFFFFF" bordercolor="#000000">
<tr>
<td colspan="2" bgcolor="#CCCCCC" align="center"><strong>Sample Text</strong></td>
</tr>
<tr>
<td rowspan="3" bgcolor="#0099FF" align="left" valign="top">
Sample Text<br />
Sample Text<br />
</td>
<td align="right">Sample Text</td>
</tr>
<tr>
<td align="right">Sample Text</td>
</tr>
<tr>
<td align="right">Sample Text</td>
</tr>
</table>
63
64
Frames
Frame
.
mypage2.html, mypage3.html
.
.
.
<html>
<head>
<title>Main Page</title>
</head>
<frameset rows="*" cols="251,*" framespacing="0" frameborder="no" border="1">
<frame src="mypage2.html" name="leftFrame" scrolling=no" noresize="noresize" id="leftFrame"
title="leftFrame" />
<frame src="mypage3.html" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
65
66
.
.
.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>mainpage</title>
</head>
<frameset rows="*" cols="*,215" framespacing="0" frameborder="no" border="0">
<frameset rows="105,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="mypage.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame"
title="topFrame" />
<frame src="http://www.opensourceshare.com/" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<frame src="mypage2.html" name="rightFrame" scrolling="yes" noresize="noresize" id="rightFrame"
title="rightFrame" />
</frameset>
<noframes><body>
</body>
</noframes>
</html>
67
68
Meta Tags
<head> </head> tag Meta
. ,
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
, Unicode
charset=utf-8
.
<META content=web designing, learning, Tamil" name=keywords>
Keyword . Search Engine .
<META content=This is Tamil learning system for web developing." name=description>
. Search Engine .
<META
<META
<META
<META
<META
<META
69
70
71
<html>
<head>
<title>Embedded Style Sheet Example</title>
<style type=text/css >
<!-H1 {font-size:20pt;color:red}
H2 {font-size:15pt;color:green}
H3 {font: 12pt "arial"}
p {font-size: 10pt; color: "#10e0ff"}
body { background-color: white }
-->
</style>
</head>
<body>
<h1> Embedded Style Sheet Example</h1>
<p>This is a paragraph - note that the size and colour is specified in the heading.</p>
</body>
</html>
72
file ,
H1 {font-size:20pt;color:red}
H2 {font-size:15pt;color:green}
H3 {font: 12pt "arial"}
p
{
font-size: 10pt; color: "#10e0ff
}
body { background-color: white }
notepad .css . file
.
73
74
75