890 likes | 1.07k Views
Web design. Čas 2. Da se podsetimo. Šta je web dizajn? Šta sve može biti sadržaj? Šta je web browser? “Jezici”. Napravili smo. Kako?. Naslov ili <title></title>. Heading1 ili <h1></h1>. Link ili <a></a>. Paragraf ili <p></p>. I dobili smo.
E N D
Web design • Čas 2
Da se podsetimo • Šta je web dizajn? • Šta sve može biti sadržaj? • Šta je web browser? • “Jezici”
Napravili smo • Kako?
Naslov ili <title></title> Heading1 ili <h1></h1> Link ili <a></a> Paragraf ili <p></p>
I dobili smo... • <html><head><title>Naslovna strana</title></head><body><h1>Moj websajt!</h1><p>Ovo je moj web sajt.</p><p>Ovo su sajtovi koje ja najčešće posećujem:</p><p><a href="www.google.com">google.com</a></p><p><a href="www.facebook.com">facebook.com</a></p><p><a href="www.myspace.com">myspace.com</a></p></body></html>
Uveli smo problem Layout-a • ili preloma, ko kako hoće ;-)
pozadina ćelije Tabela u tabeli
Pa smo dobili... • <html><head> <title>Untitled Document</title></head><body><table width="100%"> <tr> <th scope="row"> <table width="100%"> <tr> <th bgcolor="#FFFFFF" scope="row">Logo</th> <td bgcolor="#CCCCCC"><a href="www.google.com">dugme 1</a></td> <td bgcolor="#999999"><a href="www.google.com">dugme 2</a></td> <td bgcolor="#666666"><a href="www.google.com">dugme 3</a></td> <td bgcolor="#333333"><a href="www.google.com">dugme 4</a></td> </tr> </table> </th> </tr> <tr> <th scope="row">Sadrzaj strane</th> </tr> <tr> <th scope="row">Footer...</th> </tr></table></body></html>
Pa smo dobili... • <html><head> <title>Untitled Document</title></head><body><table width="100%"> <tr> <th scope="row"> <table width="100%"> <tr> <th bgcolor="#FFFFFF" scope="row">Logo</th> <td bgcolor="#CCCCCC"><a href="www.google.com">dugme 1</a></td> <td bgcolor="#999999"><a href="www.google.com">dugme 2</a></td> <td bgcolor="#666666"><a href="www.google.com">dugme 3</a></td> <td bgcolor="#333333"><a href="www.google.com">dugme 4</a></td> </tr> </table> </th> </tr> <tr> <th scope="row">Sadrzaj strane</th> </tr> <tr> <th scope="row">Footer...</th> </tr></table></body></html>
Pa smo dobili... • <html><head> <title>Untitled Document</title></head><body><table width="100%"><tr> <th scope="row"> <table width="100%"> <tr> <th bgcolor="#FFFFFF" scope="row">Logo</th> <td bgcolor="#CCCCCC"><a href="www.google.com">dugme 1</a></td> <td bgcolor="#999999"><a href="www.google.com">dugme 2</a></td> <td bgcolor="#666666"><a href="www.google.com">dugme 3</a></td> <td bgcolor="#333333"><a href="www.google.com">dugme 4</a></td> </tr> </table> </th></tr> <tr> <th scope="row">Sadrzaj strane</th> </tr> <tr> <th scope="row">Footer...</th> </tr></table></body></html>
Pa smo dobili... • <html><head> <title>Untitled Document</title></head><body><table width="100%"><tr> <th scope="row"> <table width="100%"> <tr> <th bgcolor="#FFFFFF" scope="row">Logo</th> <td bgcolor="#CCCCCC"><a href="www.google.com">dugme 1</a></td> <td bgcolor="#999999"><a href="www.google.com">dugme 2</a></td> <td bgcolor="#666666"><a href="www.google.com">dugme 3</a></td> <td bgcolor="#333333"><a href="www.google.com">dugme 4</a></td> </tr> </table> </th></tr><tr> <th scope="row">Sadrzaj strane</th></tr><tr> <th scope="row">Footer...</th></tr></table></body></html>
Pa smo dobili... • <html><head> <title>Untitled Document</title></head><body><table width="100%"><tr> <th scope="row"><table width="100%"> <tr> <th bgcolor="#FFFFFF" scope="row">Logo</th> <td bgcolor="#CCCCCC"><a href="www.google.com">dugme 1</a></td> <td bgcolor="#999999"><a href="www.google.com">dugme 2</a></td> <td bgcolor="#666666"><a href="www.google.com">dugme 3</a></td> <td bgcolor="#333333"><a href="www.google.com">dugme 4</a></td> </tr></table> </th></tr> <tr> <th scope="row">Sadrzaj strane</th> </tr> <tr> <th scope="row">Footer...</th> </tr></table></body></html>
Pa smo dobili... • <html><head> <title>Untitled Document</title></head><body><table width="100%"> <tr> <th scope="row"> <table width="100%"> <tr><th bgcolor="#FFFFFF" scope="row">Logo</th> <td bgcolor="#CCCCCC"><a href="www.google.com">dugme 1</a></td> <td bgcolor="#999999"><a href="www.google.com">dugme 2</a></td> <td bgcolor="#666666"><a href="www.google.com">dugme 3</a></td> <td bgcolor="#333333"><a href="www.google.com">dugme 4</a></td> </tr> </table> </th> </tr> <tr> <th scope="row">Sadrzaj strane</th> </tr> <tr> <th scope="row">Footer...</th> </tr></table></body></html>
100px 100%
100px 100%
Metode za realizaciju layout-a • Layout preko tabela (“stari” HTML način) • Layout pomoću CSS-a (XHTML)
SEO Search Engine Optimization
Medjutim, CSS (XHTML) ima jednu primetnu “manu” • Web Browser-i
IE ne prati standarde i ima tzv. “broken box model” • O čemu ćemo malo kasnije...
Dakle, šta je to CSS? • Cascading Style Sheets
“Jezici” • <html>, <xhtml> • JavaScript, JQuery... • ActionScript (Flash) • PHP
“Jezici” • <html>, <xhtml>, CSS • JavaScript, JQuery... • ActionScript (Flash) • PHP
Otvorimo strane u DW-u • Izaberemo slit view • Uočimo razlike
primer1.css • * { font-family:Verdana, Geneva, sans-serif; font-size:14px; color:#333;} • h1 { font-size:24px; text-transform:uppercase;}body { background-color: #BBB; padding: 30px;}a { color:#060; text-decoration:none;}
primer1.css • * { font-family:Verdana, Geneva, sans-serif; font-size:14px; color:#333;} • h1 { font-size:24px; text-transform:uppercase;}body { background-color: #BBB; padding: 30px;}a { color:#060; text-decoration:none;}
primer1.css • * { font-family:Verdana, Geneva, sans-serif; font-size:14px; color:#333;} • h1 { font-size:24px; text-transform:uppercase;}body { background-color: #BBB; padding: 30px;}a { color:#060; text-decoration:none;}
primer1.css • * { font-family:Verdana, Geneva, sans-serif; font-size:14px; color:#333;} • h1 { font-size:24px; text-transform:uppercase;}body { background-color: #BBB; padding: 30px;}a { color:#060; text-decoration:none;}
primer1.css • * { font-family:Verdana, Geneva, sans-serif; font-size:14px; color:#333;} • h1 { font-size:24px; text-transform:uppercase;}body { background-color: #BBB; padding: 30px;}a { color:#060; text-decoration:none;}
primer1.css • * { font-family:Verdana, Geneva, sans-serif; font-size:14px; color:#333;} • h1 { font-size:24px; text-transform:uppercase;}body { background-color: #BBB; padding: 30px;}a { color:#060; text-decoration:none;} Selektori
primer1.css • * { font-family:Verdana, Geneva, sans-serif; font-size:14px; color:#333;} • h1 { font-size:24px; text-transform:uppercase;}body { background-color: #BBB; padding: 30px;}a { color:#060; text-decoration:none;} Stilovi box-ova