一本给初学者的HTML+CSS 入门书籍
Preface
What is a Browser?
Who Should Read This Book
What You’ll Learn from This Book
How You’ll Learn to Build Your Website
HTML, Markup, CSS — Welcome to Your First Bits of Jargon!
Building the Example Site
What This Book Won’t Tell You
What’s in This Book
Where to Find Help
The SitePoint Forums
The Book’s Website
The SitePoint Newsletters
The SitePoint Podcast
Your Feedback
Acknowledgements
Conventions Used in This Book
Markup Samples
Tips, Notes, and Warnings
1. Setting Up Shop
The Basic Tools You Need
Windows Basic Tools
Mac OS X Basic Tools
Beyond the Basic Tools
Windows Tools
Mac OS X Tools
Not Just Text, Text, Text
Windows Tools
Mac OS X Tools
Online Tools
Creating a Spot for Your Website
Windows
Mac OS X
Summary
2. Your First Web Pages
Nice to Meet You, HTML
Anatomy of a Web Page
Viewing the Source
Basic Requirements of a Web Page
The Doctype
The html Element
The head Element
The title Element
meta Elements
Other head Elements
The body Element
The Most Basic Web Page in the World
Headings and Document Hierarchy
Paragraphs
For People Who Love Lists
Commenting Your HTML
Symbols
Diving into Our Website
The Home Page: the Starting Point for All Websites
Splitting Up the Page
Linking Between Our New Pages
The blockquote (Who said that?)
The cite Element
strong and em
Taking a Break
Summary
3. Adding Some Style
What is CSS?
Inline Styles
Adding Inline Styles
The span Element
Embedded Styles
Jargon Break
Why Embedded Styles Are Better Than Inline Styles
External stylesheets
Why External Stylesheets Are Better Than Embedded Styles
Creating an External CSS File
Linking CSS to a Web Page
Starting to Build Our Stylesheet
Stylish Headings
A Mixture of New Styles
A New Look in a Flash!
A Beginner’s Palette of Styling Options
Recap: the Style Story so Far
Looking at Elements in Context
Contextual Selectors
Grouping Styles
Which Rule Wins?
Recapping Our Progress
Styling Links
Class Selectors
Styling Partial Text Using span
Summary
4. Shaping Up Using CSS
Block-level Elements versus Inline Elements
Block-level Elements
Inline Elements
Inline Begets Inline
Inline Elements Can Never Contain Block-level Elements
Styling Inline and Block-level Elements
Sizing Up the Blocks
Setting a Width
Setting a Height
Adding Borders to Block-level Elements
Example Borders
Styling Individual Sides of an Element
Shorthand Border Styles
Border Styles You Can Use
Shaping and Sizing Our Diving Site
Adding Padding
Introducing Padding to the Project Site
Margins
The Box Model
Positioning Elements Anywhere You Like!
Showing the Structure
Absolute Positioning
Other Layout Options
More Absolute Positioning
Relative Positioning
Floated Positioning
Styling Lists
Summary
5. Picture This! Using Images on Your Website
Inline Images
Anatomy of the Image Element
Web Accessibility
JPEG versus GIF versus PNG
Transparency
PNG: King of Transparency
Adding an Image Gallery to the Site
Updating the Navigation
Adding the New Gallery Page
Adding the First Image
Formatting the Picture Using CSS
Captioning the Picture
Basic Image Editing
Image Cropping
Special Effects
Resizing Large Images
Other Software
Filling up the Gallery
Sourcing Images for Your Website
Background Images in CSS
Repeated Patterns
Nonrepeating Images
Shorthand Backgrounds
Fixed Heights and Widths
Setting a Background for Our Navigation
Summary
6. Tables: Tools for Organizing Data
What is a Table?
Anatomy of a Table
Styling the Table
Borders, Spacing, and Alignment
Making Your Tables Accessible
Linearization
summary
Captioning Your Table
Adding an Events Table
Stylish Table Cells
Advanced Tables
Merging Table Cells
Advanced Accessibility
Summary
7. Forms: Interacting with Your Audience
Anatomy of a Form
A Simple Form
The Building Blocks of a Form
The form Element
The fieldset and legend Elements
The label Element
The input Element
The select Element
The textarea Element
Submit Buttons
The Default Control Appearance
Building a Contact Page
Editing the Contact Us Page
Adding a form and a fieldset Element
Styling fieldset and legend with CSS
Adding Text Input Controls
Tidying Up label Elements with CSS
Adding a select Element
Adding a textarea Element
Adding Radio Buttons and Checkboxes
Completing the Form: a Submit Button
Processing the Form
Signing Up for Form Processing
Inserting the Form Code
Feedback By Email
Summary
8. Interacting with Social Media
But Facebook is the Internet, right?
Go Where the Audience Is
A Two-pronged Attack: Facebook and Twitter
Setting Up a Facebook Page
Adding a Like Box to Your Site
Let’s Sprinkle on Some Twitter Glitter
Adding Your Twitter Updates to the Site
Getting a Follow Button
Updating from a Twitter Client on Your Smartphone
But the Page Looks Really Messy Now!
Get Twitter to Update Facebook to Update Your Site
Now the Training Wheels Are Off …
Get Smart!
Summary
9. Launching Your Website
The Client—Server Model
Web Hosting Jargon
Hosting Your Website—Finding Server Space
Free Hosting—with a Catch!
Free Hosting—with a Domain Name at Cost
What is Web Forwarding?
The Downsides of Web Forwarding
Paying for Web Hosting
Hosting Essentials
FTP Access to Your Server
Adequate Storage Space
A Reasonable Bandwidth Allowance
Hosting Nice-to-haves
Email Accounts
Server Side Includes (SSIs)
Support for Scripting Languages and Databases
Pre-flight Check: How Do Your Pages Look in Different Browsers?
Uploading Files to Your Server
FTP Settings
Uploading with FileZilla for Windows
Uploading with Cyberduck—Mac OS X
Other Uploading Tools
Where’s Your Site At?
Checking Links
Validating Your Web Pages
Promoting Your Website
Submit Your Website to Search Engines
Tell Your Friends and Colleagues
Craft an Email Signature with Your Website Details
Post on a Related Forum
Link Exchange
Summary
10. Enhancing the Site with HTML5 and CSS3
HTML5: A Brief History
CSS3 —CSS2 —what’s the difference?
CSS3: Not Yet Universally Supported
The Good News on CSS3
Look at All Those Sharp, Pointy Corners!
The Details in the Shadows
From box-shadow to text-shadow
We Don’t Serve Your Type Around Here!
Other CSS3 Features to be Aware of
IE as a Second-class Citizen
Summary
11. Adding Interactivity with jQuery
JavaScript? jQuery? What’s the difference?
Standard JavaScript versus jQuery: A Simple Example
How do I get jQuery and use it?
Hang On a Moment!
jQuery: Primed and Ready For Action
Using jQuery on the Project Site
Setting Up References to jQuery
Adding Default Form Value
Showing the Picture Gallery’s Captions on Hover
Summary
12. What to Do When Things Go Wrong
Prevention
Keep Multiple Browsers Open While Developing
Validate HTML and CSS as You Go
Learn About Known Browser CSS Bugs
Prepare Your Browser for Battle—with Extensions!
Inspecting Problems with Firebug
Web Developer Toolbar
Disable CSS
Disable JavaScript
Outline Elements on the Page
Hide Images or Reveal alt Attributes
View Information about CSS and JavaScript
And So Much More …
How to use XRAY
Summary
13. Pimp My Site: Cool Stuff You Can Add for Free
Getting the Low-down on Your Visitors
Choosing a Statistics Service
Registering a Google Account
Adding the Statistics Code to Your Web Pages
A Search Tool for Your Site
Searching by Genre
Enhancing Search Further with jQuery
Discussion Forums
Summary
14. Where to Now? What You Could Learn Next
Improving Your HTML
The Official Documentation
Other Useful HTML Resources
Advancing Your CSS Knowledge
The Official Documentation
The Ultimate CSS Reference
HTML Dog
CSS3.info
CSS Discussion Lists
The CSS Discuss List’s Companion Site
Learning JavaScript
Becoming a jQuery Guru
Improving Website Performance
Learning Server-side Programming
Scripting Languages in Brief
Learning PHP
Summary
Index
C#PrimerPlusisatutorialbasedintroductiontotheC#languageandimportantpartsofthe.Ne...
《我的最后一本减肥书(畅销增修版)》内容简介:修订版依然定位减肥科普,在前版科学减肥理论的基础上重新整理、完善、增订,用大
《鲁迅散文》内容简介:鲁迅是现代文学史上的旗帜人物,是思想家、文学家,他的创作对中国现当代影响很大。他的作品也一直是当下图
《PyTorch深度学习简明实战》内容简介:本书针对深度学习及开源框架——PyTorch,采用简明的语言进行知识的讲解,注重实战。全书分
《Web开发技术:HTML、CSS、JavaScript》内容简介:本书主要讲解了Web前端开发的相关知识,主要包括HTML、CSS和JavaScript等内容...
《时尚的诞生》以通俗漫画的形式,配以妙趣横生的语言,讲述了26位近现代时尚史上最具代表性的伟大设计师与他们品牌的传奇故事,
《于水山古琴练习曲集》内容简介:这是一本关于古琴演奏方法的教材。其主体由两部分组成:第一部分,是题为“练习曲与古琴弦法、调
《新能源系统储能原理与技术》内容简介:随着可再生能源的不断发展,催生了对于储能设备的需求,新一代储能电池、超级电容器等储能
主板维修技能实训 本书特色 《主板维修技能实训(附光盘)》由专业维修工程师王红军根据多年实践经验精心编写,重点讲解了电脑主板的结构、原理及故障维修诊断方法,主要...
《高新科技知多少》内容简介:本书由重庆市科学技术协会、重庆市科学技术局和重庆市全民科学素质纲要实施工作办公室主编,是一本面
Designersanddevelopers,createsmashingappsforAndroiddevicesIfyouredevelopingappli...
Linux 驱动程序开发实例-第2版 本书特色 Linux设备驱动程序是高级应用程序与硬件设备之间的桥梁。驱动程序开发是软硬件相互结合的技术。本书是一本专门介绍...
《软件产品质量要求和测试细则》内容简介:计算机软件是计算机应用的核心,其质量的好坏关系到计算机应用系统的成败,软件测评是提
《学习Python(第5版)(影印版)(套装共2册)》将让你获得针对核心Python语言的一次全面而又深入的介绍。基于作者MarkLutz的畅销培训
渡边修司Shujiwatanabe日本立命馆大学教授,日本立命馆游戏研究中心运营委员,日本数字游戏学会研究委员,1997年,以《最终幻想7
非常网管WindowsServer2003服务器架设实例详解(修订版) 本书特色 《非常网管:Windows Server 2003服务器架设实例详解(修订版)...
《演讲的逻辑:关键时刻真实、清晰、高效表达》内容简介:《演讲的逻辑:关键时刻真实、清晰、高效表达》是一本实战演讲指南,针对
《HTMLCSSJavaScript网页制作从入门到精通》共分为18章和4个附录,重点介绍使用HTML进行网页制作的方方面面,同时讲解了目前流行
《闭上眼睛才能看清自己》内容简介:慈悲是一种爱,对家人、对朋友、对同事、对尘世间一草一木的爱。本书源于贤宗法师的人生体悟、
《他山之石》内容简介:鲁迅是享誉世界的小说家,但他的经典之作并非无源之水、无本之木。鲁迅明确说过自己“所仰仗的全在先前看过