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

Оглавление

<ABOUT US>

EDITING YOUR FIRST WEB PAGE

So, let’s get going! This is the code for a simple web page:

1. Type this code into a simple plain-text editor such as Notepad (Windows), GEdit (Ubuntu) or in a code editor such as Brackets, Notepad++ or Atom. If you’re not sure how to do this go to http://nano.tips/ texteditors

<!DOCTYPE html> <html> <head> <title>About Us</title> </head> <body> <h1>About Us</h1> <p>We are the Nanonauts.</p> <p>Our names are Holly, Dervla, Daniel and Sam.</p> </body> </html>

NINJA TIP

Don’t try to edit your pages in a word processor such as Microsoft Word or LibreOffice.

2. Next, make a folder on your computer called nanonauts and save the code as a file called about-us.html.

about-us.html is the file name of the web page. The .html bit is called the file extension. This tells the various programs of your computer that about-us.html is a web page.

Sometimes file extensions get hidden in Windows so that you only see about-us rather than about-us.html. This can be confusing so make sure that they are visible – if you’re not sure how to do this, go to http://nano.tips/findfiles

nanonauts

about-us.html

NINJA TIP

CoderDojo: My First Website

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