Lesson 4: Searching the web
Year 8 – Developing for the web
Key vocabulary
Starter activity
You probably use them every day, but what parts of a search engine can �you identify?
Visited hyperlink
Search bar
Search term
Unvisited hyperlink
Child pages
Categories
Key vocabulary
Starter activity
You probably use them every day, but what parts of a search engine can �you identify?
Visited hyperlink
Search bar
Search term
Unvisited hyperlink
Child pages
Categories
Lesson 4: Searching the web
Objectives
In this lesson, you will:
4
How do search engines work?
Activity 1
Search engines use keywords to categorise the web pages that they find.
When a user wants to find a useful web page, they enter these keywords and the search engine provides hyperlinks so that the user can access them.
5
Gathering information
Activity 1
Search engines use programs known as crawlers or spiders to find content on the World Wide Web.
These crawlers visit links from one web page to another, recording common keywords that they find.
By travelling along these links, the crawlers can eventually find newly created content.
6
Crawling
Activity 1
7
Crawling
Activity 1
8
Step 1: Source code of page explored for metatags that explain what the page is about
Crawling
Activity 1
9
Step 2: Important keywords are recorded (headings and words near the top of the document are flagged as more important for search results)
Crawling
Activity 1
10
Step 3: Hyperlinks are added to a queue, ready to be visited by the crawler once the search of the page is complete.
Indexing
Activity 1
When crawlers finish their journey, they are stored in a data structure called an index.
The index records the following about each web page:
Other useful information is recorded that may be used later when users run their searches.
11
Crawl and index
Activity 1
12
Needle in a haystack
Activity 2
There are potentially millions of web pages that could be stored in a search engine index that correspond to a single keyword.
Searches query the index database to find pages with those keywords in them.
If you are looking to buy a ladder, why might the web page on the right appear at the top of the search results?
13
Spam
Activity 2
Web designers can use this knowledge to their advantage.
By filling a web page with multiple keywords, they can trick crawlers into thinking a page is more useful than it actually is.
14
Ranking algorithms
Activity 2
Search engine designers create complex algorithms that attempt to rank the importance of web pages, beyond the frequency that keywords appear.
How might ranking algorithms consider the following factors when judging the relevance of a web page?
15
Build a high-quality web page
Activity 2
Considering all that you have learnt, you now need to create a web page that would rank highly at the top of a list of search results.
Your page needs to summarise the how search engines work, including:
Use the ‘What makes a quality web page’ handout to give you some ideas about high-quality designs.
Save your web page as ‘search_engines.html’
16
Plenary
Plenary
Swap seats with the person next to you.
Use the ‘Plenary review criteria’ handout to see if you think their web page has:
17
Next lesson
Summary
18
In this lesson, you...
Explored how search engines find and rank the content of web pages in order to provide more appropriate web pages for searchers
Next lesson, you will...
Consider how users can tailor searches to narrow the results and begin linking web pages you create using hyperlinks