O'Reilly logo

Raspberry Pi For Dummies by Mike Cook, Sean McManus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Your First Web Page

Now you’re ready to make your first web page! This website is going to be about Sean’s hobby of photography, including a few tips and two of his favorite shots. As you work through this project, you’ll see how to build up the site, starting with content (which will appear onscreen) and then adding the HTML and CSS code to it.

Because web pages are made up of text files, you can create them using the Leafpad text editor you met in Chapter 4. More specialized tools are available (see “Taking It Further” at the end of this chapter), but you can get started immediately with Leafpad, and you can switch to any web design program later on, taking your work with you.

People can visit web pages in any order and might arrive at any page of your site through a search engine. There still needs to be a page that acts as an introduction to the site, explaining its purpose and giving people guidance on exploring it further, however. This called the home page. Each web page has its own address (for example, www.example.com/biography.html ) but if someone doesn’t specify a particular page (by entering just www.example.com ), they’re shown the website’s home page. People know that if they get confused using your website, they can visit the home page to get their bearings again. (By the way, www.example.com is a website that’s set aside by the Internet authorities purely for use in examples just like this.)

Start building your website by creating the HTML file for the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required