Start Programming Using HTML, CSS, and JavaScript

Book description

This text is a manual for undergraduate students in engineering and the natural sciences to discover how computer programming works. Using a dialog format between two students and a professor, the text teaches students how the mainstream web languages HTML, CSS, and JavaScript interact and how to harness their capabilities in practical settings. Each chapter focuses on a specific theme supported by a gradual development of engaging worked examples of live web documents and applications using the three languages.

Table of contents

  1. Contents
  2. Acknowledgments
  3. Introduction
  4. About the Author
  5. Chapter 1: Content and Structure
    1. 1.1 Opening
    2. 1.2 Introducing HTML
    3. 1.3 The Tools
    4. 1.4 Minimal HTML Document
    5. 1.5 Formatting a Page
    6. 1.6 Homework
  6. Chapter 2: Building a Sound Structure
    1. 2.1 Homework Discussion
    2. 2.2 Lists and Tables
    3. 2.3 Generic and Elements
    4. 2.4 Sectioning Elements
    5. 2.5 Hyperlinks
    6. 2.6 Character Entities
    7. 2.7 Homework
  7. Chapter 3: Presentation
    1. 3.1 Homework Discussion
    2. 3.2 Setting up a Web Server
    3. 3.3 Introducing CSS
    4. 3.4 CSS Values
    5. 3.5 CSS Properties
    6. 3.6 CSS Pixel Unit
    7. 3.7 Homework
  8. Chapter 4: More Control over Style
    1. 4.1 Homework Discussion
    2. 4.2 Class Selectors
    3. 4.3 ID Selectors
    4. 4.4 Grouping Selectors
    5. 4.5 Nesting Selectors
    6. 4.6 The HTML Ancestry Tree
    7. 4.7 Inheritance
    8. 4.8 Determining Style Specificity
    9. 4.9 Relative Sizes
    10. 4.10 Homework
  9. Chapter 5: Understanding CSS Boxes
    1. 5.1 Homework Discussion
    2. 5.2 CSS Box Model
    3. 5.3 Element Display
    4. 5.4 Positioning and Element Flow
    5. 5.5 Containing Block
    6. 5.6 Hiding Elements
    7. 5.7 Floated Elements
    8. 5.8 Special Selectors
    9. 5.9 Homework
  10. Chapter 6: Behavior
    1. 6.1 Homework Discussion
    2. 6.2 Server Side Includes
    3. 6.3 Introducing JavaScript
    4. 6.4 Values and Types
    5. 6.5 Operators and Expressions (1/2)
    6. 6.5 Operators and Expressions (2/2)
    7. 6.6 Concluding Remarks and Homework
  11. Chapter 7: Controlling Program Flow
    1. 7.1 Homework Discussion
    2. 7.2 Statements (1/2)
    3. 7.2 Statements (2/2)
    4. 7.3 Design a Simple Program
    5. 7.4 Type Conversions (1/2)
    6. 7.4 Type Conversions (2/2)
    7. 7.5 Homework
  12. Chapter 8: Introducing Objects
    1. 8.1 Homework Discussion
    2. 8.2 switch Conditional
    3. 8.3 Math Object
    4. 8.4 do/while Loop
    5. 8.5 Date Object (1/2)
    6. 8.5 Date Object (2/2)
    7. 8.6 Concluding Thoughts and Homework
  13. Chapter 9: Understanding Arrays and Strings
    1. 9.1 Homework Discussion
    2. 9.2 Array Object
    3. 9.3 for Loop
    4. 9.4 Array Methods
    5. 9.5 String Object
    6. 9.6 Homework
  14. Chapter 10: Understanding Functions
    1. 10.1 Homework Discussion
    2. 10.2 Writing Function Definitions (1/2)
    3. 10.2 Writing Function Definitions (2/2)
    4. 10.3 References to Function Objects
    5. 10.4 Variable Scope
    6. 10.5 Passing Function Arguments by Reference
    7. 10.6 The Scope Chain and Closures
    8. 10.7 Homework
  15. Chapter 11: Building Your Own Objects
    1. 11.1 Homework Discussion
    2. 11.2 JavaScript Objects Revisited
    3. 11.3 Classes
    4. 11.4 Constructor Overloading
    5. 11.5 Factory Methods
    6. 11.6 The prototype Object
    7. 11.7 More on Setting and Querying Object Properties
    8. 11.8 Sudoku Puzzle Helper (1/2)
    9. 11.8 Sudoku Puzzle Helper (2/2)
    10. 11.9 Homework
  16. Chapter 12: Using JavaScript to Control the Browser
    1. 12.1 Homework Discussion
    2. 12.2 Deeper into the Browser
    3. 12.3 Events
    4. 12.4 Scripting Documents
    5. 12.5 Timer Events
    6. 12.6 Scripting Styles
    7. 12.7 Introducing Forms
    8. 12.8 Homework
  17. Chapter 13: User Interface
    1. 13.1 Homework Discussion
    2. 13.2 Using Family Relations to Manipulate Elements
    3. 13.3 Completing MathWorksheet Generator (1/2)
    4. 13.3 Completing MathWorksheet Generator (2/2)
    5. 13.4 Completing Sudoku Puzzle Helper (1/2)
    6. 13.4 Completing Sudoku Puzzle Helper (2/2)
    7. 13.5 Homework
  18. Appendix A: Solution to the Last Homework: Sudoku Generator (1/2)
  19. Appendix A: Solution to the Last Homework: Sudoku Generator (2/2)
  20. Appendix B: Ways to Continue
    1. B.1 Graphics with Canvas
    2. B.2 Local Data Storage through Web Storage
    3. B.3 Ajax
    4. B.4 jQuery (1/4)
    5. B.4 jQuery (2/4)
    6. B.4 jQuery (3/4)
    7. B.4 jQuery (4/4)
    8. B.5 Go Mobile
  21. Appendix C: HTML Mini Reference
    1. C.1 Root Element
    2. C.2 Document Metadata
    3. C.3 Scripting
    4. C.4 Sections and Structure
    5. C.5 Grouping (1/2)
    6. C.5 Grouping (2/2)
    7. C.6 Text-Level Semantics
    8. C.7 Embedded Content
    9. C.8 Tabular Data
    10. C.9 Forms (1/2)
    11. C.9 Forms (2/2)
    12. C.10 Global Attributes
    13. C.11 Event-Handler Attributes
  22. Appendix D: CSS Mini Reference
    1. D.1 CSS Data Types
    2. D.2 inherit keyword
    3. D.3 Text Properties
    4. D.4 List Properties
    5. D.5 Borders
    6. D.6 Spacing
    7. D.7 Background Properties
    8. D.8 Table Properties
    9. D.9 Size Properties
    10. D.10 Positioning (1/2)
    11. D.10 Positioning (2/2)
    12. D.11 Pseudo-Classes and Pseudo-Elements (1/2)
    13. D.11 Pseudo-Classes and Pseudo-Elements (2/2)
  23. Appendix E: JavaScript Mini Reference
    1. E.1 Operator Precedence and Associativity
    2. E.2 arguments[] (Core JavaScript)
    3. E.3 Array (Core JavaScript)
    4. E.4 Boolean (Core JavaScript)
    5. E.5 console (Client-Side JavaScript)
    6. E.6 Date (Core JavaScript) (1/2)
    7. E.6 Date (Core JavaScript) (2/2)
    8. E.7 document (Client-Side JavaScript)
    9. E.8 Element (Client-Side JavaScript) (1/2)
    10. E.8 Element (Client-Side JavaScript) (2/2)
    11. E.9 Event (Client-Side JavaScript)
    12. E.10 Function (Core JavaScript)
    13. E.11 Global Variables, Functions, and Objects (Core JavaScript)
    14. E.12 Math (Core JavaScript)
    15. E.13 Node (Client-Side JavaScript)
    16. E.14 Number (Core JavaScript)
    17. E.15 Object (Core JavaScript)
    18. E.16 String (Core JavaScript) (1/2)
    19. E.16 String (Core JavaScript) (2/2)
    20. E.17 window (Client-Side JavaScript) (1/2)
    21. E.17 window (Client-Side JavaScript) (2/2)

Product information

  • Title: Start Programming Using HTML, CSS, and JavaScript
  • Author(s): Iztok Fajfar
  • Release date: October 2015
  • Publisher(s): Chapman and Hall/CRC
  • ISBN: 9781498731454