Buy the workbook
This book comes free with our Web Development Level 1 class
You write HTML and CSS code to create webpages. In this book we’ll introduce you to what HTML and CSS are and how to code. We focus on best practices for structuring the content of your webpages with HTML and then styling the content with CSS. Once you have the basics under your belt, you'll move on to real-world page layout. You’ll learn text and link styles, centered page layout, background images, CSS-based navigation, forms, uploading files via FTP, and much more. We will provide you with all the content and prepared images for use in these projects but this book will essentially give you hands-on practice coding websites from scratch all the way through uploading them to make them live. This course workbook can be completed in any code editor.
Includes Downloadable Class Files (works on Mac & PC)
Setup & Introduction
Downloading the Class Files
- What are HTML & CSS?
- The structure of an HTML tag
- Graphic file formats
- File naming conventions
HTML vs. XHTML Syntax
- Differences between HTML & XHTML syntax
Before You Begin
- Choosing a code editor to work in
- Downloading the latest browsers
- Supported browsers
- Required software
- Recommended software
- Installing packages into Sublime Text to boost functionality
Setting Up: Do This Before Other Exercises!
- Setting up your class files
Coding Basics: Intro to HTML Syntax
- The HTML, head, title, & body tags
- Headings, paragraphs, & lists
- strong & em tags
- The doctype declaration (DTD)
- The lang attribute
- The meta tag & the unicode character set
Coding Links: Absolute & Relative URLs
- Anchor tags & hrefs
- Linking to other websites
- Linking to pages within a website
- Opening a link in a new browser window/tab
- The break tag
- The image tag & source attribute
- Using the width, height, & alt attributes
- Using horizontal rules
Intro to Cascading Style Sheets (CSS)
- The style tag
- Tag selectors
- font-size, font-family, color & line-height properties
- Hexadecimal color codes
CSS Class Selectors
- The class attribute
- CSS class selectors
- The span tag
The Div Tag & Basic Page Formatting
- Creating divisions with the div tag
- Setting a div width
- CSS background-color
- Adding padding inside a div
- Centering content
- CSS borders
- CSS shorthand & the DRY principle
Using Browser Developer Tools
- Opening the DevTools in Chrome
- Editing HTML in the DevTools Elements panel
- Enabling, disabling, & editing CSS in the DevTools
- Using DevTools to fine tune your CSS
HTML5 Semantic Elements
- The outline algorithm
- The header, nav, aside, & footer elements
- Understanding articles and sections
- The main element
- The figure & figcaption elements
Fluid Layout & Max-Width
- Making images fluid
- divs for presentational style
- Assigning IDs to divs
- Assigning max-width to content
- Hexadecimal shorthand
Revolution Travel: Real-World Layout
- Organizing content into semantic sections
- Adding images
- Tagging headings
The Box Model
- What is the box model?
- Setting div width
- Fixing a display issue in Internet Explorer
- Setting page defaults for font styles
- Padding & margin spacing
Floats & Images
- Adding a hero image
- Fluid images
- Floating images
- Class selectors
Coding Links: Images & Page Jumps
- Anchor tags & relative URLs
- Wrapping links around images
- External links (using the target attribute)
- Links within a page
- Styling the anchor tag
- The :link, :visited, :active, and :hover pseudo-classes
- LoVe/HAte: ordering link styles
Styling the Navigation
- Semantically correct navigation
- Overriding default list styles
- CSS navigation styles
- Using descendant selectors
Shared CSS & Centering Content
- Moving embedded styles into an external CSS file
- Sharing styles across a site
- The text-align property
- Centering divs
Setting the Viewport Meta Tag
- The viewport meta tag
HTML & CSS Wireframe
- Stacking sections
- Creating a placeholder style
- Linking to an external stylesheet
- Using DevTools to unpack the box model
CSS Background Images
- CSS background images
Fun with Fonts
- How to use Google Fonts
- Safe fallbacks in the font stack
- Improving line-height and margin for legibility
Hipstirred Layout: Fine Tuning with Box Model
- Removing default page margin
- Setting a max-width
- Outer & inner wrappers
- The difference between ID & class selectors
CSS Buttons & Floats
- Styling semantically correct navigation
- Floats for layout
- Float insert position
- Simple CSS buttons
- CSS border-radius
- Reusing class selectors
Hipstirred: Hi-Res Images
- Retina or HiDPI graphics (@2x images)
- Setting HTML and CSS size to half the image’s native size
- Hardware pixels vs. reference pixels
Uploading to a Live Website via FTP
- What is FTP?
- Using an FTP client & going live
- The form tag
- The input & label elements
- name & ID attributes
- The button element
Submitting Form Data to a Server-Side Script
- Reviewing the PHP script
- Adding a hidden field to point to a landing page
- Setting the form action
- Uploading & testing the form
Spambot Resistant Email Link
- The mailto protocol for email links
- Why you should avoid mailto
Designing Your Own Styles
- Coding CSS
- Tips & ideas
Listing on Search Engines
The Box Model Explained: Padding, Margins, etc.
Links to Reference Websites, Online Tools, & More
Features of Noble Desktop eBooks
- Searchable, with live text that you can copy and paste.
- eBook graphics are in color (printed books are black and white).
- Widely compatible: We provide the most common eBook formats (EPUB, MOBI, & PDF) so you can load them onto the device or app you choose; such as Mac, PC, iPhone, iPad, Kindle, Android, and more.
- Free updates for the edition you buy. When we make major changes to a book (requiring a new edition), an affordable upgrade option will be available.
- DRM-free: Files are subtly watermarked with your name and email, but we do not restrict the devices or apps you can use to view our eBooks.
- Lifetime access to downloads from free your Noble Desktop account.
The Best Way to Enjoy Our Books
Our workbooks are meant to be used while you work on your computer. They typically contain step-by-step exercises that walk you through doing tasks on your computer. An ideal setup would be to have the eBook loaded onto a device (like a tablet/smartphone) or on a second computer monitor, so you can read the book as you work on your computer. You can also print the PDF if you prefer.
Which File Format Is Right for You?
- Ideal for printing.
- An exact match to the printed book. If the text reflow of an EPUB or MOBI file is confusing please refer to the PDF.
- PDF is compatible with most devices, but it’s not optimized for small screens. If using a smaller screen you’ll likely want to use the EPUB or MOBI files.
- The industry standard eBook format which works with all devices, except for the Amazon Kindle. EPUB can be read on Mac, PC, iPhone, iPad, iPod Touch, Nook, Sony Reader, Kobo, Android, and many more.
- Ideal for smaller screens as the layout reflows to fit the current device (at the type size of your choice).
- Amazon’s format for Kindle devices and Kindle app.
- Using an iOS Device such as iPhone & iPad? The Kindle app for Apple iOS devices requires a specialized format which we do not support. While our MOBI will work in the Kindle app, it will not render well on iOS devices. We recommend using the EPUB format with Apple’s iBooks app if reading on an iOS device.
Recommended Reading Apps
- iBooks (EPUB)
Can You Share the eBook or Printouts?
Noble Desktop books are intended for use by you, the owner. They are not intended to be loaned or given to others. The files are subtly watermarked with your name and email, but we do not apply any DRM. You can copy your eBooks to any of your own devices without restriction. You can print the PDF files for your own use, but not to give to others. You cannot sell used eBooks. Ownership is solely yours and cannot be transferred to someone else.
Buying an eBook for Someone Else
- When you buy an eBook for yourself, it will be added into your account. It will be watermarked with your information and is intended for use only by you.
- You can purchase eBooks for someone else, such as a friend or colleague. Schools and training centers can purchase eBooks for their students (be sure to apply for teacher pricing).
- When buying eBooks for someone else, you will receive an eBook voucher code. Send that code to the recipient and they can redeem it. An eBook voucher code can be redeemed once, for the specific book you purchase for them.
- The recipient of the eBook voucher code will need to log into their Noble Desktop account, or create a free account. In their account they will enter the code on their My eBooks page and the eBook will be added immediately into their account.
- The recipient receives all the same benefits of Noble Desktop eBooks, which includes lifetime access to download their eBook, as well as free updates to that edition. When the next edition is released, an affordable upgrade option will be available to them.