How to Create Web Sites and Applications with HTML, CSS, Javascript, PHP and Mysql
Total Page:16
File Type:pdf, Size:1020Kb
How to create Web sites and applications with HTML, CSS, Javascript, PHP and MySQL. By Robert Schifreen This book is free of charge. To get the latest version, see www.the-web-book.com Please do not make copies of the PDF file for others. All downloads must be from www.the-web-book.com We can produce custom versions of this book for other web hosts. Email [email protected] for details. The Small Print. Please Read. This book is free of charge for personal use. You can use it to help you develop sites for yourself or for anyone else. You may not share the PDF file or upload it to online services. If a friend or colleague wants a copy, please ask them to download it from our web site. To distribute copies of this book for commercial purposes, such as a textbook for a school class or a training course, or if you’re an internet service provider and you want to give or sell copies to your customers, you need to buy a licence for each copy that you distribute. See www.the-web-book.com for details. Producing derivative works is forbidden. You may not create your own version of this book, regardless of whether a fee is charged. In addition, you may not create a web site the content of which is wholly or partly based on text extracted from this book. Separate editions of The Web Book are available, featuring examples from different hosting companies and configured for different printer page sizes. Refer to the web site to see the latest offerings. The Web Book is published by Oakworth Business Publishing Ltd. Registered in the UK. Company number 2783266. Telephone 01424 213872 (UK) +44 1424 213872 (International) Edition 2.1 (September 2009). All content copyright © Robert Schifreen To sign up with the web hosting company featured in this book, please visit www.the-web-book.com/hosts.html It costs you just the same, but brings me a small commission that funds the development of this book. Thanks! 2 This book is free of charge. To get the latest version, see www.the-web-book.com Please do not make copies of the PDF file for others. All downloads must be from www.the-web-book.com We can produce custom versions of this book for other web hosts. Email [email protected] for details. Contents Contents........................................................................................................................3 About The Web Book ..................................................................................................... 7 Why We Recommend Hostmonster.com .............................................................................................8 A Custom Edition For Your Company ..................................................................................................8 Who’s Written This Book? And Why?..................................................................................................8 Why We’re Here .................................................................................................................................. 10 From Word Processor to Web Site.......................................................................................................13 But How Long will All This Take?........................................................................................................13 What Is a Web Site Anyway?.........................................................................................14 How the Web Works ............................................................................................................................14 Domain Names.....................................................................................................................................15 The Simple Option .............................................................................................................................. 19 The Flexible Option.............................................................................................................................20 About Web Content............................................................................................................................. 23 Do you need a development server? ................................................................................................... 24 Getting Everything Together........................................................................................ 25 Domain Name and Hosting ......................................................................................... 27 It’s Not Rude to Point.......................................................................................................................... 33 HTML Editor and FTP Client ....................................................................................... 35 Amaya .................................................................................................................................................. 35 Make A Web Work Folder................................................................................................................... 35 Filezilla ................................................................................................................................................ 36 Creating Your First Web Page...................................................................................... 39 Now step away from the computer! ............................................................................. 44 WWW – What, Why, Who? ................................................................................................................ 44 Importing Existing Content ................................................................................................................ 45 Writing For The Web........................................................................................................................... 46 Fonts and Colours ............................................................................................................................... 47 Hyperlinks .................................................................................................................. 48 Linking to Other Sites .........................................................................................................................50 Mailto: Links .......................................................................................................................................50 Understanding The Basics of HTML ............................................................................ 52 Meta tags ............................................................................................................................................. 55 HTML Accessibility, Accuracy and Privacy ........................................................................................56 Validating your HTML ........................................................................................................................ 56 A Bit More about Accessibility ............................................................................................................ 57 Cascading Style Sheets ................................................................................................ 59 About DOCTYPEs................................................................................................................................60 Getting Started with CSS.....................................................................................................................60 A Word About Fonts............................................................................................................................ 67 Classes .................................................................................................................................................69 To sign up with the web hosting company featured in this book, please visit www.the-web-book.com/hosts.html It costs you just the same, but brings me a small commission that funds the development of this book. Thanks! 3 This book is free of charge. To get the latest version, see www.the-web-book.com Please do not make copies of the PDF file for others. All downloads must be from www.the-web-book.com We can produce custom versions of this book for other web hosts. Email [email protected] for details. Making Styles Work For You .............................................................................................................. 70 HTML Tags Names.............................................................................................................................. 70 A Better CSS Editor ..............................................................................................................................71 ID-based Styles.................................................................................................................................... 74 Extreme CSS........................................................................................................................................ 75 Page Layouts and Div Tags .......................................................................................... 78 The CSS Box Model .............................................................................................................................83 Pictures On Pages........................................................................................................ 84 About Image Sizes ..............................................................................................................................