8CS5 - 8.4.1 - Developing for the web

1 / 25
suivant
Slide 1: Diapositive
ComputingLower Secondary (Key Stage 3)

Cette leçon contient 25 diapositives, avec quiz interactifs et diapositives de texte.

time-iconLa durée de la leçon est: 60 min

Éléments de cette leçon

Slide 1 - Diapositive

Cet élément n'a pas d'instructions

8.4 - Developing for the web
8.4.1 - Website building blocks 


8CS5

Slide 2 - Diapositive

Cet élément n'a pas d'instructions

Do Now - Dingbats

Slide 3 - Diapositive

Cet élément n'a pas d'instructions


Slide 4 - Question ouverte

Cet élément n'a pas d'instructions

Think, pair, share
What would make the walls of this house more interesting to look at?


How many bricks do you estimate would be needed to build a whole house?

If you wanted to add a stencil motif to each brick, and each one took 2 minutes to do, how long would it take?


Slide 5 - Diapositive

Cet élément n'a pas d'instructions

Think, pair, share
39 Bricks x 2 


78 minutes to paint all the bricks


Slide 6 - Diapositive

Cet élément n'a pas d'instructions

Think, pair, share
Changing the appearance of each individual element will take a significant amount of time. 

In computing, we should look to ways to automate repeated common tasks to help us reach solutions to problems more quickly.



Slide 7 - Diapositive

Cet élément n'a pas d'instructions

HTML
HTML stands for Hypertext Markup Language.


At the most basic level, a webpage is a plain text file.

You can think of HTML coding the ‘bricks’ of the website that provide the structure to organise the text and images of web pages.



Slide 8 - Diapositive

Cet élément n'a pas d'instructions

HTML
Each of these building blocks are identified with pairs of tags; one to mark the start of the block, one to identify the end.





Slide 9 - Diapositive

Cet élément n'a pas d'instructions

HTML examples





Note: Any text not enclosed by a tag is just presented as plain text.


<h1>Developing for the Web</h1> 
Developing for the Web
<em>Using HTML and CSS</em>
Using HTML and CSS
Building <b>web pages</b>  
Building web pages

Slide 10 - Diapositive

Cet élément n'a pas d'instructions

Making our first web page





Let's have a quick look at CodePen.io








Slide 11 - Diapositive

Cet élément n'a pas d'instructions

TASK - Make a web page

Use <p></p> to break up the text into paragraphs to make it easier to read.

Try some of the following tags to improve the appearance of the page:




Using this link: CodePen.io
<b></b>
<em></em>
<q></q>
<center></center>


<ul>
<li>This is a bullet list with each item enclosed in</li>
<li></li>
</ul> 

Slide 12 - Diapositive

5 Minutes
Use WIN + SHIFT + S to take a screenshot of your code and webpage

Slide 13 - Question ouverte

39 x 2 = 78 minutes
changing the appearance of each individual element will take a significant amount of time. In computing, we should look to ways to automate repeated common tasks to help us reach solutions to problems more quickly.

Changing appearances
Formatted text is all well and good, but wouldn’t it look better in colour?


Here, the web page looks no different to a page in a book.

Slide 14 - Diapositive

Cet élément n'a pas d'instructions

Inline formatting
You can make websites look nice directly in the HTML.

But you have to do this for each individual piece of text you want to change the look of.

<h2 style="color:red;">Title</h2>
Some arbitrary text.
<h2 style="color:green;">Another title</h2>
Some more arbitrary text.

Note how colour is spelt. Do you know why?

Slide 15 - Diapositive

Cet élément n'a pas d'instructions

Inline formatting
You can make websites look nice directly in the HTML.

But you have to do this for each individual piece of text you want to change the look of.

Drag the code on the left to what you think it will look like on the right.
<h2 style="color:red;">Title</h2>


<h2 style="color:green;">Another title</h2>

Some more arbitrary text.

Some arbitrary text.

Slide 16 - Question de remorquage

Cet élément n'a pas d'instructions

TASK - Style it up!







Using this link: CodePen.io

Change the first <h1> tag so that it displays red text that is centred:
<h1 style="color:red;text-align:center;">

Try other style modifiers to format your page so it is like the example shown:
- font-family:[name of font e.g. verdana]
- font-size:[size in pixels e.g. 25px]
- border:[thickness, line style and colour e.g. 1px solid blue]
- background:[colour e.g. blue]








Slide 17 - Diapositive

5 mins
Use WIN + SHIFT + S to take a screenshot of your code and webpage

Slide 18 - Question ouverte

39 x 2 = 78 minutes
changing the appearance of each individual element will take a significant amount of time. In computing, we should look to ways to automate repeated common tasks to help us reach solutions to problems more quickly.


Slide 19 - Question ouverte

Cet élément n'a pas d'instructions

What are used to provide structure in a HTML document?

Slide 20 - Question ouverte

Cet élément n'a pas d'instructions

What will the following line of HTML display?


Using <em><b>HTML</b></em> to format web pages

Slide 21 - Diapositive

Cet élément n'a pas d'instructions

Using HTML to format web pages

Slide 22 - Diapositive

Cet élément n'a pas d'instructions

HTML is?
A
Hypertext Markup Language is a standard markup language for creating web pages and web applications.
B
HTML stands for Hypermedia Text Management Language, which is essential for building websites and structuring content.
C
Humanized Text Manipulation Language is a coding language crucial for web development and content organization.
D
HTML, or Hyperlink and Textual Markup Language, is the foundation for designing and structuring content on the internet.

Slide 23 - Quiz

Cet élément n'a pas d'instructions


Slide 24 - Question ouverte

Cet élément n'a pas d'instructions


Slide 25 - Question ouverte

Cet élément n'a pas d'instructions