On Github redler / zero2web
Ken RedlerCTO, cSubs
ksr@ksredler.com kenredler @redler
1. Will this be red? 2. Is it greenor is it blue?
Just a text file
<!DOCTYPE html> <html> </html>
Like the skeleton, a head and a body
<!DOCTYPE html> <html> <head> </head> <body> </body> </html>
The head contains data about the document
<head> <title>Bask in the magnificence of this page!</title> </head>
The body contains the content of the document
<body> <h1>Welcome!</h1> <p>We hope you'll stay awhile.</p> </body>
If you have a file like a gif or jpeg, just point to it from an tag
<img src="myCoolPhoto.jpg">
Even if you don't have your image, how about a placeholder?
<img src="http://placekitten.com/150/300">
<img src="http://sheenholders.com/421x550">
<!DOCTYPE html> <html> <head> <title>Bask in the magnificence of this page!</title> </head> <body> <h1>Welcome!</h1> <p>We hope you'll stay awhile.</p> <p>And, by the way, whitespace doesn't matter </p> <p>And that includes indentation</p> </body> </html>
body { color: red; background-color: black; }
<!DOCTYPE html> <html> <head> <title>Bask in the magnificence of this page!</title> <style> body { color: red; background-color: black; } </style> </head> <body> <h1>Welcome!</h1> <p>We hope you'll stay awhile.</p> </body> </html>
<head> <title>Bask in the magnificence of this page!</title> <link rel="stylesheet" type="text/css" href="mystyles.css"> </head>
<head> <script> for (var i = 1; i <= 6; i++) { alert('Annoying you six times!'); } </script> </head>
<head> <title>My OK Page</title> <script src="/my_fancy_scripts.js"></script> </head>