万本电子书0元读

万本电子书0元读

顶部广告

Practical Web Development电子书

售       价:¥

15人正在读 | 0人评论 9.8

作       者:Paul Wellens

出  版  社:Packt Publishing

出版时间:2015-07-30

字       数:373.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Practical Web Development

Table of Contents

Practical Web Development

Credits

About the Author

Acknowledgments

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. The World Wide Web

World Wide Web

The Internet

HTTP and HTML

HTML

HTTP

The World Wide Web Consortium (W3C)

Mosaic

The first browser

Netscape

Internet Explorer

The explosion of the Web

Amazon.com and e-commerce

Google and Yahoo!

Social networking

Web development

HTML

HTML editors and other tools

Browsers and web servers

CSS

JavaScript

PHP

Data

Summary

2. HTML

HTML versions

Semantic and presentational HTML

The structure and syntax of an HTML document

Doctype

<html>

<head>

<body>

Syntax for tags or elements inside the document

HTML comments

Links

The <a> tag and attributes

The href attribute

The <a> name attribute

The <a> target attribute

Classic document elements

<h1>, <h2>, <h3>, … <h6> – headings

<p> – paragraph

<span> – span

Lists

Images

<img> element and attributes

Image width and height

Input forms

Form elements

Form attributes

The label attribute

Input attributes

The name attribute

The value attribute

The checked attribute

The readonly attribute

Textarea

Drop-down lists

The disabled attribute

The selected attribute

Tables

Table elements

<table>

<thead> <tbody>

<tr>

<th> <td>

Table attributes

colspan (td)

rowspan (td)

<div>, the "uebertag"

HTML entities

HTML5-specific tags

Summary

3. CSS

Adding styles to our documents

External style sheets

Internal CSS

Inline styles

The Document Object Model (DOM)

Selectors

Multiple classes

Descendants

Selecting children or siblings

Specificity

Block elements and inline elements

Colors

Fonts

So what are fonts?

Font families

Serif fonts

Sans-serif fonts

Monospace fonts

The font-family property

Font-weight and font-style

Font-size

Line-height

The box model

Padding

Border

Margin

Collapsing margins

Positioning

Float

position:relative

position:absolute

Styling lists

list-style-type

list-style-image

list-style-position

Styling anchors – pseudo-classes

Firebug

Summary

4. JavaScript

Programming 101

Compiled and interpreted languages compared

JavaScript is not the same as Java

Java

JavaScript

Our first JavaScript program

Variables

Variable declarations

Values of variables

Numbers

Strings

Converting strings to numbers

Expressions and operators

Arithmetic operators

Addition(+)

Subtraction (-)

Multiplication (*)

Division (/)

Modulo (%)

Relational operators

Control flow

if

while

switch

Functions

Scope of variables

Objects

JSON

DOM objects, properties, methods, and events

The Window object

The Document object

write and writeln methods

Nodes and DOM traversing

Events

Summary

5. PHP

Introduction to PHP

Our first real PHP program

PHP and web hosting

Web hosting 101

Domain name

Web hosting companies

Server-side setup

Additional server-side services

PHP development environment

PHP as a web development language

Variables, values, operators, and expressions

Scope of variables

Local variables

Global variables

Static variables

String operators

To double quote or to single quote, that is the question

Control flow

Functions

String functions

strpos()

strlen()

substr()

Date functions

time()

date()

strtotime()

Arrays

Numeric arrays or indexed arrays

Associative arrays

Cool control statements for associative arrays

Sending data back to the server – forms

POST or GET, what should we get?

$_POST and $_GET arrays

Files

include, require, and require_once

Regular files

File functions or f-functions

fopen

file_exists(), is_file(), and is_dir()

fread and fwrite

One line at a time – fgets()

The printf family

Syntax of printf family of functions

Summary

6. PHP and MySQL

Databases

Relational databases

SQL

MySQL

phpMyAdmin

Creating databases

Creating and managing users

Creating and managing database tables

MySQLi in PHP

Connecting to the database

Our first SQL query, really!

Writing a MySQL query in PHP

Fetching the result

Obtaining data from more than one table

Adding data

Updating data

Summary

7. jQuery

Obtaining the jQuery library

Where to place the jQuery library on your page?

jQuery UI and jQuery Mobile

Using jQuery selectors and methods

html()

text()

attr()

.val()

show() and hide()

.find()

.parent()

.next()

.css()

jQuery documentation

Event handlers and jQuery

preventDefault()

$(this)

updateNewsContent()

Summary

8. Ajax

XMLHttpRequest

Ajax and jQuery

jQuery Ajax methods

$.load() method

$.post()

$.ajax()

Summary

9. The History API – Not Forgetting Where We Are

The problem we are trying to solve

The self-service restaurant

HTML5 History API and the history object

pushState()

popstate event

popstate and different browsers

The History plugin

Bookmarking

Summary

10. XML and JSON

XML

XML format

Displaying XML files

XML editors

XML Schema

SimpleXML

The XML file

The XML Schema file

The CSS file

The PHP file

Creating XML files with SimpleXML

Generating our HTML on the client side

XSLT

JSON

JSON syntax

JSON values

JSON objects

JSON strings

JSON arrays

JSON numbers

JSON and PHP

JSON with Ajax and jQuery

Two useful JSON methods

Summary

11. MongoDB

Relational database management systems

NoSQL databases

MongoDB

Installing MongoDB

The MongoDB shell

Creating databases, collections, and documents

_id and ObjectIds

Loading scripts

Removing documents

Updating documents

MongoDB data types

Basic data types

Dates

Embedded documents

One more example

MongoDB and PHP

Getting our gallery data

CRUD operations with MongoDB and PHP

Insert documents

Update documents

Queries with conditions

MongoDB cursor object

Summary

12. Mobile First, Responsive Design with Progressive Enhancement

Responsive design

Déjà vu

Media queries

Using the media attribute

Do more with less

Mobile first

Why mobile first?

We have come a long way

Mobile devices have newer capabilities

Mobile devices are not only used while on the road

Content first, navigation next

Small means big

Mobile input

Mobile first recap

Progressive enhancement

EnhanceJS

enhance.js

loadStyles and loadScripts

enhanced and FOUC

Modernizr

The Modernizr object

Polyfills and Modernizr

yepnope.js or Modernizr.load

Summary

13. Foundation – A Responsive CSS/JavaScript Framework

Our responsive toolkit – Foundation

Foundation components

The grid system

Class end

Visibility classes

The block grid system

Useful UI elements

Thumbnails – for simple galleries

Reveal modals – your better pop-up

Dropdowns

Example – a simple photo gallery

Accordions

Awesome Font awesome

Equalizer – the hardest thing to do with two <div>s made easy

Navigation

Top bar – not just your regular menu bar

Adding more magic

Yet more magic – off-canvas, the coolest thing

Summary

14. Node.js

Node.js

Installing node.js

npm

node

Adding HTML

Serving up static content

A tale of two (JavaScript) cities

node.js and MongoDB

Déjà vu … once more

Express

Installing Express

Our first Express app

An example with middleware

Templating and handlebars.js

Creating a layout

Our last Hello, World example

Summary

A. Bootstrap – An Alternative to Foundation

Bootstrap components

The Bootstrap grid system

Visibility classes

Buttons

Other UI elements

Thumbnails

Dropdowns

Modal – the Bootstrap popup

Combining dropdowns and modals

Collapse – an accordion for Bootstrap

Navigation

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部