160 likes | 284 Views
HTML. The first word (initialism) in web design. Web Browsers. A Web Browser is a program on your computer that interprets information received from the Internet and translates it into a form that we understand. Some are better than others…. H yper T ext M arkup L anguage. HTML.
E N D
HTML The first word (initialism) in web design
Web Browsers • A Web Browser is a program on your computer that interprets information received from the Internet and translates it into a form that we understand Some are better than others…
HyperText Markup Language HTML • A “Programming Language” that we (humans) can read and write • We use it to “Mark Up” text in such a way that a “Browser” knows to display what we want • Based on “Elements” consisting of opening and closing “Tags”
Open up Text Wrangler Type the following exactly as you see it <html> <h1>Hello World</h1> <p>This is a paragraph</p> </html> Save it onto the desktop with the title “index.html”. DO NOT CLOSE TEXT WRANGLER Open it and what do you see?
That’s the Internet! Internet Explained
Well Wasn’t That Neat? • Block Level vs. Inline • Block Level • Browser adds a white space between block level elements • Ex. <blockquote>, <p>, <h1> • Inline • Applied to content within a block level element • Ex. <strong>, <em>, <a>
<head> Information Things you put in the <head> area, tell the browser information about the web page. Information about the page title or page style go in the <head> The <title> tag defines the title of the page in your browser Go ahead and give your page a title
Attributes • Goes in the opening tag of an element • The syntax is ➡ name=“value” • “name” is the name of the attribute • “value” is what you want it to do (always goes in double quotes <a href=“http://giip.org”> Link </a> <h1 id=“sectiontitle”> Attributes</h1>
Multiple Pages • Create a new .html file and name it “about.html” • Feel free to just copy all the code from index.html and paste it in • Just make sure to make one of the paragraphs say something about you like, “I am cool” • Save it and put it in your web folder • Go to “index.html” and add this to one of your paragraphs, • <a href=”about.html">Link text goes here</a>
Link Back To Your First Page Now, in your “about” page, make a link back to your home page Who can guess how to do this?
Images • You don’t want a website full of text do you? • To add images you use this code” • <imgsrc=“image url or file name” /> • Notice that it doesn’t need a closing tag • Change the size with the “width” and “height” attributes • <imgsrc=“giip.jpg” height=“75px” width=“75px” /> • Image as a link? • Just put the <img> element where the link text would go
So You’ve Got A Sweet Website On Your Computer…Cool? • We need to get this bad boy on the web. To do that we need to upload it onto a “Server” so that anyone can access it • Open the application “Cyberduck” • You need to download this on your personal computer
File Transfer Protocol (FTP) • FTP is an application that transfers files onto a “Server” • A Server is a specially formatted computer wherein files like webpages and images are stored
Directories • A directory is a folder • Before it looked like, • file:///Users/tgelder/Desktop/thomas-gelder2/index.html • It shows the “File Path” • Now it’s on the web and looks different since it’s in a new “Directory” which is just a folder on the server • www.icanfafsa.com/weblab/thomas-gelder2 • I gave you guys access to the “weblab” directory
Login Information • I have given you guys access to the directory “weblab” you all have free reign over this particular folder • DON’T SCREW WITH OTHER PEOPLE’S FILES • Server = icanfafsa.com • Username = weblab@icanfafsa.com • Password = 2012weblab
Edit Right on the Server! • No need to download and re-upload whenever you want to make changes • 1st go to Cyberduck preferences and select Text Wrangler as your default editor • Select the file you want to edit and hit “Edit” up on the top right of the window. • Now you can just save your changes and it will immediatelyupdate your website!