Professional Documents
Culture Documents
Outline
• Designing a Web Page
• Tables are frequently used to layout the basic web page design .
1280
640 3
4
Assignment # 1
• HTML is the standard language which is widely used over world
wide web
• Over the passage of time, various versions of HTML have been
released.
• HTML5 is the latest version of HTML which is adapted by W3C in
2008.
• Your task
• Write a detailed report on HTML5 including
• What are the new features/tags introduced in HTML5
• A comparison with HTML4: What is no more supported in
HTML5
• Report must include at least 10 pages
• It’s a group task
• Important: Feel free to browse online literature to search for
related content but your report must be your own work. A
similarity index of above 20% will get a straight ‘0’.
• Deadline: 9th of Feb 11:59pm.
5
Division (DIV)
• Defines a division or a section in an HTML document
Simple DIV
Simple DIV
Simple DIV
<html>
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<h1>A heading</h1>
<p>A paragraph.</p>
</body>
</html>
10
.block {
position: absolute;
top: 50px;
left: 200px;
width: 120px;
padding: 10px;
border: 1px solid;
text-align: center;
}
</style> </head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<div class="block">
1
</div> </body>
11
DIV – Float
• Float is a CSS position property
• In its simplest use, the float property can be used to wrap text
around images.
• E.g. style=“float: right;”
13
DIV – Float
DIV – Clear
• Another CSS positioning property
</style>
17
</style>
18
Basic Skeleton
<div style="width:90%; margin:auto; border:1px solid black;">
<div style="text-align:center; padding:10px; border-bottom: 1px solid
black;">HEADER SECTION </div>
<div style="width:100%">
<div style="float:left; width:20%;height:350px;border-right: 1px solid
black;">SIDE BAR </div>
<div style="float:left; ">CONTENT AREA</div>
<br style="clear: left;" />
</div>
Basic Skeleton
<div style="width:90%; margin:auto; border:1px solid black;">
<div style="text-align:center; padding:10px; border-bottom: 1px solid
black;">HEADER SECTION </div>
<div style="width:100%">
<div style="float:left; width:20%;height:350px;border-right: 1px solid
black;">SIDE BAR </div>
<div style="float:left; ">CONTENT AREA</div>
<br style="clear: left;" />
</div>