good website.
1. consistant look
2. no scrolling.
3. no matter whatever you do number of
clicks should be maximum 3.
html - is to provide the structure of the
page
javascript - dynamic behaviour and in
today's world we are seeing
javascript for business logic ( ajax)
css - is used to do makeup
makeup it primarily means how to
position.
<html>
<head> </head>
<body> </body>
</html>
typically in the head comes title.
title show the title in the browser window
header
most important is aid's searchability.
h1 to h6 headers.
h1 shows in big font
h6 shows in small font.
form component.
send data to the server.
1. via form
2. not via form. typically it doen by using
get, query strings.
a.php?userid=a&preference=d
form components.
<form method="post" action="">
</form>
thanks
<span id="id3"> zzz </span>
</div>
this entire template can be put in a div.
we want xxx , yyy and zzz should be
replaced from a different source
then good put span around them.
table basics.
1. how to create a table , table tag
2. how to create rows , tr tag
3. how to create columns you cannot
create
4. how to create cells td or th
we have to create cells and hope it
becomes a column.
5. cells can grow, depending on what we
are saying rowspan and colspan.
table means it slows down web page.
w3cschools.org.
sitepoint.com - great site practical stuff to
work on web pages.
with these things html is over.
quick summary.
1. avoid doing makeup with html
2. focus on structure while writing html
3. form components know importance of
value and label for non textbox
components
4. know meaning of get and post
5. important thing is to know when to use
div and when to use span and importance
of using id.
6. table basics, of what is rowspan and
what is colspan etc.
for example
find h1 in the html page and show it in red
color.
css means you got to know how to control
position of an elment rather than
focussing on color or font type etc.
what is a class.
class is a css thing which we can decide
whether to apply or not.
it also gives you a feature whereby you
can group some commonly applied
makeup
and apply to whatever element you want
selectively or together.
1)
if you got a class, then you can apply it
selectively, you can decide when to apply
you can decide via your code or via your
business logic.
1. we define .blue
2. we tell what makeup to apply
{color:blue}
3. we tell which element uses the class.
<p class="blue">
<div style="float:right">
items being added </div>
<div> shopping cart
</div
float:left
float:right
clear:left
clear:both
clear:right
#xyz for id
summary.rtf