Читать книгу CoderDojo: My First Website - Clyde Hatter - Страница 9

Оглавление

3. The code tells a web browser, such as Chrome or Firefox, what is in the webpage. This type of code is known as HTML, which stands for Hypertext Markup Language.

Let’s open the file in our web browser. This time, instead of looking at the code, you’ll see the web page as it is meant to be seen! You can usually do this just by clicking or double-clicking the file – if you’re having trouble, go to http://nano.tips/openfiles

CHANGE IT!

4. Now you have the same file open in your web browser and the code editor. Arrange the windows so that you can see the code editor and the web browser at the same time.

Change the text in the code editor so that it shows the names of you and your friends. Change the name of the band if you like as well. So instead of saying ‘Our names are Holly, Dervla, Daniel and Sam.’ it might say ‘Our names are ‘Anna, Ali, Zeke and Zoe’. To change the text, click in the code editor and type in the new text. Don’t change the tags – the things between the angle brackets such as <h1> and <p> – just change the text between them.

NINJA TIP

When you’re developing a website you’ll need to open the web pages in two different applications:

a plain-text editor or a code editor to write the code for the page

a web browser to see the results

This can be a little confusing at first, but you’ll soon get used to it!

About Us

We are the Nanonauts.

Our names are Holly, Dervla, Daniel and Sam.

CoderDojo: My First Website

Подняться наверх