Professional Documents
Culture Documents
Web Design
HTML, CSS Web Programming
Ph: 95-01-652936
(Malaysia) Lot 25, 2nd Floor, Jalan Lebuh
Pudu, 50050 Kuala Lumpur, Malaysia.
Ph: 6-03-20260846
http://www.worldwidemyanmar.com
World Wide Myanmar Training Centre, Cyber Caf , Sales & Services
Author
Mr. Min Aung "PlanetCreator", BCSc (Bachelor's Computer Science) Yangon, Myanmar, HDSE
(Higher Diploma in Software Engineering), HDNE (Higher Diploma in Network Engineering), MCSE
(Microsoft Certified System Engineer), PCIP ( Professional Critical Infrastructure Protection) Malaysia, has
been part of the IT security industry for several years now. His published research covers exciting topics
such as cracking into embedded devices, web hacking, eavesdropping techniques, magstripes, and credit
card security.
Notice of Rights
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the publisher, except in
the case of brief quotations included in critical articles or reviews.
Your Feedback
If you wish to contact us, for whatever reason, please feel free to email us at
inquiry@worldwidemyanmar.com. We have a well-staffed email support system set up to track your
inquiries. Suggestions for improvement are especially welcome.
Editors Note
Website files can be edited with software as simple as Notepad
There are many free and paid software programs available to make editing files easier. This
software is of two types: WSYIWIG editors and HTML editors.
WSYIWIG (what you see is what you get) editors allow you to work with an HTML document in
its final display format. Although most modern editors have improved in this area, some have a tendency
to create messy HTML or interfere with existing HTML code in the document.
HTML editors are very helpful and are recommended. The most useful feature is colour-coding
of tags to separate them from the text. Examples:
Dreamweaver (http://www.adobe.com)
Arachnophilia (http://www.arachnoid.com)
Micrsoft Expression Web (http://www.microsoft.com)
Komodo Edit (http://www.activestate.com/komodo_edit/)
and many others; some are free, and some have a license fee.
In this tutorial, I want you all to do with simple Notepad Editor to improve your skill.
Page 2 of 197
http://www.worldwidemyanmar.com
Cover ..
About ...
Table of Contents ..
Doctypes .
HTML XHTML .
11
History of HTML .
13
HTML
14
Source Code .
17
HTML Colour .
18
Link ..
25
Absolute Paths .
25
Relative Paths ..
25
TAG ..
26
Comment ..
27
ELEMENTS ..
27
Attribute ..
28
Class Attribute .
28
ID Attribute ...
29
Style Attribute ..
30
31
32
HTML Editors
33
34
<head> ..
34
<title> .
34
<base /> ..
35
<link /> .
35
<meta /> .
35
<script> ...
35
<style> ..
36
36
Forms ..
36
Page 3 of 197
http://www.worldwidemyanmar.com
Tables ....
46
55
Character Entities
Anchors ..
56
<a>
Name attribute
Style Sheets ..
58
<span> | <div>
Line Breaking ...
62
63
68
74
Character Formatting ..
<abbr> | <cite> | <font> | <q> | <spell> | <sup> | <b> | <code> |
84
94
<param>
Revision Control ...
<del> | <ins>
Ruby Elements ..
<ruby> | <rb> | <rt> | <rbc> | <rtc>
Frameset Elements ......
<frameset> ..
<frame> ....
<noframe> ...
HTML Exercise ..
Page 4 of 197
99
100
103
104
105
105
106
http://www.worldwidemyanmar.com
112
Introduction CSS .
112
Appling .
113
113
113
114
Syntax . Structure ..
115
Value ....
115
Property ..
116
Selector ..
116
Class Selector ..
116
ID Selector ....
118
119
Comment ...
120
121
Font ....
130
Text ....
138
Link .....
143
150
153
156
Margin ....
159
Padding ....
160
Borders .....
161
166
Floating .....
167
Positioning of Elements ..
172
177
180
Page 5 of 197
http://www.worldwidemyanmar.com
----->
HTML
Programming Coding
Variables Code Tab Tab
Programmer
Comment
Variable p.center {text-align: center} p.test {textalign: center} CSS Coding Variable test id
class selector Value center Variable Assign
Variable
Captical & Small letter
Programming
Variable
file
Case Sensitive Error Syntax
Trace
Programmer
folder or file s
services.html service.html
(Project) Folder File
Folder
Image Text
Page 6 of 197
http://www.worldwidemyanmar.com
Internet
Doctypes
Doctypes Markup Lanuage Version
Web Browser Web Page Source
() Document Type Definition DTD
DTD Web Browser Markup
Page 7 of 197
http://www.worldwidemyanmar.com
Page
Doctype
Web Editor
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Doctype <!DOCTYPE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
DTD
element
Public
Identifier
W3C
Public
DTD
Web Programming
Identifier
Language
Page 8 of 197
http://www.worldwidemyanmar.com
Resources
Locator)
URL
DTD
Description
HTML 4.01//EN"
"http://www.w3.org/TR/html4/
strict.dtd">
"http://www.w3.org/TR/html4/
loose.dtd">
"http://www.w3.org/TR/html4/
frameset.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD
"http://www.w3.org/TR/xhtml1/DTD
xhtml1-strict.dtd">
Page 9 of 197
http://www.worldwidemyanmar.com
"http://www.w3.org/TR/xhtml1/DTD
xhtml1-transitional.dtd">
frameset
"http://www.w3.org/TR/xhtml1/DTD/
xhtml1-frameset.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/
xhtml11.dtd">
Korean
XHTML
1.0
characters
Chinese,
Ruby
Japanese,
and
Module
HTML
HTML
HTML 3.0//EN">
HTML
3.2
3.0
2.0
Doctype
Doctype
Doctype
vertical
Page 10 of 197
http://www.worldwidemyanmar.com
HTML XHTML
HTML XHTML
The Most Important Differences:
HTML tag
HTML
<ul>
<li>Coffee</li>
<li>Tea
Page 11 of 197
http://www.worldwidemyanmar.com
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
<li>Milk</li>
</ul>
XHTML
<ul>
Nested
<li>Coffee</li>
()
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>
<p>This is a paragraph
Closed
(X)
XHTML
<p>This is a paragraph</p>
Closed
()
Empty Elements XHTML
XHTML
A break: <br>
Empty
Elements
(X)
XHTML
Empty
Elements
()
Page 12 of 197
http://www.worldwidemyanmar.com
<BODY>
Lowercase
<P>This is a paragraph</P>
(X)
</BODY>
XHTML
<body>
Lowercase
<p>This is a paragraph</p>
()
</body>
XHTML
Case
Sensitive
HTML
<P></p>
XHTML Root Element <HTML> Child Elements
XHTML
<html>
Root
Element
XHTML
Doctype
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title goes here</title>
</head>
<body>
<p>This is XHTML</p>
</body>
</html>
Page 13 of 197
http://www.worldwidemyanmar.com
XHTML HTML
..
History of HTML
European Organization for Nuclear Research (CERN) Tim
Berners-Lee 1989 1991 World Wide, Web Page
HTML (hypertext markup language), HTTP (HyperText Transfer Protocol)
URLs (Universal Resource Locators) Father of the Internet
Text tag browser
Hypertext tag <>
Markup TBL
CERN data systems engineer Robert Cailliau
HTML
HTML
Text Tag
HTML
Page 14 of 197
http://www.worldwidemyanmar.com
structure
<HTML>
<HEAD>
<TITLE>HTML</TITLE>
</HEAD>
<BODY>
<TABLE BORDER=1>
<TR><TD>Hello</TD></TR>
<TR><TD>World</TD></TR>
</TABLE>
</BODY>
</HTML>
HTML
HTML Web Programming CSS, JS, php
Page 15 of 197
http://www.worldwidemyanmar.com
Code (filename.php)
<?php
= PHP
= CSS
?>
<html>
= JS
= HTML
<head>
<title>This is php,html,js</title>
<style>
P
{
text-align: center;
color: red;
font-family: arial
}
</style>
</head>
<body>
<br>
<p>
<script type="text/javascript">
document.write("This is my first JavaScript!");
</script>
</p>
</body>
</html>
Page 16 of 197
http://www.worldwidemyanmar.com
html,css,js,php
Source Code
HTML Code
HTML Client Side Source Code Browser Page
Source
( ) Ctrl + U Keyboard
<!DOCTYPE Doctype goes here>
<html xmlns="http://www.w3.org/1999/xhtml">
Page 17 of 197
http://www.worldwidemyanmar.com
<head>
<title>Title goes here</title>
</head>
<body>
<p>This is XHTML</p>
</body>
</html>
HTML Colour
background
Red
Colour
Code
Red,
Green,
Blue
Hexadecimal
..
33
Web
Design
Color
Page 18 of 197
http://www.worldwidemyanmar.com
Hex Value
Red Green Blue
00
00
00
Red = #FF0000
Green = #00FF00
Blue = #0000FF
Cyan (blue and green) = #00FFFF
Magenta (red and blue) = #FF00FF
Yellow (red and green) = #FFFF00
Code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>HTML, CSS Colour by WWM</title>
</head>
<body>
<font color="#4B0082">This is Indigo Colour by World Wide Myanmar</font>
<br>
<font
color="#7B68EE">This
is
MediumSlateBlue
Colour
by
World
Wide
Myanmar</font>
<br>
<font
color="#FFFF00">This
is
Yellow,
Page 19 of 197
http://www.worldwidemyanmar.com
Page 20 of 197
Color Name
HEX
Black
#000000
Navy
#000080
DarkBlue
#00008B
MediumBlue
#0000CD
Blue
#0000FF
DarkGreen
#006400
Green
#008000
Teal
#008080
DarkCyan
#008B8B
DeepSkyBlue
#00BFFF
DarkTurquoise
#00CED1
MediumSpringGreen
#00FA9A
Lime
#00FF00
SpringGreen
#00FF7F
Aqua
#00FFFF
Cyan
#00FFFF
MidnightBlue
#191970
DodgerBlue
#1E90FF
LightSeaGreen
#20B2AA
ForestGreen
#228B22
SeaGreen
#2E8B57
DarkSlateGray
#2F4F4F
LimeGreen
#32CD32
MediumSeaGreen
#3CB371
Turquoise
#40E0D0
RoyalBlue
#4169E1
SteelBlue
#4682B4
DarkSlateBlue
#483D8B
MediumTurquoise
#48D1CC
Indigo
#4B0082
DarkOliveGreen
#556B2F
CadetBlue
#5F9EA0
Color
http://www.worldwidemyanmar.com
Page 21 of 197
CornflowerBlue
#6495ED
MediumAquaMarine
#66CDAA
DimGray
#696969
SlateBlue
#6A5ACD
OliveDrab
#6B8E23
SlateGray
#708090
LightSlateGray
#778899
MediumSlateBlue
#7B68EE
LawnGreen
#7CFC00
Chartreuse
#7FFF00
Aquamarine
#7FFFD4
Maroon
#800000
Purple
#800080
Olive
#808000
Gray
#808080
SkyBlue
#87CEEB
LightSkyBlue
#87CEFA
BlueViolet
#8A2BE2
DarkRed
#8B0000
DarkMagenta
#8B008B
SaddleBrown
#8B4513
DarkSeaGreen
#8FBC8F
LightGreen
#90EE90
MediumPurple
#9370D8
DarkViolet
#9400D3
PaleGreen
#98FB98
DarkOrchid
#9932CC
YellowGreen
#9ACD32
Sienna
#A0522D
Brown
#A52A2A
DarkGray
#A9A9A9
LightBlue
#ADD8E6
GreenYellow
#ADFF2F
PaleTurquoise
#AFEEEE
http://www.worldwidemyanmar.com
Page 22 of 197
LightSteelBlue
#B0C4DE
PowderBlue
#B0E0E6
FireBrick
#B22222
DarkGoldenRod
#B8860B
MediumOrchid
#BA55D3
RosyBrown
#BC8F8F
DarkKhaki
#BDB76B
Silver
#C0C0C0
MediumVioletRed
#C71585
IndianRed
#CD5C5C
Peru
#CD853F
Chocolate
#D2691E
Tan
#D2B48C
LightGrey
#D3D3D3
PaleVioletRed
#D87093
Thistle
#D8BFD8
Orchid
#DA70D6
GoldenRod
#DAA520
Crimson
#DC143C
Gainsboro
#DCDCDC
Plum
#DDA0DD
BurlyWood
#DEB887
LightCyan
#E0FFFF
Lavender
#E6E6FA
DarkSalmon
#E9967A
Violet
#EE82EE
PaleGoldenRod
#EEE8AA
LightCoral
#F08080
Khaki
#F0E68C
AliceBlue
#F0F8FF
HoneyDew
#F0FFF0
Azure
#F0FFFF
SandyBrown
#F4A460
Wheat
#F5DEB3
http://www.worldwidemyanmar.com
Beige
#F5F5DC
WhiteSmoke
#F5F5F5
MintCream
#F5FFFA
GhostWhite
#F8F8FF
Salmon
#FA8072
AntiqueWhite
#FAEBD7
Linen
#FAF0E6
LightGoldenRodYellow #FAFAD2
Page 23 of 197
OldLace
#FDF5E6
Red
#FF0000
Fuchsia
#FF00FF
Magenta
#FF00FF
DeepPink
#FF1493
OrangeRed
#FF4500
Tomato
#FF6347
HotPink
#FF69B4
Coral
#FF7F50
Darkorange
#FF8C00
LightSalmon
#FFA07A
Orange
#FFA500
LightPink
#FFB6C1
Pink
#FFC0CB
Gold
#FFD700
PeachPuff
#FFDAB9
NavajoWhite
#FFDEAD
Moccasin
#FFE4B5
Bisque
#FFE4C4
MistyRose
#FFE4E1
BlanchedAlmond
#FFEBCD
PapayaWhip
#FFEFD5
LavenderBlush
#FFF0F5
SeaShell
#FFF5EE
Cornsilk
#FFF8DC
LemonChiffon
#FFFACD
http://www.worldwidemyanmar.com
FloralWhite
#FFFAF0
Snow
#FFFAFA
Yellow
#FFFF00
LightYellow
#FFFFE0
Ivory
#FFFFF0
White
#FFFFFF
<BODY BGCOLOR="#ff6600">
Page
Background
<BODY TEXT="#ff6600">
Page
<BODY LINK="#ff6600">
Link)
<BODY VLINK="#ff6600">
Page
Link
<BODY ALINK="#ff6600">
<FONT
COLOR="#cc6600">sample
text</FONT>
<BODY TEXT="#ff6600">
<TABLE BGCOLOR="#ff6600">
Table
Background
Colour
- <BODY BGCOLOR="#ff6600">
Page Background
Page Table
Background
<TH BGCOLOR="#ff6600">
Table
Cell
background
<TD BGCOLOR="#ff6600">
Cell
Background
Background
Colour
Background
Colour
Font
forecolour
forecolour
Page 24 of 197
http://www.worldwidemyanmar.com
HTML Colour
HTML Colour Colour Name Hex Code
..
Hex
Code
Link
Web page
Link Link HTML
Hypertext Link
..
Link Link
1. Absolute paths
2. Relative paths
Link
Example
Absolute
Web
paths
URL
Domain
Address
http://www.worldwidemyanmar.com/images/favicon.ico URL
... Code
<a href=http://worldwidemyanmar.com/images/favicon.ico>
()
<img src=http://.worldwidemyanmar.com/images/favicon.ico>
Relative
paths
. Directory File
Name
<a href=link1.html>
Source
File
Sub-Directory
sub-
directory/filename
Page 25 of 197
http://www.worldwidemyanmar.com
Source
File
Directory
folder
../filename
<a href=../link1.html>
TAG
Tag
Code
Description
Browser
Code
View
<b>This is BOLD</b>
This is BOLD
Comment
HTML
source
code
code
..
comment ..
Page 26 of 197
http://www.worldwidemyanmar.com
Code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>World Wide Myanmar</title>
<body>
<!-- This text is Kyo So Par Tal in Burmese-->
Welcome to World Wide Myanmar
</body>
</html>
<!--your text -->
Element
Tag)
Element
HTML
Document
....
HTML Document
(Overview)
<html>
<head>
<title>This is title of HTML Document</title>
</head>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
<html> Elements
<html>
<head>
<title>This is title of HTML Document</title>
</head>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
Page 27 of 197
http://www.worldwidemyanmar.com
<head> Elements
<head>
<title>This is title of HTML Document</title>
</head>
<body> Elements
<body>
<p>This is my first paragraph.</p>
</body>
<title> Elements
<p> Elements
HTML
Element
Attribute
HTML
tag
attribute
attribute tag
<p>
tag
<html>
<head>
<style type="text/css">
h1.intro {color:blue;}
p.important {color:green;}
</style>
</head>
<body>
<h1 class="intro">Header 1</h1>
<p>A paragraph.</p>
<p class="important">Note that this is an important
Page 28 of 197
http://www.worldwidemyanmar.com
</html>
Result
blue
green
p.important
<h1>
<p>
tag
CSS
<h1
tag
class=intro>
<p
<html>
<head>
<script type="text/javascript">
function change_header()
{
document.getElementById("myHeader").innerHTML="Nice
day!";
Page 29 of 197
http://www.worldwidemyanmar.com
Result
Hello World!
Change text
Change
text
Nice day!
Change text
ID attribute
class attribute
java script
Hello World! button
button click
javascript function
Style Attribute
HTML Code
<html>
<body>
Page 30 of 197
http://www.worldwidemyanmar.com
Result
This is a header
This is a paragraph.
Style attribute
alignment
<h1>
..
tag
colour
<h1
Title Attribute
HTML Code
<html>
<body>
<p><abbr title="World Health Organization">WHO</abbr> was
founded in 1948. This is tutorial coded by W3C.com</p>
<p
title="Offcial
site
for
Your
One
Stop
IT
Station!">http://www.worldwidemyanmar.com</p>
</body>
</html>
Result
Title attribute
Page 31 of 197
tooltip
text
mouse pointer
value
http://www.worldwidemyanmar.com
-engines
Browser
View
HTML File
HTML Editor
HTML Editor html file text file
text editor HTML Editor
Page 32 of 197
http://www.worldwidemyanmar.com
Text editors
Object editors
WYSIWYG HTML editors
WYSIWYM editors
Online editors
WYSIWYM editor
Dreamweaver
Microsoft
Expression
Web
HTML
html tag WYSIWYM editor
Auto
Notepad HTML
Dreamweaver Expression Web Professional Web Page
(Notepad )
=
Page 33 of 197
http://www.worldwidemyanmar.com
<html>
</html>
<html>
<head>
</head>
<body>
</body>
</html>
Element
<head> element <body> element
<head>
Element
Tag
<head>
Document
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<p>The content of the document......</p>
</body>
</html>
<title>
Document
<head>
<title>Title of the document</title>
</head>
<base />
Page 34 of 197
http://www.worldwidemyanmar.com
<link />
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<meta />
HTML Document
<head>
<meta name="description" content="Tutorial, Reviews and
News on Tech Products" />
<meta name="keywords"
content="HTML,CSS,XML,JavaScript" />
<meta name="author" content="Administrator" />
<meta http-equiv="Content-Type"
content="text/html;charset=ISO-8859-1" />
</head>
<script>
client-side script
<head>
<script type="text/javascript">
function change_header()
{
document.getElementById("myHeader").innerHTML="Nice
day!";
}
</script>
</head>
<style>
Document style
<head>
<style type="text/css">
Page 35 of 197
http://www.worldwidemyanmar.com
<body>
Element
element
Forms
Tables
Text
Anchors
Style Sheets
Line Breaking
Lists
Multimedia
Block Formatting
Character Formatting
Embedded Functionality
Revision Control
Rubies
<body> element content Lists Ordered
List (<ol>), Unordered List (<ul>)
Forms Tag
<form>
content
process
button
.. form table
<form method="get"
action="http://www.worldwidemyanmar.com/query"
enctype="application/x-www-form-urlencoded">
Page 36 of 197
http://www.worldwidemyanmar.com
</form>
<button>
<label>
Label
<fieldset>
<legend accesskey="G" tabindex="1">Gender</legend>
<label accesskey="M"><input type="radio" name="Gender"
value="Male" />Male</label> <br />
<label accesskey="F"><input type="radio" name="Gender"
value="Female" />Female</label>
</fieldset>
<option>
Option
tag
box
..
option tag
Page 37 of 197
http://www.worldwidemyanmar.com
<form>
<select name="list1" size="3" multiple>
<option value="opt1">option1 </option>
<option value="opt2">option2 </option>
<option selected value="opt3">option3 </option>
</select>
</form>
<fieldset>
label form
Group .. Male & Female
Gender Group
<fieldset>
<legend accesskey="G" tabindex="1">Gender</legend>
<label accesskey="M"><input type="radio" name="Gender"
value="Male" />Male</label> <br />
<label accesskey="F"><input type="radio" name="Gender"
value="Female" />Female</label>
</fieldset>
<legend>
Page 38 of 197
http://www.worldwidemyanmar.com
legend
<fieldset>
<legend accesskey="G" tabindex="1">Gender</legend>
<label accesskey="M"><input type="radio" name="Gender"
value="Male" />Male</label> <br />
<label accesskey="F"><input type="radio" name="Gender"
value="Female" />Female</label>
</fieldset>
<select>
<form>
<select name="list1" size="3" multiple>
<option value="opt1">option1 </option>
<option value="opt2">option2 </option>
<option selected value="opt3">option3 </option>
Page 39 of 197
http://www.worldwidemyanmar.com
</form>
<optgroup>
<form>
<select name="list1" size="3" multiple>
<option value="opt1">option1 </option>
<option value="opt2">option2 </option>
<option selected value="opt3">option3 </option>
</select>
</form>
<textarea>
Textarea
element
multiple text
<form>
<textarea name="brb" rows="3" cols="40">
Default TEXTAREA value goes here
</textarea>
</form>
Page 40 of 197
http://www.worldwidemyanmar.com
button
<form>
<input type="button" value="Submit" name="brb"
onClick="test1(this.form)" />
<input type="reset" value="Reset" />
</form>
radio
<form>
<input type="radio" value="Jazz" name="Radio1" /> Jazz<br />
<input type="radio" value="New Age" name="Radio1" />
New
Age<br />
<input
Page 41 of 197
type="radio"
value="Rock"
name="Radio1"
checked
/>
http://www.worldwidemyanmar.com
Rock!<br />
</form>
reset
feedback
form
(Empty)
Reset button
Reset
Form
Reset Button
<form>
<input type="reset" value="clear the form" />
</form>
CheckBox
Radio
Button
Page 42 of 197
http://www.worldwidemyanmar.com
<form>
<input type="checkbox" value="3" name="brb" checked />
<input type="checkbox" value="3" name="brb" />
<input type="checkbox" value="3" name="brb" checked />
</form>
image
button
..
image
<form>
<input
type="image"
src="http://www.planetcreator.net/images/pnc.png"
name="imagesubmit1" align="top" height="50" width="50" />
</form>
range
range
Minium
.. Maxium ..
Page 43 of 197
http://www.worldwidemyanmar.com
<form>
<input name="r" type="range" min="1" max="11" value="9">
<input type="submit" value="Go">
</form>
submit
Submit
button
type=button
<form>
<input type="submit" value="Submit" />
</form>
file
file
Web server
..
button upload
Page 44 of 197
http://www.worldwidemyanmar.com
<form>
<input type="password" name="thepassword" />
</form>
readonly
user
text ..
Page 45 of 197
http://www.worldwidemyanmar.com
<form>
<input type="readonly" name="ron" value="Readonly Value"
/>
</form>
text
<form>
<input
type="text"
value="brb
was
here"
name="text1"
Tables
Table Tags
<table>
Page 46 of 197
table
attribute
table cell
http://www.worldwidemyanmar.com
effect
<table
border="2"
align="left"
cellpadding="5"
bordercolor="#ff0000"
width="75%">
<caption
align="top">Juggling
Capabilities
of
Waterfront
Performers</caption>
<tr> <td>brb</td> <td>5</td> <td>2</td> <td>5</td> </tr>
<tr> <td>bob</td> <td>2</td> <td>7!!!</td> <td>NA</td> </tr>
<tr> <td>neo</td> <td>2</td> <td>7!!!</td> <td>NA</td> </tr>
<tr> <td>U Tin Maung</td> <td>1</td> <td>2</td> <td>20<br>he is
great!)</td> </tr>
</table>
Attribute
<table border=?>
Table cell
Values=Integers
<table border="2">
value
<table align=?>
Values=center,left,right alignment
<table border="center>
value
<table background=?> Table background image
(images)
Page 47 of 197
http://www.worldwidemyanmar.com
<table background="flower.gif"
Values=Integers
<table cellpadding="value">
<table cellspacing=?>
Cell
Values=Integers
<table cellspacing="value">
Page 48 of 197
http://www.worldwidemyanmar.com
<table bgcolor=?>
Table Background
<table bgcolor=red>
Color
Or
<table bgcolor=#FF0000>
<table bordercolor=red>
Color
Or
<table bordercolor=#FF0000>
<table
3D
Border
Bordercolordark
bordercolordark=?>
table border .
Bordercolordark
<table cellpadding="5" cellspacing="5"
width="100%" border="5"
bordercolordark="blue"
bordercolorlight="#FF0000">
Border size
Page 49 of 197
http://www.worldwidemyanmar.com
<table
..
bordercolorlight=?>
Bordercolorlight
Border size
<table width=?>
Table
Values=Integers
Tables Width
Table
Values=Integers
Tables Height
Page 50 of 197
http://www.worldwidemyanmar.com
table Columns
<table colspan=?>
LEFT cell
columns
COLSPAN
table
attribute
<th><td>
<TR>
<TH COLSPAN="2">LEFT</TH>
colspan=4
<TH COLSPAN="2">RIGHT</TH>
</TR>
COLSPAN
Cell
Merge
<caption>
<caption> tag
table
Page 51 of 197
http://www.worldwidemyanmar.com
Performers</caption>
<tr> <td>brb</td> <td>5</td> <td>2</td> <td>5</td> </tr>
<tr> <td>bob</td> <td>2</td> <td>7!!!</td> <td>NA</td> </tr>
<tr> <td>neo</td> <td>2</td> <td>7!!!</td> <td>NA</td> </tr>
<tr> <td>U Maung Tin</td> <td>1</td> <td>2</td> <td>20<br> he is
great!)</td> </tr>
</table>
<thead>
<tfoot>
table
tags
Page 52 of 197
http://www.worldwidemyanmar.com
</tfoot>
<tbody>
<tr> <td>brb</td> <td>5</td> <td>2</td> <td>5</td> </tr>
<tr> <td>bob</td> <td>2</td> <td>7!!!</td> <td>NA</td> </tr>
<tr> <td>neo</td> <td>2</td> <td>7!!!</td> <td>NA</td> </tr>
<tr> <td>U Maung Tin</td>
<td>1</td> <td>2</td> <td>20<br>( he is great!)</td> </tr>
</tbody>
</table>
<col>
<colgroup>
http://www.worldwidemyanmar.com
<th>
<td>
cell data
Page 54 of 197
http://www.worldwidemyanmar.com
Text
Characters HTML
Page 55 of 197
http://www.worldwidemyanmar.com
&entity_name;
&#entity_number;
.. (<) Browser <
<
HTML Entities Reserved Characters
Result
Description
Entity Name
Entity Number
non-breaking space
 
<
less than
<
<
>
greater than
>
>
&
ampersand
&
&
cent
¢
¢
pound
£
£
yen
¥
¥
euro
€
€
section
§
§
copyright
©
©
registered trademark
®
®
trademark
™
™
<body>
<p align="center">Copyright © 2009. All rights reserved. World Wide
Myanmar Training Center.</p>
</body>
Page 56 of 197
http://www.worldwidemyanmar.com
© code
<a href="http://www.worldwidemyanmar.com">WWM</a>
code
Hyperlink to a document:
<a href="http://www.worldwidemyanmar.com">WWM</a>
<a href="#Bookmark1>
Link text that leads to Bookmark1 in the current document
</a>
Hyperlink to a Bookmark in an external document:
<a href="http://www.worldwidemyar.com/index.html#Bookmark1">
Link text that leads to Bookmark1 in index.html at www.foo.com
</a>
Name attribute href ..
Page 57 of 197
http://www.worldwidemyanmar.com
<body>
<a href="#paragraph1">Jump to Paragraph 1</a><br/>
<a href="#paragraph2">Jump to Paragraph 2</a><br/>
<a href="#paragraph3">Jump to Paragraph 3</a><br/>
External
Link
href=www.yourwebsite.com/yourfile.html#nameattribute
Anchors page #anchorname page
<span> <div>
Page 58 of 197
http://www.worldwidemyanmar.com
Tags
<span>
Inline Element -
<html>
<head>
<title>Style Sheets by WWM</title>
</head>
<body>
<p>This is just demostration for <span> Style Sheet in
Body Elements </span> by WWM</p>
</body>
</html>
span
style Head Elements Style Tag
color .. class <span class=test>
<span></span>
Class attribute
<html>
<head>
Page 59 of 197
http://www.worldwidemyanmar.com
<div>
<html>
<head>
<title>Style Sheets by WWM</title>
<style type="text/css">
div.important {color: #ff0000}
</style>
</head>
<body>
Page 60 of 197
http://www.worldwidemyanmar.com
Using a sword is fun and easy. Just be sure to follow these important
safety tips. </p>
<div class="important">
<p> <em>Never</em> hold your sword by the pointy
end. </p>
<p> <em>Always</em> be sure to stick the pointy end
into the other guy before he does the same to you. </p>
</div>
<p> And remember, if you or your surviving kinsfolk are
not fully satisfied, we have a money-back guarantee!
</body>
</html>
Example
Tag
Example
<div align=?>
<div width=?>
<div height=?>
<div> <span>
Page 61 of 197
http://www.worldwidemyanmar.com
<div class=important>
<html>
<head>
<title>Style Sheets by WWM</title>
<style type="text/css">
div.important {color: #ff0000}
span.test {color: #ff00ff}
</style>
</head>
<body>
<p>
<span
class="test">Congratulations</span>
on
the
purchase of your sword! Using a sword is fun and easy. Just be sure to follow
these important safety tips. </p>
<div class="important">
<p> <em>Never</em> hold your sword by the pointy end. </p>
<p> <em>Always</em> be sure to stick the pointy end into the
other guy before he does the same to you. </p>
</div>
<p> And remember, if you or your surviving kinsfolk are not fully
satisfied, we have a money-back guarantee!
</body>
Page 62 of 197
http://www.worldwidemyanmar.com
</html>
Example
<p>This is a line of text with a linebreak here.<br /> This is text after</p>
<br>
..
browser
<nobr>
width
<br/>
..
<p>This is a line of text with a linebreak here.<br /> This is text after</p>
<p><nobr>This is a run of nobreak text to be used as an example, This is a run
of nobreak text to be used as an example, This is a run of nobreak text to be used as an
example, </nobr></p>
.. <nobr> browser automatic line break
Page 63 of 197
http://www.worldwidemyanmar.com
Bullet
List Element
List Element
. Physical List Styles
. Virtual List Styles
. List Items .. tag
List
<ul><ol><dl>
Tag
<dl>
Definition Term
Definition
<dl>
<dt>Term 1</dt>
<dd>Term 1 definition</dd>
<dt>Term 2</dt>
<dd>Term 2 definition</dd>
</dl>
Definition Term Definition List
Definition List <dl>
<ol>
A,B,C,D
1,2,3,4
<ol>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
Page 64 of 197
http://www.worldwidemyanmar.com
1. List item 1
2. List item 2
3. List item 3
attribute .. ..
<ol type=?>
<ol type="A"
Or
<ol type="a"
Or
<ol type="1"
Type value
Page 65 of 197
http://www.worldwidemyanmar.com
start=value>
type=1
start=5
List
5,6,7.
<ol start="A"
Or
<ol type="E"
Or
<ol type="5"
<ul>
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ul>
Browser Default value Disc
Bullet
. List item 1
. List item 2
. List item 3
attribute .. ..
Page 66 of 197
http://www.worldwidemyanmar.com
<ul type=?>
<ul type="A"
Or
<ul type="a"
Or
<ul type="1"
Type value
start=value>
type=1
start=5
List
5,6,7.
<ul start="A"
Or
<ul type="E"
Or
Page 67 of 197
http://www.worldwidemyanmar.com
<menu><dir> <ol><ul>
tag attribute
Tag
<menu>
<menu>
<li>First item in the list</li>
<li>Second item in the list</li>
<li>Third item in the list</li>
</menu>
<dir>
short item
<dir>
<li>A - H</li>
<li>I - M</li>
<li>N - R</li>
<li>S - Z</li>
</dir>
tag
<ul>
tag
bullet
default
type attribute
List Items
Data Information
tag
<li> List ,
<dt> Definition Term
Page 68 of 197
http://www.worldwidemyanmar.com
List
<dir>
<li>A - H</li>
<li>I - M</li>
<li>N - R</li>
<li>S - Z</li>
</dir>
<img>
Page 69 of 197
http://www.worldwidemyanmar.com
Code
<html>
<head>
<title>Multimedia by WWM</title>
<body>
<div align=center>
<img src="http://www.planetcreator.net/images/pnc.png"
alt="PlanetCreator"> Be Right Back
<img src="my-computer.png" alt="Computer"> My
Computer
</div>
</body>
</html>
attribute
attribute
<img align=?
text
align attribute
alig=right
Page 70 of 197
http://www.worldwidemyanmar.com
width height
value
<img vspace=?>
<img hspace=?>
white
space
src="my-computer.png"
alt="Computer"
hspace=50 vspace=20>
value Positive integer pixel
values
Page 71 of 197
http://www.worldwidemyanmar.com
<img
vspace=
20
<img
hspace=
50
<img border=?>
border
<img
border=
20
usemap="?>
map
tag
<bgsound>
Web
document
<bgsound> .
..
embed tag
<embed src="beatles.mid" />
Object tag
<object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="flower.wav" />
</object>
Page 72 of 197
http://www.worldwidemyanmar.com
Hyperlink tag
<a href="beatles.mid">Play the Beatles</a>
<sound>
<bgsound> background
<html>
<head>
<title>Multimedia by WWM</title>
<body>
<img src="my-computer.png" width="145" height="126"
alt="My Computer" usemap="#mycomputermap" />
<map name="mycomputermap">
<area shape="rect" coords="100,100,50,50"
alt="Monitor" href="monitor.html" />
<area shape="circle" coords="10,70,30"
alt="System Unit" href="cpu.html" />
</map>
</body>
</html>
Page 73 of 197
http://www.worldwidemyanmar.com
My Computer
Map tag Link
Source Code my-computer.jpg Monitor
Monitor Click monitor.html
Link .. CPU
cpu.html
coords attribute
monitor.html
cpu.html
..
Link
Link
border=0
<object>
..
APPLET, EMBED, BGSOUND, SOUND and IMG elements
<object
Page 74 of 197
codetype="application/java-vm"
http://www.worldwidemyanmar.com
object code
URL
codetype internet media type
classid
classid URL Windows Registry values
tag <Address>
<Hx>
<P>
<Blockquote>
<Marquee>
<Pre>
<Center>
<Multicol>
Tag
<address>
Web Page
tag
Page 75 of 197
http://www.worldwidemyanmar.com
<body>
<address>1234 Nowhere St.<br />Anywhere, State 000019999</address>
</body>
tag
Default
Italic
(<h1>,
1 to 6
<h2>,
<h3>,
<h4>,
<h5>,
<h6>)
<body>
<h1 align="center">Heading level 1 text</h1>
<h2 align="center">Heading level 2 text</h2>
<h3 align="center">Heading level 3 text</h3>
<h4 align="center">Heading level 4 text</h4>
<h5 align="center">Heading level 5 text</h5>
<h6 align="center">Heading level 6 text</h6>
Page 76 of 197
http://www.worldwidemyanmar.com
Paragraph tag
<p align=right
<body>
<p align="right">
<p> tag
<blockquote
>
text
Quote
tag
Page 77 of 197
http://www.worldwidemyanmar.com
<body>
<h2>Code example: BLOCKQUOTE element</h2>
<hr>
filler text
<blockquote
cite="http://www.example.com/bqcitation.htm">blockquote
text</blockquote>
filler text
<hr>
</body>
Quote
cite
cite
text text
Quote
..
cite
Source
url
URL
<marquee>
Web page
..
<marquee>
<body>
Page 78 of 197
http://www.worldwidemyanmar.com
Im marquee
marquee attribute behavior, direction, bgcolor, height, width,
loop, vspace, scollldelay
attribute
behavior
Marquee
value
scroll,
slide,
alternate
Scroll
<marquee
behavior="scroll"
direction=left>Your
behavior="slide"
direction=left>Your
value
drection
left
Alternate
<marquee behavior="alternate" direction=left>Your
scrolling text goes here</marquee>
direction
Marquee
scrollamount
scrollamount
Page 79 of 197
http://www.worldwidemyanmar.com
scrollamount
marquee
<body>
<marquee behavior="scroll" direction="left"
loop="1">Scroll Loop</marquee>
</body>
loop=1
scrolldelay
scrolldelay
..
<body>
<marquee behavior="scroll" direction="left"
scrolldelay="400">ScrollDelay</marquee>
</body>
<vspace>
<width>
<height>
Marquee Code
Example: 1
<body>
<marquee behavior="scroll" direction="right"><marquee
Page 80 of 197
http://www.worldwidemyanmar.com
code ..
Exmaple: 2
<body>
<marquee style="zindex:2;position:absolute;left:18px;top:97px;font-family:Cursive;fontsize:14pt;color:#ffcc00;height:200px;"scrollamount="3"
direction="down">Scrolling text</marquee><marquee style="zindex:2;position:absolute;left:1px;top:89px;font-family:Cursive;fontsize:14pt;color:#FF8C48;height:100px;"scrollamount="7"
direction="down">Falling text</marquee><marquee style="zindex:2;position:absolute;left:111px;top:7px;font-family:Cursive;fontsize:14pt;color:#ffcc00;height:302px;"scrollamount="4"
direction="down">Scrolling text</marquee><marquee style="zindex:2;position:absolute;left:225px;top:83px;font-family:Cursive;fontsize:14pt;color:#FF8C48;height:435px;"scrollamount="3"
direction="down">Falling text</marquee><marquee style="zindex:2;position:absolute;left:105px;top:53px;font-family:Cursive;fontsize:14pt;color:#ffcc00;height:432px;"scrollamount="2"
direction="down">Scrolling text</marquee><marquee style="zindex:2;position:absolute;left:168px;top:69px;font-family:Cursive;fontsize:14pt;color:#FF8C48;height:369px;"scrollamount="1"
direction="down">Falling text</marquee><marquee style="zindex:2;position:absolute;left:130px;top:117px;font-family:Cursive;fontsize:14pt;color:#ffcc00;height:289px;"scrollamount="7"
direction="down">Scrolling text</marquee><marquee style="zindex:2;position:absolute;left:176px;top:57px;font-family:Cursive;font-
Page 81 of 197
http://www.worldwidemyanmar.com
Page 82 of 197
http://www.worldwidemyanmar.com
<pre>
<body>
<pre> This is World Wide Myanmar Training Center
WorldWideMyanmar's wholly owned by WorldWideMyanmar Sdn Bhd
</pre>
Page 83 of 197
http://www.worldwidemyanmar.com
<pre> tag
Source Code
<pre> tag
<center>
<center>tag
<body>
<center> This is World Wide Myanmar Training Center,
WorldWideMyanmar's wholly owned by WorldWideMyanmar Sdn Bhd
</center>
</body>
<hr>
html
xhtml
3D
solid color
Page 84 of 197
http://www.worldwidemyanmar.com
<multicol>
multi-col
format
<multicol>
<multicol cols="3" width="80%" gutter="20">
This is multi-column layout text that should be distributed evenly across 3
columns
</multicol>
Cols Column gutter columns
Pixel
<Abbr>
<Cite>
<Font>
<Q>
<Spell>
<Sup>
<B>
<Code>
<I>
<S>
<Strike>
<Tt>
<Big>
<Dfn>
<Inlineinput>
<Samp>
<Strong>
<U>
tag
<abbr>
Abbreviation
<Blink>
<Em>
<Kbd>
<Small>
<Sub>
<Var>
Pointer
tooltip text
Send by <abbr title="facsimile">fax</abbr>
fax
pointer
facsimile
<cite>
Citation text ..
<cite>citation text</cite>
Page 85 of 197
http://www.worldwidemyanmar.com
color
font
color
attribute
color
value
font
Page 86 of 197
http://www.worldwidemyanmar.com
default
font
..
browser
font
font-weight
Font
Page 87 of 197
http://www.worldwidemyanmar.com
-5
+1
..
<q>
Quotations mark
tag
Reference
<sup>
Superscripted
2 2
</center>
</body>
<b>
Page 88 of 197
http://www.worldwidemyanmar.com
HTML
Coding
Character Entities
>
Source
Code
<code>
tag
< or >
<i>
Page 89 of 197
<i> tag
http://www.worldwidemyanmar.com
.. strike
.. strike <s> <strike>
<body>
<strike>strikethrough text</strike><br/>
<s>strikethrough text</s>
</body>
<tt>
font
<tt> tag
<body>Fixed-width text<br/>
<tt>Fixed-width text</tt>
Page 90 of 197
http://www.worldwidemyanmar.com
</body>
<big>
font ..
font
<big> tag
<body> Big Text <br/>
<big>Big Text</big>
</body>
<dfn>
Define
definition
term
Definition Term
<body>
This is <dfn>defining text</dfn> by WWM
</body>
<samp>
Sample Sample
Sample
<samp>sample text</samp>
Page 91 of 197
http://www.worldwidemyanmar.com
Bold
Text
Strong Text
<body>
This is <strong>strong text</strong>.
</body>
<u>
Line
Underlined Text
<body>
This is <u>Underlined text</u>.
</body>
<blink>
Blink tag
<body>
This is <blink>blinking text</blink>.
</body>
<em>
tag
<em>
tag
italic
user
Page 92 of 197
http://www.worldwidemyanmar.com
<body>
<p>Do you <em>really</em> need to buy those expensive jeans? I
mean,
is it really <em>that</em> important to you to look like some kind
of circus freak?</p>
</body>
<kbd>
Keystrokes
<body>
<p>Hold down <kbd>CTRL</kbd>, <kbd>ALT</kbd>, and
<kbd>DELETE</kbd>,
then select Task Manager</p>
</body>
<small>
Page 93 of 197
http://www.worldwidemyanmar.com
<body>
<p>Mark tried to get out of buying a round of drinks by getting
progressively quieter as he talked: "Right, I'm off to stretch my
legs and then get a bag of peanuts ... <small>back in a minute ...
<small>everyone OK for a drink?</small></small></p>
</body>
<sub>
<body>
<p>That's not just water. That's not just H<sub>2</sub>O. That's
H<sub>2</sub>-woah!</p>
</body>
<var>
Page 94 of 197
Variable
http://www.worldwidemyanmar.com
<body>
<p>To get access to the system you first need to enter your
username, e.g. <var>monkeyboy123</var>, followed by your unique
6-digit customer ID beginning with C, e.g. <var>C13345</var>.</p>
</body>
<Embed>
<Noembed>
<Script>
<Noscript>
<Iframe>
<Applet>
<Param>
Tag
<embed>
alternative content
web browser
flash video
multimedia content
<embed alt="string" height=" { number |
percentage } " hidden=" { true | false } "
pluginspage="uri" src="uri" type="MIME type"
width="number">
Page 95 of 197
http://www.worldwidemyanmar.com
(Support
<noembed>
tag
Page 96 of 197
Please
trying
this
media
clip
link
http://www.worldwidemyanmar.com
support
noembed
<script>
input validation
filtering
html
rendering
Page 97 of 197
http://www.worldwidemyanmar.com
attribute attribute
language
Language
value
JavaScript and VBScript
<script language="JavaScript"
type
<noscript>
<script language="JavaScript">
<!-- document.write("Hello World.") -->
</script>
<noscript>
<b>Please</b> try this page for browsers that can not handle SCRIPTing.
<a href="http://www.worldwidemyanmar.com/alternate.html">Simple Text
Page</a>
</noscript>
<iframe>
Website,
Web
page
web
page
iframe
frameborder
frameborder = 0
Page 98 of 197
http://www.worldwidemyanmar.com
iframe - Syntax
<iframe align=" { bottom | left | middle | right |
top } " frameborder=" { 0 | 1 } " height=" { number
| percentage } " longdesc="string"
marginheight="number" marginwidth="number"
name="string" noresize="noresize" scrolling=" { auto
| no | yes } " src="uri" width=" { number |
percentage } ">
</iframe>
<applet>
Example
<applet codebase="http://www.worldwidemyanmar.com/java/"
code="javaexample.class" width="200" height="300">
<param name="text1" value="Example Text 1" />
<param name="imagecaption" value="Image Caption" />
<param name="bounceimage" value="bounce1.gif" />
<img src="non_java_image.gif" width="200" height="300" border="0" alt="You
are missing the full Java Experience.">
</applet>
<param>
Applet
<applet codebase="http://www.worldwidemyanmar.com/java/"
code="javaexample.class" width="200" height="300">
<param name="text1" value="Example Text 1" />
<param name="imagecaption" value="Image Caption" />
<param name="bounceimage" value="bounce1.gif" />
Page 99 of 197
http://www.worldwidemyanmar.com
Object
<object codetype="application/java-vm"
codebase="http://www.worldwidemyanmar.com/applet.class"
classid="java:program.start" height="100" width="100">
<param name="options" value="xqz" />
If you can read this you are too close.<br />
AND your browser does not support Java.
</object>
<del>
Delete
<ins>
Text
http://www.worldwidemyanmar.com
<body>
<del
cite="#oct12-2010"
datetime="2010-10-12T12:45:00PST">Deleted
cite="#jan25-2009"
datetime="2009-01-25T18:00:00PST">Inserted
text</del>
<br/>
<br/>
<ins
text</ins>
</body>
<ruby>
http://www.worldwidemyanmar.com
Support IE
Firefox Support
<ruby>
<rb></rb>
<rt>liaison</rt>
</ruby>
<rb>
(Base
Language)
<ruby>
<rb></rb>
<rt>liaison</rt>
</ruby>
<rt>
Ruby Text ..
<ruby>
<rb></rb>
<rt>liaison</rt>
</ruby>
<rbc>
http://www.worldwidemyanmar.com
<rtc>
<rt> content
<ruby>
<rtc class="reading">
<rt></rt>
<rt></rt>
<rt></rt>
<rt></rt>
</rtc>
<rtc class="annotation">
<rt rbspan="4" xml:lang="en">W3C Associate
Chairman</rt>
</rtc>
</ruby>
Complex Ruby
<ruby>,<rtc><rbc><rb><rt>
Ruby
browser
structure
..
http://www.worldwidemyanmar.com
<ruby xml:lang="ja">
<rbc>
<rb></rb>
<rb></rb>
<rb></rb>
<rb></rb>
</rbc>
<rtc class="reading">
<rt></rt>
<rt></rt>
<rt></rt>
<rt></rt>
</rtc>
<rtc class="annotation">
<rt rbspan="4" xml:lang="en">W3C
Associate Chairman</rt>
</rtc>
</ruby>
<frameset
> Elements
http://www.worldwidemyanmar.com
index.html
parent document
http://www.worldwidemyanmar.com
framespacing, name
Framespacing frame
frameset rows, cols percentage 100%
- cols=80%,20%
cols=80,* * *
Tags
<frameset>
rows=100,*,80
row
100 80
row
automatic
Browser
<frame>
<frame>
<frameset>
frame
<frame
name="content"
src="content.html"
marginheight="0"
attribute
noresize
<noframe>
<noframe>
<noscript>
browser
frameset browser support user
http://www.worldwidemyanmar.com
CONTENT
Web
Design
HTML and CSS
<noframe> <frameset>
HTML webpage
..
Exercise -1
- exercise1 folder images folder
html image images folder
http://www.worldwidemyanmar.com
<body>
</body>
</html>
exercise1.html
..
http://www.worldwidemyanmar.com
Webpage
background
<body
bgcolor=#ffffee> table
<html>
<head>
<title>Simple HTML Web Page by WWM</title>
</head>
<body bgcolor="#ffffee">
<table>
</table>
<table>
</table>
<table>
</table>
</body>
</html>
table ..
<table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/topbkg.gif">
<tr>
<td width="50%"><img border="0" src="images/topleft.gif" width="205" height="61"></td>
<td width="50%">
<p align="right"><img border="0" src="images/logo.gif" width="200" height="61"></td>
</tr>
</table>
full page
cellspacing=0
cellpadding=0
http://www.worldwidemyanmar.com
logo.gif ..
<p align=right> ..
Default align=left
align=right <p> tag
Table .
<table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/linebkg.gif">
<tr>
<td width="100%"><font face="Arial" size="2"><b> <font color="#FFFFFF">HOME
|
NEWS
|
PRODUCTS
|
SERVICES |
ABOUT US | CONTACT US</font></b></font></td>
</tr>
</table>
space ..
Table .
<table border="0" width="100%" background="images/botbkg.gif" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><img border="0" src="images/botbkg.gif" width="38" height="14"></td>
</tr>
</table>
table table
<p style="margin-left: 20"><font face="Arial" size="2">Place your content here.</font></p>
<p style="margin-left: 20"><font face="Arial" size="2">Place your content here.</font></p>
<p style="margin-left: 20"><font face="Arial" size="2">Place your content here.</font></p>
<p style="margin-left: 20"><font face="Arial" size="2">Place your content here.</font></p>
<p style="margin-left: 20" align="center"><font face="Arial" size="2">©
COPYRIGHT 2010 ALL RIGHTS RESERVED WORLDWIDEMYANMAR.COM</font></p>
http://www.worldwidemyanmar.com
page 0
<body
topmargin="0"
leftmargin="0"
rightmargin="0"
bottommargin="0"
marginheight="0"
marginwidth="0"
bgcolor="#FFFFEE">
margin 0
result
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Simple HTML Web Page by WWM</title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0"
bgcolor="#FFFFEE">
<table border="0" width="100%" cellspacing="0" cellpadding="0"
background="images/topbkg.gif">
<tr>
<td width="50%"><img border="0" src="images/topleft.gif" width="205"
height="61"></td>
<td width="50%">
<p align="right"><img border="0" src="images/logo.gif" width="200" height="61"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0"
background="images/linebkg.gif">
<tr>
<td width="100%"><font face="Arial" size="2"><b> <font
color="#FFFFFF">HOME | NEWS |
PRODUCTS |
SERVICES | ABOUT US | CONTACT
US</font></b></font></td>
</tr>
</table>
<p style="margin-left: 20"><font face="Arial" size="2">Place your content
here.</font></p>
http://www.worldwidemyanmar.com
Table
http://www.worldwidemyanmar.com
CONTENT
Web
Design
HTML and CSS
HTML ..
CSS . -->
Web
Page
information
viewer
Multimedia
e-Media Advertise
web page
http://www.worldwidemyanmar.com
..
validation
JavaScript
Web
Page
Layout
HTML
CSS
file
CSS
Applying Usage
CSS Inline, External Internal
http://www.worldwidemyanmar.com
<html>
<head>
<title>Internal CSS by WWM</title>
<style type="text/css">
</style>
</head>
<body>
</body>
</html>
External CSS
<html>
<head>
<title>External CSS by WWM</title>
http://www.worldwidemyanmar.com
Syntax . Structure
CSS
HTML
<tag
attribute=value>
HTML
CSS
<tag attribute=value>
- <body bgcolor=red>
http://www.worldwidemyanmar.com
background ..
Value
Value Double Quote -- "
p {font-family: "sans serif"} Double Quote
CSS
HTML
..
Colour
Name
Hex
Code
Property
Property
semicolon
Selector
Selector HTML tag style sheet selector
HTML tag body, h1,h2,p,input,textarea,dl,dt,dd,td,th Selector
h1,h2,h3,h4,h5,h6
{
color: red;
}
h1-h6 Heading HTML Page <h1>
<h2> color Multiple Selector
http://www.worldwidemyanmar.com
Class Selector
CSS Class Selector HTML Element
content Class Selector ..
CSS Code
p.right {text-align: right}
p.center {text-align: center}
p.left{text-align: left}
HTML Code
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<p class="right">This is RIGHT</p>
<p class="center">This is CENTER</p>
<p class="left">This is LEFT</p>
</body>
</html>
http://www.worldwidemyanmar.com
p.right
{text-align:
right}
http://www.worldwidemyanmar.com
<body>
<h1 class="123">This is CENTER Head</h1>
<p class="mgmg">This is RIGHT</p>
</body>
</html>
code result class=mgmg class=123
ID Selector
Class Selector ID Selector ID Selector selector # sign
CSS Code
#idsel{
text-align: center;
color: red
}
HTML Code
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1 id="idsel">This is ID Selector</h1>
</body>
</html>
http://www.worldwidemyanmar.com
Code Format
CSS code
HTML
.. -
body {
scrollbar-face-color: #000000;
font-size: 10px;
font-family: times;
}
p{
http://www.worldwidemyanmar.com
font-size: 9px;
font-family: verdana;
color: red;
}
Comment /* --- */
http://www.worldwidemyanmar.com
Property foreground
<h1>
CSS HTML
CSS Code (style.css)
h1{
color: #FF0000;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>This is Red Header</h1>
</body>
</html>
http://www.worldwidemyanmar.com
background-color
Background,
Text
Background
CSS Code (style.css)
body {
background-color: cyan;
}
h1 {
color: #FF0000;
background-color: #3499AB;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>This is Red Header</h1>
</body>
</html>
background-image
background-image .
Value url(filename); url
Web
Link
url(http://www.worldwidemyanmar.com/my-computer1.png);
http://www.worldwidemyanmar.com
background-repeat
..
http://www.worldwidemyanmar.com
background-repeat: repeat-x
background-repeat: repeat-y
background-repeat: repeat
Default Value
background-repeat: no-repeat
repeat
..
norepeat
norepeat
CSS Code (style.css)
body {
background-color: cyan;
background-image: url("my-computer1.png");
background-repeat: no-repeat;
}
h1 {
color: #FF0000;
background-color: #3499AB;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
http://www.worldwidemyanmar.com
background-attachment
lock
unlock
lock browser
scroll
Value
background-attachment: scroll
Image
Unlock
Default Value
background-attachment: fixed
lock
CSS Code (style.css)
body {
background-color: cyan;
background-image: url("my-computer1.png");
background-repeat: no-repeat;
background-attachment: fixed;
}
h1 {
color: #FF0000;
http://www.worldwidemyanmar.com
Scroll
..
background-position
position
100px
255px
100px 255px
Browser
http://www.worldwidemyanmar.com
2cm 2cm
http://www.worldwidemyanmar.com
browser
..
background
http://www.worldwidemyanmar.com
background Compiling
Fonts
CSS font
Property
font-family
font-family
CSS
font
http://www.worldwidemyanmar.com
CSS Code (style.css) {background property}
h1 {
font-family: arial, verdana, sans-serif;
}
h2 {
font-family: "Times New Roman", serif;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Heading 1 written in Arial</h1>
<h2>And heading 2 in Times New Roman</h2>
</body>
</html>
http://www.worldwidemyanmar.com
font
normal,
italic
or
oblique
styling
CSS Code (style.css)
h1 {
font-family: arial, verdana, sans-serif;
font-style: italic;
}
h2 {
font-family: "Times New Roman", serif;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Heading 1 written in Arial Roman - Italic</h1>
http://www.worldwidemyanmar.com
Heading 1
font-variant
size
size
CSS Code (style.css)
h1 {
font-variant: small-caps;
}
h2 {
font-variant: normal;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Heading 1 - Small Caps</h1>
http://www.worldwidemyanmar.com
font-weight
normal bold
CSS Code (style.css)
p{
font-family: arial, verdana, sans-serif;
}
td {
font-family: arial, verdana, sans-serif;
font-weight: bold;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<table border="1" cellpadding="10">
<tr>
<td>Text in bold</td>
</tr>
http://www.worldwidemyanmar.com
Cell Bold ..
font-size
Font ..
pixels percentages
CSS em pt
px pt absolute size % em user
adjust size
Points
Pixels
Ems
Percent
6pt
8px
0.5em
50%
7pt
9px
0.55em
55%
7.5pt
10px
0.625em
62.5%
8pt
11px
0.7em
70%
9pt
12px
0.75em
75%
10pt
13px
0.8em
80%
http://www.worldwidemyanmar.com
14px
0.875em
87.5%
11pt
15px
0.95em
95%
12pt
16px
1em
100%
13pt
17px
1.05em
105%
13.5pt
18px
1.125em
112.5%
14pt
19px
1.2em
120%
14.5pt
20px
1.25em
125%
15pt
21px
1.3em
130%
16pt
22px
1.4em
140%
17pt
23px
1.45em
145%
18pt
24px
1.5em
150%
20pt
26px
1.6em
160%
22pt
29px
1.8em
180%
24pt
32px
2em
200%
26pt
35px
2.2em
220%
27pt
36px
2.25em
225%
28pt
37px
2.3em
230%
29pt
38px
2.35em
235%
30pt
40px
2.45em
245%
32pt
42px
2.55em
255%
34pt
45px
2.75em
275%
36pt
48px
3em
300%
http://www.worldwidemyanmar.com
font
font
compiling
..
background
Property
http://www.worldwidemyanmar.com
Text
alignment
spacing
Property
text-indent
http://www.worldwidemyanmar.com
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<p>This is Text Indent</p>
</body>
</html>
text-indent: 50px
text-align
Alignment
CSS Code (style.css)
th {
text-align: right;
}
td {
text-align: center;
}
p{
text-align: justify;
}
HTML Code (index.html)
http://www.worldwidemyanmar.com
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<table border="1" width="100%">
<tr>
<th>Heading 1</th>
</tr>
<tr>
<td>Cell 1</td>
</tr>
</table>
<p>Justified text in paragraphs</p>
</body>
</html>
text-decoration
CSS Code (style.css)
h1 {
text-decoration: underline;
}
h2 {
text-decoration: overline;
http://www.worldwidemyanmar.com
}
h3 {
text-decoration: line-through;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>This text is underlined</h1>
<h2>This text is overlined</h2>
<h3>This text is lined trough</h3>
</body>
</html>
text-spacing
CSS Code (style.css)
h1 {
letter-spacing: 5px;
}
p{
letter-spacing: 30px;
http://www.worldwidemyanmar.com
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Space between text characters</h1>
<p>This is 30 px text spacing</p>
</body>
</html>
text-transform
Uppercase Lowercase
capitlize Capital, Small letter
text-transform
CSS Code (style.css)
h1 {
text-transform: uppercase;
}
li {
text-transform: capitalize;
}
p{
http://www.worldwidemyanmar.com
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>this heading is uppercase</h1>
<ul>
<li>u mg tin</li>
<li>aung aung</li>
<li>hla hla</li>
</ul>
<p>This is LOWERCASE</p>
</body>
</html>
Link
http://www.worldwidemyanmar.com
visited,
active
Link
mouse pointer
HTML Link tag Anchor <a> tag
name class , id class
pseudo-class
pseudo-class HTML class
markup pseudo-class Dynamic pseudo-clas
colon (:) .. selector pseudo-class
white space
a:link {
declarations
}
a:visited {
declarations
}
a:focus {
declarations
}
a:hover {
declarations
}
a:active {
declarations
}
li:first-child {
declarations
}
pseudo-class
Link
Pseudo-class
color, background-color
link
User
Link
http://www.worldwidemyanmar.com
Syntax
:link {
declaration block
}
CSS Code (style.css)
a:link {
color: #0be734;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Unvisited links are light blue</h1>
<p><a href="index1.html">This is a unvisited link</a></p>
</body>
</html>
Link
Syntax
:visited {
http://www.worldwidemyanmar.com
}
CSS Code (style.css)
a:visited {
color: #FF0000;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Visited Links are red</h1>
<p><a href="index.html">This is a visited link</a></p>
</body>
</html>
http://www.worldwidemyanmar.com
CSS
..
hover
http://www.worldwidemyanmar.com
}
CSS Code (style.css)
a:hover {
color: orange;
font-style: italic;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Hover effect on links!</h1>
<p><a
href="index.html">Move
the
cursor
over
this
link</a></p>
</body>
</html>
http://www.worldwidemyanmar.com
Link Line
link
underline
line
Syntax
a{
declaration block
}
CSS Code (style.css)
a{
text-decoration:none;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Remove underlining from links</h1>
<p><a href="index.html">This is a example of a link without
underlining!</a></p>
</body>
</html>
line
http://www.worldwidemyanmar.com
property
CSS Code (style.css)
a:link {
color: blue;
text-decoration:none;
}
a:visited {
color: purple;
text-decoration:none;
}
a:active {
background-color: yellow;
text-decoration:none;
}
a:hover {
color:red;
text-decoration:none;
}
of Elements
class
class id ..
class
red wine white wine grapes wine
http://www.worldwidemyanmar.com
<p>Grapes for white wine:</p>
<ul>
<li><a href="ri.htm">Riesling</a></li>
<li><a href="ch.htm">Chardonnay</a></li>
<li><a href="pb.htm">Pinot Blanc</a></li>
</ul>
<p>Grapes for red wine:</p>
<ul>
<li><a href="cs.htm">Cabernet Sauvignon</a></li>
<li><a href="me.htm">Merlot</a></li>
<li><a href="pn.htm">Pinot Noir</a></li>
</ul>
white wine link red wine
class attribute
CSS Code (style.css)
a{
color: blue;
}
a.whitewine {
color: #FFBB00;
}
a.redwine {
color: #FF0000;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
http://www.worldwidemyanmar.com
href="cs.htm"
class="redwine">Cabernet
Sauvignon</a></li>
<li><a href="me.htm" class="redwine">Merlot</a></li>
<li><a href="pn.htm" class="redwine">Pinot Noir</a></li>
</ul>
<p>This is an example of a <a href="dok.htm">link without any class</a> - it is still
blue.</p>
</body>
</html>
link a selector
color ..
class
attribute
id
http://www.worldwidemyanmar.com
#c1-2 {
color: red;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1 id="c1">Chapter 1</h1>
<h2 id="c1-1">Chapter 1.1</h2>
<h2 id="c1-2">Chapter 1.2</h2>
<h1 id="c2">Chapter 2</h1>
<h2 id="c2-1">Chapter 2.1</h2>
</body>
</html>
http://www.worldwidemyanmar.com
Grouping
with
<span>
to
bed
and
early
to
rise
makes
man
<span
span tag
<div>
http://www.worldwidemyanmar.com
http://www.worldwidemyanmar.com
</body>
</html>
Democrats Republicans
div tag id attribute CSS id selector .
CSS Layout
margin,
border,
CSS
The box model structure
http://www.worldwidemyanmar.com
http://www.worldwidemyanmar.com
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Article 1:</h1>
<p>All human beings are born free and equal in dignity and rights. They are endowed
with reason and conscience and should act towards one another in a spirit of brotherhood</p>
</body>
</html>
http://www.worldwidemyanmar.com
Margin
http://www.worldwidemyanmar.com
Padding
Border elements
CSS Code (style.css)
h1 {
background: yellow;
padding: 20px 20px 20px 80px;
}
h2 {
background: orange;
padding-left:120px;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Header 1</h1>
<h2>Header 2</h2>
<p>All human beings are born free and equal in dignity and
rights. They are endowed with reason and conscience and should act towards
http://www.worldwidemyanmar.com
padding-left:120px;
Header
Header
..
padding
padding
Borders
Web Content
border-width
Border
thin,
medium
thick
px
http://www.worldwidemyanmar.com
border-color
border-style
border
dotted
line
http://www.worldwidemyanmar.com
Border compile
p {
border-width: 1px;
border-style: solid;
border-color: blue;
}
p {
http://www.worldwidemyanmar.com
..
CSS Code (style.css)
h1 {
border-top-width: 20px;
border-top-style: solid;
border-top-color: red;
http://www.worldwidemyanmar.com
border-bottom-width: 20px;
border-bottom-style: solid;
border-bottom-color: blue;
border-right-width: 20px;
border-right-style: solid;
border-right-color: green;
border-left-width: 20px;
border-left-style: solid;
border-left-color: orange;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Header 1</h1>
<p>All human beings are born free and equal in dignity and rights. They are endowed
with reason and conscience and should act towards one another in a spirit of brotherhood</p>
</body>
</html>
http://www.worldwidemyanmar.com
Height and Width
Elements box
<div> tag class attribute
CSS Code (style.css)
div.box {
height: 200px;
width: 400px;
border: 1px solid black;
background: orange;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Header 1</h1>
http://www.worldwidemyanmar.com
<div class="box">All human beings are born free and equal in dignity and rights. They
are endowed with reason and conscience and should act towards one another in a spirit of
brotherhood</div>
</body>
</html>
Magazine
Page 168 of 197
http://www.worldwidemyanmar.com
http://www.worldwidemyanmar.com
float
column
http://www.worldwidemyanmar.com
http://www.worldwidemyanmar.com
.floatstop {
clear:both;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="picture">
<img src="my-computer1.png" alt="My Computer" width="150px" heigh="150px">
</div>
<h1>My Computer</h1>
<p class="floatstop">All human beings are born free and equal in dignity and rights. They
are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.
All human beings are born free and equal in dignity and rights. They are endowed with reason and
conscience and should act towards one another in a spirit of brotherhood.</p>
</body>
</html>
float floating
css .floatstop class selector
http://www.worldwidemyanmar.com
CONTENT
Web
Design
HTML and CSS
Positioning of elements
Contents
browser
.. browser grid
Headline content
100 px 200 px
CSS
h1 {
position:absolute;
top: 100px;
left: 200px;
}
http://www.worldwidemyanmar.com
Absolute
Relative
Absolute Example
CSS Code (style.css)
#box1 {
position:absolute;
top: 50px;
left: 50px;
background: #FA7C00;
width: 50px;
height:50px;
padding:2px;
border: 1px solid black;
font-family:arial;
}
#box2 {
position:absolute;
top: 50px;
right: 50px;
background: #FFFF00;
http://www.worldwidemyanmar.com
width: 50px;
height:50px;
padding:2px;
border: 1px solid black;
font-family:arial;
}
#box3 {
position:absolute;
bottom: 50px;
right: 50px;
background: #00FF00;
width: 50px;
height:50px;
padding:2px;
border: 1px solid black;
font-family:arial;
}
#box4 {
position:absolute;
bottom: 50px;
left: 50px;
background: #00FFFF;
width: 50px;
height:50px;
padding:2px;
border: 1px solid black;
font-family:arial;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
http://www.worldwidemyanmar.com
Relative Example
CSS Code (style.css)
#dog1 {
position:relative;
left: 350px;
bottom: 10px;
}
#dog2 {
position:relative;
left: 450px;
bottom: 100px;
}
#dog3 {
position:relative;
left: 50px;
http://www.worldwidemyanmar.com
bottom: 100px;
}
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>My Computer</h1>
<div id="dog1"><img src="images/dog1.gif"></div>
<p>All human beings are born free and equal in dignity and rights. They are endowed with reason
and conscience and should act towards one another in a spirit of brotherhood. All human beings are born
free and equal in dignity and rights. They are endowed with reason and conscience and should act
towards one another in a spirit of brotherhood.</p>
<div id="dog2"><img src="images/dog2.gif"></div>
<p>All human beings are born free and equal in dignity and rights. They are endowed with reason
and conscience and should act towards one another in a spirit of brotherhood. All human beings are born
free and equal in dignity and rights. They are endowed with reason and conscience and should act
towards one another in a spirit of brotherhood.</p>
<div id="dog3"><img src="images/dog3.gif"></div>
<p>All human beings are born free and equal in dignity and rights. They are endowed with reason
and conscience and should act towards one another in a spirit of brotherhood. All human beings are born
free and equal in dignity and rights. They are endowed with reason and conscience and should act
towards one another in a spirit of brotherhood.</p>
</body>
</html>
http://www.worldwidemyanmar.com
z-index (Layers)
z-index content
content content ..
index
CSS Code (style.css)
#ten_of_diamonds {
http://www.worldwidemyanmar.com
position: absolute;
left: 100px;
top: 100px;
z-index: 1;
}
#jack_of_diamonds {
position: absolute;
left: 115px;
top: 115px;
z-index: 2;
}
#queen_of_diamonds {
position: absolute;
left: 130px;
top: 130px;
z-index: 3;
}
#king_of_diamonds {
position: absolute;
left: 145px;
top: 145px;
z-index: 4;
}
#ace_of_diamonds {
position: absolute;
left: 160px;
top: 160px;
z-index: 5;
}
HTML Code (index.html)
<html>
http://www.worldwidemyanmar.com
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Royal Flush</h1>
<div id="ten_of_diamonds">
<img src="images/diamonds_10.gif" alt="10 of diamonds">
</div>
<div id="jack_of_diamonds">
<img src="images/diamonds_jack.gif" alt="Jack of diamonds">
</div>
<div id="queen_of_diamonds">
<img src="images/diamonds_queen.gif" alt="Queen of diamonds">
</div>
<div id="king_of_diamonds">
<img src="images/diamonds_king.gif" alt="King of diamonds">
</div>
<div id="ace_of_diamonds">
<img src="images/diamonds_ace.gif" alt="Ace of diamonds">
</div>
</body>
</html>
http://www.worldwidemyanmar.com
King z-index: 4 6
Web Page
Final Result :-
http://www.worldwidemyanmar.com
Web Page
. Header Header Container
. Menu Menu Container
. Content Content Container
. Right Navigation
. Footer Footer Container
Column Web Page Main Content
Column Navigation Column
HTML .. HTML elements
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
http://www.worldwidemyanmar.com
character
set
Unicode
UTF-8
meta
tag
http://www.worldwidemyanmar.com
font-family: Zawgyi-One;
}
#head-container
{
color: #000;
background: #ccc;
}
#header
{
margin: 0 auto;
width: 860px;
padding: 20px;
background: #ddd;
}
#header h1 { margin: 0; }
body, td, th h1-h6 font-family ..
font .. Zawgyi-One font-family: ZawgyiOne;
Header Container #ccc Header #ddd
Header 860px
header h1 margin 0
Menu
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
http://www.worldwidemyanmar.com
<body>
<div id="head-container">
<div id="header">
<h1>World Wide Myanmar</h1>
</div>
</div>
<div id="menu-container">
<div id="menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="contact.html">Contact us</a></li>
</ul>
</div>
</div>
</body>
</html>
Menu Home, About, Services, Contact us unordered list group
style.css CSS Code (style.css)
body,td,th {
font-family: Zawgyi-One;
}
h1,h2,h3,h4,h5,h6 {
font-family: Zawgyi-One;
}
#head-container
{
color: #000;
background: #ccc;
}
http://www.worldwidemyanmar.com
#header
{
margin: 0 auto;
width: 860px;
padding: 20px;
background: #ddd;
}
#header h1 { margin: 0; }
#menu-container
{
float: left;
width: 100%;
color: #000;
background: #333;
}
#menu
{
margin: 0 auto;
width: 900px;
}
#menu ul
{
margin: 0;
padding: 0;
}
#menu ul li
{
list-style-type: none;
display: inline;
}
http://www.worldwidemyanmar.com
#menu li a
{
display: block;
float: left;
padding: 5px 10px;
color: #fff;
text-decoration: none;
border-right: 1px solid #fff;
}
#menu li a:hover { background: #383; }
Menu Containter float Menu Container
100% menu 900px Menu
Mouse #383 Menu
line .. . border-right 1px solid
Content Content Container Right
Navigation
HTML Code (index.html)
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="head-container">
<div id="header">
<h1>World Wide Myanmar</h1>
</div>
</div>
<div id="menu-container">
<div id="menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.html">Services</a></li>
http://www.worldwidemyanmar.com
http://www.worldwidemyanmar.com
}
#head-container
{
color: #000;
background: #ccc;
}
#header
{
margin: 0 auto;
width: 860px;
padding: 20px;
background: #ddd;
}
#header h1 { margin: 0; }
#menu-container
{
float: left;
width: 100%;
color: #000;
background: #333;
}
#menu
{
margin: 0 auto;
width: 900px;
}
#menu ul
{
margin: 0;
padding: 0;
http://www.worldwidemyanmar.com
}
#menu ul li
{
list-style-type: none;
display: inline;
}
#menu li a
{
display: block;
float: left;
padding: 5px 10px;
color: #fff;
text-decoration: none;
border-right: 1px solid #fff;
}
#menu li a:hover { background: #383; }
#content-container
{
float: left;
width: 100%;
color: #000;
background: #eee;
}
#content-container2
{
margin: 0 auto;
width: 900px;
}
#content-container3
{
http://www.worldwidemyanmar.com
float: left;
width: 900px;
background: #FFF url(two-fixed-background.gif) repeat-y 100% 0;
}
#content
{
clear: left;
float: left;
width: 560px;
padding: 20px 0;
margin: 0 0 0 30px;
display: inline;
}
#content h2 { margin: 0; }
#rightnav
{
float: right;
width: 240px;
padding: 20px 0;
margin: 0 20px 0 0;
display: inline;
}
#rightnav h3 { margin: 0; }
rightnav float:right width: 240px HTML
content-container3
900
px
240px
.. content
footer
..
footer
Copyright
. footer menu
:HTML Code (index.html)
http://www.worldwidemyanmar.com
<html>
<head>
<title>CSS by WWM</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="head-container">
<div id="header">
<h1>World Wide Myanmar</h1>
</div>
</div>
<div id="menu-container">
<div id="menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="contact.html">Contact us</a></li>
</ul>
</div>
</div>
<div id="content-container">
<div id="content-container2">
<div id="content-container3">
<div id="content">
<h2>
Page heading
</h2>
<p>
http://www.worldwidemyanmar.com
http://www.worldwidemyanmar.com
#header
{
margin: 0 auto;
width: 860px;
padding: 20px;
background: #ddd;
}
#header h1 { margin: 0; }
#menu-container
{
float: left;
width: 100%;
color: #000;
background: #333;
}
#menu
{
margin: 0 auto;
width: 900px;
}
#menu ul
{
margin: 0;
padding: 0;
}
#menu ul li
{
list-style-type: none;
display: inline;
}
http://www.worldwidemyanmar.com
#menu li a
{
display: block;
float: left;
padding: 5px 10px;
color: #fff;
text-decoration: none;
border-right: 1px solid #fff;
}
#menu li a:hover { background: #383; }
#content-container
{
float: left;
width: 100%;
color: #000;
background: #eee;
}
#content-container2
{
margin: 0 auto;
width: 900px;
}
#content-container3
{
float: left;
width: 900px;
background: #FFF url(two-fixed-background.gif) repeat-y 100% 0;
}
#content
{
http://www.worldwidemyanmar.com
clear: left;
float: left;
width: 560px;
padding: 20px 0;
margin: 0 0 0 30px;
display: inline;
}
#content h2 { margin: 0; }
#rightnav
{
float: right;
width: 240px;
padding: 20px 0;
margin: 0 20px 0 0;
display: inline;
}
#rightnav h3 { margin: 0; }
#footer-container
{
clear: left;
color: #fff;
background: #000;
}
#footer
{
margin: 0 auto;
width: 900px;
text-align: right;
padding: 20px;
height: 1%;
}
http://www.worldwidemyanmar.com
:-
Ref: wiki, google, indexdot.com,ultimate css, ultimcate html, html.net and so on
THE END
http://www.worldwidemyanmar.com