Professional Documents
Culture Documents
HTML
Internet Internet Homepage Internet
Internet
Network Information Web Page
Web Page HTML Web Page Web Browser Software Web Broswer Software Internet Explorer Firefox
HTML History
1989 Tim Berners-Lee Rober Calliau Research Documents
Berners-Lee browser Tag
tage Hyper-Link
document tag Berners-Lee Hyber Text
Markup Language HTML
Tag
Tag Text HTML code
<b>This is bold </b> web browser bold <b> </b>
tag tag /
HTML Editor
HTML Editor IDE Dreamweaver
HTML Website Dreamweaver HTML
code website
website template HTML code
Notepad HTML web site
web programming PHP, ASP.NET , JSP ,
Ruy On Rail
Page 1
HTML
1.Starting To Creat and Edit Webpage
Notepad
. Windows Key + R Run Dailog Box notepad
OK notepad
. Notepad Format
word warp check
Word Warp
Notepad
HTML
. Notepad
<html>
<head>
<title>This is title</title>
</head>
<body>
This is body
</body>
</html>
HTML HTML html code
Head Tag Head Tag Title
Title Browser bar Body
Page 2
page
File address bar title
tag This is tile Windos Title bar
Tab Title bar Body tag This is body
IE7
Page > View Source Notepad HTML
IE 6
View > Source Notepad HTML
code page save
Internet Web site view > source save
Page 3
Header Tag
notepad
<html>
<head>
<title>Example Of Header</title>
</head>
<body>
<h1>This is Header</h1>
</body>
</html>
code notepad .. run Head Tag h1
h6 h6
notepad save
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>H1</h1>
<h2>H2</h2>
<h3>H3</h3>
<h4>H4</h4>
<h5>H5</h5>
<h6>H6</h6>
</body>
</html>
html
page bold
italic underline
Page 4
Line Break
HTML <br/> close tag <br/> <br>
<html>
<head>
<title>Example</title>
</head>
<body>
</body>
</html>
</body>
</html>
Bold underline italic tag
tag
<i><b>This is bold italic </b></i>
<u><i><b>This is bold italic </b></i></u>
Page 5
<i> <b><i></b></i>
Pre Tag
Enter
dream weaver HTML
<pre> font font
<pre> tab
<html>
<head>
<title>Example</title>
</head>
<body>
Now Tab
Tab
</pre>
</body>
</html>
Paragraph Tag
paragraph <p>
tag
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>About Notepad</h1>
<p>Notepad is a basic text editing program and it is most commonly used to view or edit text files. A
Page 6
text file is a file type typically identified by the .txt file name extension.</p>
<p>Changes to the font style and size affect all the text in the document.<br/>
Make your selections in the Font, Font style, and Size boxes.<br/>
</body>
</html>
Horizonal Line
horizonal <hr> close tag
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>About Notepad</h1>
<p>Notepad is a basic text editing program and it is most commonly used to view or edit text files. A
text file is a file type typically identified by the .txt file name extension. </p>
<hr>
<p>Changes to the font style and size affect all the text in the document.<br/>
Page 7
Make your selections in the Font, Font style, and Size boxes.<br/>
</body>
</html>
code run <hr> line
Attribue
tag attribute attribute tag
properties tag attribute body color attribute
Body Color
<html>
<head>
<title>Example</title>
</head>
<body bgcolor=silver>
Body BGCOLOR
</body>
</html>
Page 8
Silver
White
Gray
Black
Maroon
Red
Green
Lime
Navy
Blue
Purple
Magenta
Olive
Yellow
Teal
Cyan
<html>
<head>
<title>Example</title>
</head>
<body bgcolor=#e5bb2c>
Body BGCOLOR Hex code
</body>
</html>
attribute
Hr Attribute
tag attribute tag attribute
hr
<html>
<head>
<title>Example</title>
</head>
<body bgcolor=#e0e0e0>
Default HR
<hr>
Hr with size=1
<hr size=1>
Hr with size=5
<hr size=5>
Hr with size=10
<hr size=10>
Hr with size=10 and noshade
<hr size=10 noshade>
Hr with size=5 and color
<hr size=5 color=#D60000>
</body>
</html>
size noshade shade color
List
List order list unorder list list list
defination list unorder list
Unorder list
Page 10
<html>
<head>
<title>Example</title>
</head>
<body>
<h3>Unorder List</h3>
<ul>
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
</body>
</html>
<ul> unorder list <li> list list <li>1</li> <li>1</li> <li>2</li>
code run list List
attribute
<html>
<body>
<h3>Unorder List</h3>
<h5>Disc</h5>
<ul type="disc">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
<h5>Square</h5>
<ul type="square">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
<h5>Circle</h5>
<ul type="circle">
Page 11
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
</body>
</html>
unorder list disc, square, circle default disc
Ordered List
<html>
<head>
<title>Example</title>
</head>
<body>
<h3>Ordered List</h3>
<ol>
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
</body>
</html>
<ol> order list code run
attribute
<html>
<head>
<title>Example</title>
</head>
<body>
<h3>Ordered List</h3>
<ol type="1">
Page 12
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
<h5>Type A</h5>
<ol type="A">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
<h5>Type a</h5>
<ol type="a">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
<h5>Type a</h5>
<ol type="I">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
<h5>Type i</h5>
<ol type="i">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ol>
</body>
</html>
Order List Unorder List type
code order list unorder list
start attribute
<ol type="A" start=4> D HTML list web page
list definition list
Page 13
Definition List
<html>
<head><title>Example</title></head>
<body>
<h3>Definition List</h3>
<dl>
<dt>HTML
<dt>Image
</dl>
</body>
</html>
Page 14
HTML For Web Design Suit Creating Web Page With Apperance And Link
Optional Tag
Move To Center
center
<html>
<head><title>Example</title></head>
<body>
<center>
This is center
</center>
</body>
</html>
This is center
<html>
<head><title>Example</title></head>
<body>
<h1 align="justify">Test</h1>
</body>
</html>
code header
Marquee
marquee
Page 15
HTML For Web Design Suit Creating Web Page With Apperance And Link
<html>
<head><title>Example</title></head>
<body>
<marquee>Im moving</marquee>
</body>
</html>
code
Marquee attribute
Attribute Name
Properties
Descripton
behavior
alternate
<marquee behavior="alternate">I'm moving</marquee>
scroll
default value
<marquee behavior="scroll">I'm moving</marquee>
slide
<marquee behavior="slide">I'm moving</marquee>
direction
left
default value
right
<marquee direction="right" >I'm moving</marquee>
up
<marquee direction="up" >I'm moving</marquee>
down
<marquee direction="down" >I'm moving</marquee>
loop
[number]
marquee number
<marquee loop="1" >I'm moving</marquee>
scrollamount
[number]
pixel
<marquee scrollamount="10">I'm moving</marquee>
Page 16
HTML For Web Design Suit Creating Web Page With Apperance And Link
scrolldelay
[number]
millisecond
1000 1 second
<marquee scrolldelay="1000">I'm moving</marquee>
bgcolor
[hex code] OR
[Color Name]
background color
<marquee bgcolor="#009933" >I'm moving</marquee>
marquee
font
Font
Font HTML Web Page font font tag
<html>
<head><title>Example</title></head>
<body>
<font face="Zawgyi-one">Zawgyi Font </font>
</body>
</html>
<font> </font> zawgyi-one font face="font name"
Properties
Description
color
[hex code] OR
color
[color name]
<font face="Zawgyi-one" color="#006699">Zawgyi Font
</font>
Page 17
HTML For Web Design Suit Creating Web Page With Apperance And Link
size
[number]
Description
<b></b>
font blod
<big></big>
bold
<blockquote></blockquote>
tab
<i></i>
italic
<pre></pre>
<small></small>
<strike></strike>
<sub></sub>
<sup></sup>
H2
22
<tt></tt>
<u></u>
underline
Page 18
HTML For Web Design Suit Creating Web Page With Apperance And Link
HTML For Web Design Suit Creating Web Page With Apperance And Link
./file.html OR file.html
C:\example\index.html
C:\example\gallery.html ./
directory
./download/download.html OR download/download.html
folder folder
../file.html
folder up
C:\example\download\index.html C:\example\
gallery.html download
folder file
../../file.html ../
folder directory up
http://www.mysteryzillion.com
website
./download/file.zip OR download/file.zip
Page 20
HTML For Web Design Suit Creating Web Page With Apperance And Link
site
site structure Link
.. page
Image
web page page
...
<html>
<head>
<title>Example</title>
</head>
<body>
</html>
(
image image
extension image extension jpg gif png image size
<html>
<head>
<title>Example</title>
</head>
<body>
</html>
width height attribute size width
height size
<img src="Apple-logo.jpg" width=80px height=80px alt="Apple Logo"> Apple Logo
alt Mouse
tool tip
Page 21
HTML For Web Design Suit Creating Web Page With Apperance And Link
top
align
bottom
default
middle
left
page
right
Left
: img top
: img bottom
: img middle
: img left
Page 22
HTML For Web Design Suit Creating Web Page With Apperance And Link
: img right
image
size
width height attribute
Photo
size click size page
click
<html>
<head>
<title>Example</title>
</head>
<body>
</a>
</body>
</html>
code border href image border
Link
Page 23
HTML For Web Design Suit Creating Web Page With Apperance And Link
: border image
: border
link page
sample
web page
table table frame
Page 24
Table
Table
table cell
cell .. code
<head>
<title>Example Table</title>
</head>
<body>
<table>
<tr> <!-- Row-->
Row
</td>
<td>
Row
</td>
</tr>
</table>
Page 26
</body>
</html>
Table
<table> </table>
Row <tr></tr> row
<tr></tr><tr></tr>
column <td></td> <td></td> <tr> </tr>
column <tr><td></td><td></tr> column
... row column
row <tr> </tr> column <td></td> row
row table
<table>
<tr> <!-- First Row -->
</td>
<td>
</td>
<td>
</td>
</tr>
<tr> <!-- Second Row -->
</td>
<td>
</td>
<td>
Page 27
</td>
</tr>
</table>
Example row column table table
table
... example row
column table
row <tr></tr> column <tr> </tr> <td></td>
code
<html>
<head><title>Example</title></head>
<body>
<table>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<td>6</td>
<td>7</td>
<td>8</td>
Page 28
</table>
</body>
</html>
</tr>
<head><title>Example</title></head>
<body>
<table width="100%">
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<td>6</td>
<td>7</td>
<td>8</td>
Page 29
</table>
</body>
</html>
</tr>
<td width="30px">1</td>
<td>2</td>
<td>3</td>
</tr>
<td width="45%">1</td>
<td width="20%">2</td>
<td width="35%">3</td>
</tr>
<head><title>Example</title></head>
<body>
<table width="100%">
<td>Date</td>
<td>Time</td>
<td>Subject</td>
</tr>
<td>Oct 07</td>
<td>Hardware</td>
Page 30
</tr>
<td>Oct 08</td>
<td>Software Install</td>
</tr>
<tr>
<td>Oct 08</td>
<td>Windows Install</td>
</tr>
</table>
</body>
</html>
.. table border
border attribute
Page 31
Page 32
... cell
merge table
Cell Merge
Cell Merge table Cell Merge Cell
Cell Cell Merge table row
<tr> <tr> <td> <tr> <td> cell
merge column <td>
column cell <td>
Page 33
<td colspan="2">
Cell 1
</td>
<td>
Cell 3
</td>
</tr>
</table>
</body>
</html>
code <td colspan="2"> Cell
cell <td colspan="3"> code
Page 34
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<table border="1">
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td colspan="3">
Cell 1
</td>
</tr>
</table>
</body>
</html>
column column <td>
... example
<html>
<head>
Page 35
<title>Untitled Document</title>
</head>
<body>
<table border="1">
<tr>
<td colspan="3">
List Of Adboe Software
</td>
</tr>
<tr>
<td>
Adobe Acrobat
</td>
<td>
Adobe Dreamweaver
</td>
<td>
Adboe Flash
</td>
</tr>
<tr>
<td>
Adobe InDesign
</td>
<td>
Adobe Photoshop
</td>
<td>
Adboe Bridge
</td>
</tr>
</table>
</body>
</html>
Page 36
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<table border="1">
<tr>
<td rowspan="2">
Cell Left
</td>
<td>
Cell 2
</td>
</tr>
<tr>
<td>
Cell 3
</td>
</tr>
</table>
</body>
</html>
Column <td rowspan="2"> Column Row
Page 37
column
Column First Column First
Column Column
example
<html>
<head>
<title>Example</title>
</head>
<body>
<table border="1">
<tr>
<td>
</td>
<td>
</td>
<td>
</tr>
<tr>
Row1 , Cell1
Row1 , Cell2
Row1 , Cell3
</td>
<td rowspan="2">
</td>
<td>
Left
Center
</td>
<td rowspan="2">
</tr>
<tr>
Page 38
</tr>
Right
</td>
</table>
</body>
</html>
example row span Left Right row
row column <td>
Appearnce
Table background color border
cell background
<html>
<head>
<title>Example</title>
</head>
<body>
<table border="1">
<tr>
<td bgcolor="blue">
<font color="#FFFFFF">BLUE</font>
</td>
<td bgcolor="red">
Red
</td>
<td bgcolor="#EABCDF">
</tr>
</table>
</body>
Page 39
</td>
Hex Color
</html>
bgcolor background
background
font color
CSS CSS
bg color
row <tr> bgcolor
attribute
<html>
<head>
<title>Example</title>
</head>
<body>
<table border="1">
<tr>
<td bgcolor="blue">
<font color="#FFFFFF">BLUE</font>
</td>
<td bgcolor="red">
Red
</td>
<td bgcolor="#EABCDF">
Hex Color
</td>
</tr>
<tr bgcolor="#FF6699">
<td>
a
</td>
<td>
b
</td>
<td>
Page 40
c
</td>
</tr>
</table>
</body>
</html>
<tr bgcolor="#FF6699"> row
table table HTML
Dreamweaver software table
table merge dreamweaver dreamweaver
HTML
frame
Page 41
Frame
Frame HTML Page
Frame Page
Frame AJAX
Frame
menu menu page
Name .. frame
Frame1.html
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
This is frame 1
</body>
</html>
Frame2.html
Page 42
<html>
<head>
<title>Untitled Document</title>
</head>
This is frame 2
</html>
index.html
<html >
<head>
<title>Untitled Document</title>
</head>
<frameset cols="80,*" frameborder="no" border="0" framespacing="0">
<frame src="frame1.html" name="leftFrame" scrolling="No" noresize="noresize"
id="leftFrame" />
<frame src="frame2.html" name="mainFrame" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
frame file index.html
Frame1 Frame2 frame1 frame2
index.html
<body>
frame Main Page Body
frameset
HTML frame
IDE
Dreamweaver frame
Page 43
<html>
<head>
<title>Untitled Document</title>
</head>
<frameset cols="20%,30%,*">
<frame src="frame1.html" />
<frame src="frame2.html" />
<frame src="frame1.html" />
Page 44
</frameset>
<noframes>Your Browser Dont Support Frame</noframes></html>
<noframes>
browser frame support frame support
browser Message browser support
.. code
<html>
<head>
<title>Untitled Document</title>
</head>
<frameset rows="20%,30%,*">
<frame src="frame1.html" />
<frame src="frame2.html" />
<frame src="frame1.html" />
</frameset>
<noframes><body>
</body>
</noframes></html>
frameser cols rows
cols rows
frame
rows column
<html>
<head>
<title>Untitled Document</title>
</head>
<frameset rows="20%,30%,*">
Page 45
noresize>
</frameset>
<frame src="frame2.html" />
<frameset> <frameset>
<frameset rows="20%,30%,*">
noresize>
</frameset>
code
<html>
<head>
<title>Untitled Document</title>
</head>
<frameset rows="20%,30%,*">
<frameset cols="*,50%" framespacing="0" frameborder="NO" border="0">
<frame src="frame2.html" />
<frame src="frame2.html" name="rightFrame" scrolling="NO" noresize>
</frameset>
Link Page
frame frame
Page 48
<html>
<head>
<title>Menu</title>
</head>
<frameset cols="100,*">
<frame src="menu.html" id="menu">
<frame src="home.html" name="main">
</frameset>
<noframes></noframes>
</html>
.. name="main" menu frame
.. menu.html ...
<html>
<head>
<title>Menu</title>
</head>
<body>
<a href="home.html" target="main">Home</a><br>
<a href="download.html" target="main">Download</a><br>
<a href="link.html" target="main">Link</a><br>
</body>
Page 49
</html>
link target index.html name="main"
frame download frame download.html page Home home.html frame
news
<html>
<head>
<title>Menu</title>
</head>
<body>
<iframe src="home.html" width="500" height="200"></iframe>
</body>
</html>
code <iframe> src page width height
HTML
code
".. code
"
Page 51