Download the examples from Web Design in Easy Steps
Sean McManus teaches you what you need to know about creating websites that are both effective and easy to use.
Here, you can find the code examples used in the book. You can open them in your browser and view the source code of them. Alternatively, you can right click on one of the links to save the linked file to your computer.
You're welcome to use the code here in your own websites, but please do not post the example images or text content online. If you do use any of these code examples in your site, please consider leaving a credit for the book in your web page source. Thank you!
To visit the example sites used in screenshots in the book, and find further webmaster tools and tutorials, see the page of links from the book.
Web Design in Easy Steps is available to order from all good book shops.
HTML: The Language of the Web
The HTML chapter teaches you to mark up the structure of information in your web pages using HTML. Here are the examples used in the book:
- Structuring your HTML pages - first basic example, with doctype, head, title, body, h1 and p tags.
- Adding an image
- Adding links - how to add links to other webpages and other websites, and how to use an image as a link
- Basic HTML table example
- Advanced HTML table example - including cells that span multiple rows or columns
- Form elements example
- Bulleted and numbered lists example
- Heading styles example
- Example of plain, unstyled HTML page
CSS: Giving Your Pages Some Style
After you've marked up your content structure using HTML, you can use CSS to change its appearance. The book Web Design in Easy Steps introduces the key concepts of cascading style sheets (CSS) and concludes with some examples of more sophisticated effects and layouts. Below are the examples from the book. So that all the demo code can be in a single easy-to-use file, the style declarations are at the top of the HTML file. As the book explains, it's usually better to use a separate style sheet for them.
- Basic headline style
- Border styles demonstration
- Heading formatted with dotted line above and below
- HTML <div> page structure demo from CSS chapter
- Creating a simple layout: Step 2 - Basic page structure with brightly coloured DIV styles to aid identification
- Creating a simple layout: Step 8 - final layout version showing page layout in bright colours
- Creating a simple layout: Blue/Brown version
- Creating a simple layout: White version
- Styling bulleted and numbered lists
- CSS navbar demo
- z-index demo
- CSS3 techniques
- Click paragraph to trigger a function
- Show, hide and toggle display routines
- Form validation examples
- Time and date demonstrations
- Photo slideshow
- Two quick jQuery examples
Audio, Video and Flash
The book includes a walkthrough showing you how to create a simple Flash animation using Adobe Flash. Above, you can see it in action. I made some modifications to the file that there wasn't room to explain in the book: I used the deco tool to add a few tree branches and a patch of flowers, converted them to symbols and then reused them extensively. That enabled me to bring the file size down dramatically.