Professional Documents
Culture Documents
Web 6th Sem Chap02
Web 6th Sem Chap02
* <t h >…</ t h> ( table heading cell) Takes exact same attributes as t d . In heading cells, text is
• Here is an example using several of these attributes.
• Properties of whole rows can be formatted using attributes of
the tr element.
See moesplace.html
Proper indent-
ation helps to
make
complicated
HTML files
human
readable.
• To create "irregular" tables, use the rowspan and colspan
attributes of the td element.
• This page layout features a header and footer region, left and
right navigation regions (nav bars), and a couple of main
content areas.
See sports.html.
<style>
<!--
style rules go here
-->
</style>
See span.html
• Styles can be applied to HTML elements other than span.
b.big { font-size:125%; }
<div>block content</div>
div.myblock { position:absolute;
background:#333333;
top:10px;
left:5px;
width:600px;
height:40px; }
• One just has to do the math and make sure the blocks fit
together and don't overlap.
See sports.html (the one in the styles folder).
• Notice the hover links in the CSS version of sports.html.
• It is important to list the hover state last or some browsers mess this
up. Also, one can assign different hover states to different style classes
of links to provide for varying hover effects.
Why the
cascading in
CSS?