L5 Slides - Developing For The Web - Y8
L5 Slides - Developing For The Web - Y8
Tightening the
web
Year 8 – Developing for the web
Starter activity
Categorising animals
Animals are grouped into different classes based on the ways in which
they are
the same. Identify as many differences between the groups as you can.
Specific groups
If you asked: “Which animals have feathers?”
Birds
Starter activity
Overlapping groups
If you asked: “Which animals can live in water?”
Overlapping groups
If you asked: “Which animals can live in water?”
6
Starter activity
Narrowing results
If you want fewer answers, you can include more details to narrow your
search.
How can you add to this question to have amphibians and mammals as
the answer?
Narrowing results
“Which animals can live in water AND can live on land?”
Amphibians Mammals
Starter activity
Combining groups
Sometimes you may want a broader range of answers, so you would
specify two separate parts to the question.
What word could you add to a question to have both mammals and
arthropods as the answer?
“Which animals drink milk as babies ………… have more than four
legs?”
Starter activity
Combining groups
“Which animals drink milk as babies OR have more than four legs?”
Mammals Arthropods
Starter activity
Excluding groups
You can ask questions that eliminate groups that you don’t want as part
of
the answer.
What word could you add to a question to only get arthropods as the
answer?
Excluding groups
“Which animals do NOT have fewer than 5 legs?”
Arthropods
Starter activity
Combining parameters
You can also join terms in a question to get a more focused answer.
If you asked: “Which animals have wings AND are NOT cold-blooded?”
Combining parameters
If you asked: “Which animals have wings AND are NOT warm-blooded?”
Arthropods
Activity 1
There could be billions of web pages that match each possible keyword
that could be searched.
In the same way that you narrowed down the results of animal
searches, you can narrow the number of results found by search
engines.
1
5
Activity 1
Default searches
The default of a search engine is to return results using the AND
operator.
This requires all keywords to be present on any place on the web page
returned as part of the search.
This search engine has found 58.6 million results for Edinburgh AND
castle.
1
6
Activity 1
Controlling searches
Search engines provide operators to help control a search more
carefully:
Controlling a search
You are going to investigate the impact these operators have on the
number of results returned by a search engine.
Once you have all finished, we will compare the number of results you
got and see who has used search terms and operators to the best
effect.
1
8
Activity 2
We know from experience that many web pages are connected together
to form websites.
1
9
Activity 2
Hyperlinks in HTML
Web pages are modified using a tag that marks text or images as
‘clickable’ to link through to a different page.
<a href="RPi4.htm">
<img src="TopView.jpg">
</a>
Text “Find out more” on
page hyperlinked to HTML Image file “TopView.jpg”
file RPi4.htm. hyperlinked to HTML file
RPi4.htm.
Note that the target HTML
file needs to be in the
same folder as the
starting page as you saw
in lesson 2.
<a href="RPi4.htm">Find out more</a> 2
0
Activity 2
You should also create a link on both pages to take you to the other:
<a href="search.htm">Advanced search operators</a>
2
1
Plenary
Plenary
Let’s see if you can remember the impact of different search operators
on the number of search engine results.
Suez canal
Number of results: 21,800,000
2
2
Plenary
Plenary
Will the number of results for the next search be higher or lower?
Suez canal
Number of results: 21,800,000
Suez OR canal
Number of results: ? 2
3
Plenary
Plenary
Higher! What about the next search?
Suez OR canal
Number of results: 1,060,000,000
“Suez canal”
Number of results: ? 2
4
Plenary
Plenary
Lower! What about the next search?
“Suez canal”
Number of results: 6,100,000
suez OR canal -
canal
Number of results: ? 2
5
Plenary
Plenary
Higher! Can you explain why?
suez OR canal -
canal
Number of results: 41,300,000
2
6
Summary
Next lesson
2
7