Tutorial
02 | We begin with just the basic markup for our Basic Web Design page | Remember it looks like this... |
| <!--
-----------------------------Snip --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Tutorial 22</title> </head> <body> <h1>Basic Web Design</h1> <h3>Concepts, ideas, tools, and knowledge</h3> <h5> Summer 2007</h5> <h1> Create Your Own Web Site</h1> <p>Syllabus<br> Lesson 1<br> Lesson 2<br> Lesson 3<br> Lesson 4</p> <p></p> <p>Contact </p> <h2>Explore concepts and ideas to develop a clear, concise, usable and attractive web site</h2> </body> </html> <!-- -----------------------------Snip --> |
Basic Web DesignConcepts, ideas, tools, and knowledgeSummer 2007Create Your Own Web SiteSyllabus Contact Explore concepts and ideas to develop a clear, concise, usable and attractive web site |
| Text editor |
Browser |
| <!--
-----------------------------Snip --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Tutorial CSS 01</title> <style type="text/css"> h1 { color: white; } h2 { color: black; } h3 { color: orange; } p { color: white; } </style> </head> <body style="background-image: url( mandarin/bg1b.gif); background-repeat: repeat-x;"> <h1>Basic Web Design</h1> <h3>Concepts, ideas, tools, and knowledge</h3> <h5> Summer 2007</h5> <h1> Create Your Own Web Site</h1> <p>Syllabus<br> Lesson 1<br> Lesson 2<br> Lesson 3<br> Lesson 4</p> <p></p> <p>Contact </p> <h2>Explore concepts and ideas to develop a clear, concise, usable and attractive web site</h2> </html> <!-- -----------------------------Snip --> |
Basic Web DesignConcepts, ideas, tools, and knowledgeSummer 2007Create Your Own Web SiteSyllabus Contact Explore concepts and ideas to develop a clear, concise, usable and attractive web site |
| In order
to be able to see the white text on a white background, I
snuck in a background for the entire page... If you cut the above markup and Paste it into a text editor and save it as an html file it will look like this CSS-test01.html |
|
| What we see in a text editor... |
This is a screen capture from
Firefox of our results... |
| <!--
-----------------------------Snip --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Tutorial DIV 01</title> <style type="text/css"> h1 { color: white; } h2 { color: black; } h3 { color: orange; } p { color: white; } </style> </head> <body style="background-color: #ff9900; "> <div <img src="mandarin/web.jpg" /></div> <div style="padding: 15px; position: absolute; left: 120px; top: 90px; background-color: orange; width: 620px;"><h1>Basic Web Design</h1> </div> <div style="border: 2px dashed red; padding: 10px; z-index: 2; position: absolute; left: 610px; top: 155px; background-color: yellow; width: 100px;"><h3>Concepts, ideas, tools, and knowledge</h3></p> </div> <div style="padding: 5px 20px 5px 5px; background-color: rgb(41, 41, 41); color: white; position: absolute; left: 0px; top: 80px; width: 100px; height: 300px;"><p>Syllabus<br> Lesson 1<br> Lesson 2<br> Lesson 3<br> Lesson 4</p> <p></p> <p>Contact </p> </div> <div style="border: 10px double black; padding: 5px; position: absolute; left: 120px; bottom: 180px; background-color: green; width: 150px; color: white;"><h5> Summer 2007</h5> <h1> Create Your Own Web Site <img src="create.jpg" /></h1> </div> <div style="padding: 10px; z-index: 1; position: absolute; right: 10px; bottom: 10px; background-color: rgb(204, 51, 0); width: 280px; color: white;"><h2>Explore concepts and ideas to develop a clear, concise, usable and attractive web site</h2></div> </body> </html> <!-- -----------------------------Snip --> |
![]() |
| You can see the actual results in your browser by clicking here |
| <!--
-----------------------------Snip -->
<!DOCTYPE html PUBLIC
"-//W3C//DTD
HTML 4.01 Transitional//EN">
<div id="layer2" <html> <head> <title>Tutorial CSS & Div 02</title> <style type="text/css"> h1 { color: white; } h2 { color: black; background: white; width: 630px; height: 81px; padding:20px } h3 { color: orange; } p { color: white; } </style> </head> <body background="mandarin/bg1b.gif"> style="padding: 15px; z-index: 2; position: absolute; left: 0px; top: 10px; background-color: black; width: 720px; height: 94px; border: #ffffff 28px thin;"> <h1>Basic Web Design </h1> </div> <div id="layer3" style="padding:4px; z-index: 3; position: fixed; left: 0px; top: 71px; width: 414px; height: 30px;"> <h3>Concepts, ideas, tools, and knowledge </h3> </div> <div id="Layer4" style="z-index: 4; position:absolute; left:10px; top: 10px; background-color: rgb(0,0,0); width:150px; height: 103px; border: #ffffff 20px double;"> <img src="mandarin/web.jpg" /> </div> <div id="layer5" style="padding: 15px 20px 5px 5px; background-color: rgb(0, 0, 0); color: white; z-index: 5; position: absolute; left: 100px; top: 100px; width: 225px; height: 400px; border: #ffffaa 18px groove;"> <p>Syllabus<br> Lesson 1<br> Lesson 2<br> Lesson 3<br> Lesson 4</p> <p></p> <p>Contact </P> <p>Tutorial 1</P> <p>Tutorial 2</p> </div> <div id="layer6" style="padding: 10px; position: absolute; left: 300px; top: 120px;border: #ffffff 2px ridge; background-color: white; width: 646px; Z-index: 6; color: white;"> <img src="create.jpg" /> </div> <div id="Layer7" style="z-index: 7; position: absolute; left: 300px; top: 320px;"> <h2>Explore concepts and ideas to develop a clear, concise, usable and attractive web site </h2> </div> </body> </html> <!-- -----------------------------Snip --> |
![]() |
| snip, copy, paste = no tables
used here! |
| The W3C diagram looks like this | Houston we have a problem... IE 6 In quirk mode and IE 5.5 it looks like this |
![]() |
![]() |
| More on the is later... |
| <!--
-----------------------------Snip --> <!DOCTYPE html PUBLIC
"-//W3C//DTD
HTML 4.01 Transitional//EN">
<div id="layer2" <html> <head> <title>Tutorial CSS & Div 02</title> <style type="text/css"> h1 { color: white; } h2 { color: black; background: white; width: 630px; height: 81px; padding:20px } h3 { color: orange; } p { color: white; } </style> </head> <body background="mandarin/bg1b.gif"> style="padding: 15px; z-index: 2; position: absolute; left: 184px; top: 10px; background-color: black; width: 620px; height: 74px; border: #ffffff 8px solid;"> <h1>Basic Web Design </h1> </div> <div id="layer3" style="padding:4px; z-index: 3; position: fixed; left: 205px; top: 71px; width: 614px; height: 10px;"> <h3>Concepts, ideas, tools, and knowledge </h3> </div> <div id="Layer4" style="z-index: 4; position:absolute; left:18px; top: 10px; background-color: rgb(0,0,0); width:150px; height: 103px; border: #ffffff 8px solid;"> <img src="mandarin/web.jpg" /> </div> <div id="layer5" style="padding: 15px 20px 5px 5px; background-color: rgb(0, 0, 0); color: white; z-index: 5; position: absolute; left: 18px; top: 124px; width: 125px; height: 300px; border: #ffffff 8px solid;"> <p>Syllabus<br> Lesson 1<br> Lesson 2<br> Lesson 3<br> Lesson 4</p> <p></p> <p>Contact </P> <p>Tutorial 1</P> <p>Tutorial 2</p> </div> <div id="layer6" style="padding: 10px; position: absolute; left: 180px; top: 120px;border: #ffffff 2px solid; background-color: white; width: 646px; Z-index: 6; color: white;"> <img src="create.jpg" /> </div> <div id="Layer7" style="z-index: 7; position: absolute; left: 180px; top: 320px;"> <h2>Explore concepts and ideas to develop a clear, concise, usable and attractive web site </h2> </div> </body> </html> <!-- -----------------------------Snip --> |
![]() |
| Nicer! snip, copy, paste = no tables used here! |
| I snuck in a label for one of the graphics, can you spot it? | Check out how it looks in 4
different browsers!!! |
| <!--
-----------------------------Snip --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Tutorial CSS & Div 02</title> <style type="text/css"> body { background-image: url(mandarin/bg1b.gif); background-repeat: repeat-x; } h1 { font-family: sans-serif; color: white; } h2 { color: black; } h3 { color: #ffa000; } p { color: white; } #layer2 { padding: 15px; position:absolute; z-index: 2; left: 184px; top: 10px; background-color: black; border: #ffffff 8px solid; width:666px; voice-family: "\"}\""; voice-family:inherit; width:620px; } #layer2 {height:120px; voice-family: "\"}\""; voice-family:inherit; height: 74px; } html>body #layer2 { width:620px; height: 74; } #layer3 { padding:4px; z-index: 3; position: absolute; left: 205px; top: 71px; width: 614px; height: 10px; } #layer4 { z-index: 4; position:absolute; left:18px; top: 10px; background-color: rgb(0,0,0); width:150px; height: 103px; border: #ffffff 8px solid; } #layer5 { padding: 15px 20px 15px 5px; background-color: rgb(0, 0, 0); color: white; z-index: 5; position: absolute; left: 18px; top: 124px; width: 125px; height: 300px; border: #ffffff 8px solid; } #layer6 { padding: 10px; position: absolute; left: 180px; top: 120px; border: #ffffff 2px solid; background-color: white; width: 646px; Z-index: 7; } p.picturename {color:purple } #layer7 { z-index: 6; position: absolute; left: 180px; background: white; padding: 2px; top: 390px; width: 666px; height: 76px; } </style> </head> <body style="color: rgb(255, 102, 0); background-color: rgb(255, 255, 255);" alink="#000099" link="#ff0000" vlink="#33cc00"> <div id="layer2"> <h1>Basic Web Design </h1> </div> <div id="layer3"> <h3>Concepts, ideas, tools, and knowledge </h3> </div> <div id="layer4"> <img src="mandarin/web.jpg"> </div> <div id="layer5"> <p><a href="syllabus.html">Syllabus</a><br> <br> <a href="lesson1.html">Lesson 1</a><br> <a href="lesson02.html">Lesson 2</a><br> <a href="lesson03.html">Lesson 3</a><br> <a href="lesson04.html">Lesson 4</a></p> <p><a href="mailto:garrystasiuk@comcast.net">Contact</a> </p> <p><a href="HTML_XHTMLTutorial.html">Tutorial 1</a></p> <p><a href="tutorial2.html">Tutorial 2</a><br> </p> <p><br> <a href="BWD-Summary.html">More</a><br> </p> </div> <div id="layer6"> <img src="Create.jpg"> <p class="picturename"> Create.jpg</p> </div> <div id="layer7"> <h2>Explore concepts and ideas to develop a clear, concise, usable, and attractive web site. </h2> </div> </body> </html> |
![]() FireFox
![]() Apple Safari
![]() SeaMonkey
![]() Internet Explorer 7 Standard
![]() Internet Explorer 7 in quirks mode (emulating IE 6 & 5.5) Fix it.... |
| Looks
good in Seamonkey, looks good in Firefox, looks great in Safari and in
Internet Explorer 7 standard mode page with links |
|
| Lucky for us we can use Googles
search engine, here's the markup from Google all you have to do is replace the red text with your domain name and url |
|
| <!--SiteSearch Google
--> <form method="get" action="http://www.google.com/search"> <div id="search"> <label for="q">Search:</label> <input id="q" name="q" size="20" maxlength="255" value="" type="text" /> <input name="domains" value="http://uofgts.com/" type="hidden" /> <input name="sitesearch" value="http://uofgts.com/" checked="checked" id="mysite" type="radio" /> <label for="mysite">Just this site</label> <input name="sitesearch" value="" id="www" type="radio" /> <label for="www">WWW</label> <input name="btnG" value="Go" type="submit" /> </div> </form> <!-- SiteSearch Google --> |
|