Professional Documents
Culture Documents
L2 Slides - Developing For The Web - Y8
L2 Slides - Developing For The Web - Y8
L2 Slides - Developing For The Web - Y8
enough
Year 8 – Developing for the Web
Starter activity
Do you remember?
4
Activity 1
Placing images
Web pages wouldn’t be very interesting to look at if they were just lines of text.
This HTML document includes an image. Can you imagine what it would look like on
your screen if you viewed it?
<p>Hypertext Markup Language (HTML) and Cascading Style Sheets (CSS) are
used to create and format pages of a website. CSS allows you to make formatting
changes to your website in one document. The 'instructions' in this document are
then applied to your web pages.
</p>
Hypertext Markup Language (HTML) and Cascading Style Sheets (CSS) are used
to create and format pages of a website. CSS allows you to make formatting
changes to your website in one document. The 'instructions' in this document are
then applied to your web pages.
Image tags
Like the tags you have seen before, image tags mark a place in a document where an
image should be displayed.
The src attribute identifies the filename of the image that should be loaded.
The alt attribute is used to associate some helpful text with image and is only visible
when the mouse hovers over the image or if it doesn’t load.
Loading a file
The image tag creates a space where an image should be displayed.
Images are stored like any other file in computer by being given a name and a location.
When the web page is viewed, the web browser collects the image from where it is
stored.
Using images
1. Open your ‘A2 Hometags.html’ web page from last lesson in a plain text editor,
(there is another copy available to download if you missed this).
2. Download ‘A1 web page files.zip’ and extract the images to the same place where
your hometags page is saved.
3. Place one of the images in an appropriate place in your HTML document.
4. Resize the image by adding the property width="15%".
5. Experiment with the layout of the image by placing image tags inside of modified
<p> tags, e.g.
<p style="text-align:center;"><img src="code.jpg"></p>
6. Repeat for the other images and add subheadings for each.
9
Activity 2
The use of images should enhance a web page and complement the text.
Also remember that web pages need to get across useful information to the reader, so the
formatting of the page should enable this to happen.
10
Activity 2
Formatting
What formatting can you spot on this web page?
11
Activity 2
Emphasised (italics)
Underlined
13
Plenary
Young people write a simple program to take a humidity reading onboard the International
Space Station and communicate it to the astronauts with a personalised message, which will be
displayed for 30 seconds!</p>
14
Plenary
<p>Young people write a simple program to take a humidity reading onboard the International
Space Station and communicate it to the astronauts with a personalised message, which will be
displayed for 30 seconds!</p>
15
Summary
Next lesson
Explored how to utilise images as a part Explore how to save work when
of carefully designed HTML webpages formatting larger webpages
16