Skip to main content

Class 7 (Grade 7) ยท Computer Science

Web Design Basics: Class 7 Computer Science

How a browser turns HTML into a web page, the common tags and attributes, a first look at CSS, and the habits that make a page easy to read and use.

  • Lesson
  • 6 quizzes
  • Worksheet PDF

A step-by-step lesson, 6 self-marking quizzes and a printable worksheet, all on Web Design Basics for Class 7.

Web Design Basics: the short answer

A web page is a file of instructions, written in a language called HTML (HyperText Markup Language). A browser such as Chrome, Firefox or Safari reads those instructions and draws the page for you.

Learn it: the lesson

Web Design Basics8 steps ยท one idea at a time ยท quick check at the endStart the lesson โ†’
What the lesson covers8 steps ยท tap to see
  1. 1How a browser shows a page

    A web page is a file of instructions, written in a language called HTML (HyperText Markup Language).

    Learn this in the lesson โ†’
  2. 2The skeleton of an HTML page

    HTML is made of tags. Most tags come in pairs: an opening tag such as <p> and a closing tag with a slash, </p>.

    Learn this in the lesson โ†’
  3. 3The common tags

    <ul> <li>Apples</li> <li>Oranges</li></ul> Use one <h1> for the main heading of the page, then <h2> for sections under it.

    Learn this in the lesson โ†’
  4. 4Attributes: href, src and alt

    An attribute gives a tag extra information.

    Learn this in the lesson โ†’
  5. 5A first taste of CSS

    HTML says what is on the page.

    Learn this in the lesson โ†’
  6. 6Good design: easy to read and use

    A page that looks clever but is hard to read has failed.

    Learn this in the lesson โ†’
  7. 7Plan first: the wireframe

    Before writing any code, designers sketch a wireframe, a simple drawing that shows where each part of the page will go.

    Learn this in the lesson โ†’
  8. 8Building a small page, step by step

    Here is how to build a page for a school science club.

    Learn this in the lesson โ†’
  9. Quick check: see what you remember

Web Design Basics: Class 7 Computer Science notes

How a browser shows a page

A web page is a file of instructions, written in a language called HTML (HyperText Markup Language). A browser such as Chrome, Firefox or Safari reads those instructions and draws the page for you.

When you type an address, the browser asks a web server for the page. The server sends back the HTML file. The browser reads it, fetches any images and style files it mentions, and shows the finished page.

The skeleton of an HTML page

HTML is made of tags. Most tags come in pairs: an opening tag such as <p> and a closing tag with a slash, </p>. The text between them is the content. Tags sit inside other tags, like boxes inside boxes.

<!DOCTYPE html><html><head>  <title>My page</title></head><body>  <h1>Hello</h1>  <p>Welcome to my page.</p></body></html>

The <head> holds information about the page, such as the title shown in the browser tab. The <body> holds everything you actually see.

Key facts

  • A browser reads HTML from a server and draws the page.
  • A page has a head and a body. Tags come in pairs: h1 to h6, p, a, img, ul, ol and li.
  • Attributes go in the opening tag: href for a link, src for an image, alt for its description.
  • CSS rules have a selector, a property and a value.
  • Good pages have readable text, strong contrast, alt text and clear, consistent navigation. Plan with a wireframe first.

Web Design Basics MCQs with answers

Tap an answer to check it.

  1. Which language builds the structure of a web page?

    Answer: A. HTML HTML (HyperText Markup Language) marks up the headings, paragraphs and links that form a page's structure.

  2. What is an attribute?

    Answer: C. Extra information inside a tag, such as href or src An attribute sits inside the opening tag and gives extra detail, for example href for a link address or src for an image.

  3. What is alt text for?

    Answer: B. It describes a picture for screen readers and when the picture cannot load Alt text is read aloud by screen readers and shown in place of an image that fails to load.

  4. What does the web server send back when your browser asks for a page?

    Answer: A. The HTML for the page, with files such as pictures and CSS The server returns the page's HTML plus the linked files such as images and CSS, which the browser puts together to display it.

More questions in the 6 quizzes below โ†“ ยท All Class 7 Computer Science MCQs with answers โ†’

Practise real quizzes on this topic: 6 quizzes

Each quiz marks itself the moment it is finished and explains every answer. Start easy and work up.

๐Ÿ–จ๏ธWeb Design BasicsHTML tags, attributes and links, then a little CSS. Pupils name the tag for a heading, paragraph, link, image and list, read and write a link and an image tag, spot a mismatched tag, write a CSS rule and say what makes a page easy to read. Fifteen questions.See the worksheet โ†’

โฌ‡ Download free PDFFree sample copy with a light QuizByt mark. A free account gives you more.