Today we delve into the world of HTML coding! You should all have completed Web Fundamentals unit 1, “HTML basics” (I’ll be checking badges at the start of class) in Codecademy. Today you’re going to create a very simple webpage with those skills.
First, do the following:
- Create a desktop folder called WWW
- Open TextWrangler (in Macintosh HD > Applications), create a new file called “index.html” and save to WWW
- Save two images (use short names like “image1.jpg”) to your WWW folder
- Open Chrome (also in Macintosh HD > Applications)
- Place your structural tags (these are the initial tags that make a blank document into a website. There are four, three of which are in pairs. Do you remember them?)
- To preview in TextWrangler
- In Chrome, go to File > Open File… and open “index.html”
- Command-Tab to select TextWrangler and write code
- Command-Tab to select Chrome and Command-R to refresh your webpage
Once your groundwork is laid, you’ll have … a blank document. This will become your webpage. Complete the following steps:
- Create a title
- Don’t just write a line of text – you’ll need to use a specific HTML tag that goes in a specific location
- Add a first-level headline and one paragraph
- Bold a few words. Italicize a few other words.
- Insert an image (pay attention to punctuation like quotation marks!)
- Add a second-level headline and another paragraph
- Create a hyperlink to the SOJ homepage within this paragraph
- Add a third-level hed and another image
- Make this second image into a hyperlink
I’ll be checking your work when you’re done, but if you’re a real go-getter, see if you can make some of the following changes. A Google search can answer every one of them.
- The color of text?
- The background color?
- The size of an image?