-
Book Overview & Buying
-
Table Of Contents
Practical Web Development
By :
Practical Web Development
By:
Overview of this book
This book is perfect for beginners who want to get started and learn the web development basics, but also offers experienced developers a web development roadmap that will help them to extend their capabilities.
Table of Contents (17 chapters)
Preface
1. The World Wide Web
2. HTML
3. CSS
4. JavaScript
6. PHP and MySQL
7. jQuery
8. Ajax
9. The History API – Not Forgetting Where We Are
10. XML and JSON
12. Mobile First, Responsive Design with Progressive Enhancement
13. Foundation – A Responsive CSS/JavaScript Framework
14. Node.js
A. Bootstrap – An Alternative to Foundation
Index
Drop-down lists
Often we need to have visitors make a choice from a list. For this purpose, we can use the <select> element in combination with the <option> tag for every individual choice. The text portion of the <option> element is what will be displayed, and the value of the value attribute is what will be passed on for processing. It is very useful to make the first option the one that is not to be chosen, as in the following example:
<select name="colorlist" id="colorlist"> <option value="0">Choose a color</option> <option value="red">Red</option> <option value="blue">Blue</option> <option value="green">Green</option> <option disabled value="orange">Orange</option> </select>
The disabled attribute
Both the <select> and the <option> support disabled in case you want to enable an option (or the entire drop-down list) to be displayed but not selectable.
The selected attribute
If you want to...
Change the font size
Change margin width
Change background colour