90 likes | 169 Views
GBK Programming 1. Jordan Johnson. Today’s plan. Greeting Lesson: Goals / rubrics. (~ 20 min) Review tags. (~5 min) Build, save, and view a page. (~25 min) Clean-up. Markup & HTML. Yesterday’s task:
E N D
GBK Programming 1 Jordan Johnson
Today’s plan Greeting Lesson: Goals / rubrics. (~20min) Review tags. (~5 min) Build, save, and view a page. (~25 min) Clean-up
Markup & HTML • Yesterday’s task: • Using “View Source,” look at the source of several web pages, and (in your notes) jot down some (let’s say 10 to 15) of the kinds of tags you see. Be ready to share them.
So….what’d you find? Tag Meaning DIV META HTML Start/end an HTML document. HEAD Start/end the “head”, information about the page. BODY Start/end the main structure of the page. LINK SECTION TITLE The text that appears in the title bar. SPAN UL, OL An un(ordered) list LI An item in a list SCRIPT H1, H2, H3 Headers (in decreasing order of importance) EM A IMG TD SMALL CENTER
Create a page: example structure <html> <head> <title>My spifftasticüberpage</title> </head> <body> …lots of text here… </body> </html> A list of tags: http://www.w3schools.com/tags/default.asp Various tutorials: http://www.fellowhuman.com/kirby/tutorials.html View your page using your browser of choice.
Empty Tags <blockquote> Shall I compare thee to a summer’s day?<br /> Nah, I’ll just get depressed thinking about summer being over. </blockquote> Empty tags always carry a slash at the end: <br /> • So far, tags look like this: • <TAGNAME> . . . </TAGNAME> • Some tags don’t need closers: • <br /> line break tag • Example:
Attributes <p>You can find more info on the <a href=“tutorials.html”>tutorials</a> page.</p> <img src=“monkey.jpg” alt=“A picture of a monkey” /> In the above, “href” and “src” and “alt” are the attribute names. • Some tags need more info than a name: • <TAGNAME ATTRIBUTE=“VALUE” …>…</TAGNAME> • Examples:
Task: Link two pages: <html> <head><title>One page</title></head> <body> This just goes to <a href=“secondpage.html”>another page</a>, OK? </body></html> • File 2: secondpage.html <html> <head><title>Another page</title></head> <body> …and here we are on the second page. Want to go <a href=“firstpage.html”>back</a>? </body></html> File 1: firstpage.html
Clean-up • Before you leave, please . . . • Log out. • Push in your chair. • Make sure you’ve got everything. • Make sure all trash ends up in the trash can.