Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Mark Myers

Rating No ratings yet

The ultimate learn-by-doing approach. Short chapters are paired with free interactive online exercises to teach the fundamentals of HTML and CSS. Written for beginners, useful for experienced developers who want to sharpen their skills. Prepares the reader to code a website of medium complexity. The learner spends two to three times as long practicing as he does reading. Based on cognitive research showing that retention increases 400 percent when learners are challenged to retrieve the information they just read. Explanations are in plain, nontechnical English that people of all backgrounds can readily understand. With ample coding examples and illustrations.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A learn-by-doing introduction to HTML and CSS that pairs very short chapters with free interactive online exercises, built on the idea that you should spend two to three times as long practicing as reading. Best for absolute beginners and self-taught developers who want a structured, retention-focused path to building a medium-complexity website. 【Book Arc】 - **Opening (~0%–10%)**: Establishes the method and the absolute basics — how tags work, why browsers ignore carriage returns, and how to structure a page with paragraphs and headings. Solves the "blank page" problem by getting you writing and saving real HTML immediately. - **Early (~10%–33%)**: Moves into CSS fundamentals (linking stylesheets, fonts, inheritance, classes vs. ids) and then core content elements: images (jpg/gif/png trade-offs, `img src`, paths) and links (`<a href>`, anchors, relative vs. absolute URLs). Builds the vocabulary for styling and connecting pages. - **Middle (~33%–57%)**: Covers navigation and structured content — in-page and cross-page links, link styling with pseudo-classes (`:hover`, `:active`, `:visited`), bullet and numbered lists, and tables (rows, cells, `th` scope, `colspan`/`rowspan`, borders, alignment). This is where pages start to feel like real sites. - **Late (~57% onward)**: Excerpts do not cover the later chapters in detail, but the blurb indicates the book culminates in preparing you to code a website of medium complexity, presumably pulling layout and styling together. 【Key Takeaways】 - **Practice is the engine, not the supplement** (Opening): The book's core premise is that retention jumps dramatically when you retrieve information through exercises rather than reread it. The short chapters exist to feed the practice, not replace it. - **Tags are the fundamental unit of HTML** (Opening): Most tags come in opening/closing pairs, and the browser only knows structure through them — it ignores your line breaks and whitespace. This single insight explains why `<p>` and `<br>` exist. - **CSS inheritance from `<body>` cascades everywhere** (Early): Styling the body element sets defaults for all text, and you override selectively with more specific rules. Understanding this prevents repetitive styling and confusion. - **Classes are reusable, ids are unique** (Early): A class can apply to unlimited elements and an element can carry multiple classes; an id appears only once per page. Choosing correctly is a clarity and maintainability decision, not just syntax. - **Image format choice affects page speed** (Early): jpg for photos, png preferred over gif for quality and smaller file size, gif mainly when animation is needed. Images live as separate files referenced by path, not embedded in the HTML. - **Links are the feature HTML is named for** (Early–Middle): `href` points to a destination, the anchor text is what users click, and `#id` references enable in-page and cross-page jumps. Styling links with `:hover`/`:visited` improves usability but removing underlines risks confusing users. - **Tables require deliberate structure** (Middle): `tr` for rows, `td` for cells, `th` with `scope` for headings, and `colspan`/`rowspan` for merged cells. Borders and alignment are CSS concerns layered on top. - **The author's conventions are a starting point, not a life sentence** (Opening): He explicitly tells readers they'll develop their own style or adopt an organization's stylebook later — the point is to get consistent, working code first. 【Reading Tips】 - **Do the exercises, don't just read**: The entire value proposition collapses if you skip the interactive practice. Budget two to three times your reading time for coding. - **Type the code yourself**: The book repeatedly directs you to revise and save `practice.html` and view it in a browser. Copy-pasting defeats the retrieval practice the method is built on. - **Deep-read the CSS chapters on inheritance, classes, and ids**: These concepts compound — confusion here will make tables, links, and layout harder than they need to be. - **Skim the image-format and table-spanning details on first pass**: They're reference-heavy; return to them when you actually need them in a project. - **Accept the author's formatting conventions temporarily**: He acknowledges they're conventions, not universal law. Follow them while learning, then form your own opinions. 【Coverage Limits】 The excerpts cover roughly the first half to two-thirds of the book in detail (through tables and link styling); later chapters on layout and the capstone medium-complexity website are not represented, so this guide cannot describe their specific content.
Excerpt 1
paragraph tags. <html> <head> <title>Practice</title> </head> <body> <p>Mark Myers</p> <p>That’s my name.</p> </body> </html> Revise your practice.html text...
View in text
Excerpt 2
body> tags, so they are all children of <body>. As the body element’s children, they inherit all the CSS properties of that element. So, for example, if we s...
View in text
Excerpt 3
. In this case the anchor, or link text, is Stack Overflow. href stands for “hypertext reference.” href tells the browser, “Watch for an address immediately...
View in text
Excerpt 4
WayToLearn.com/htmlcss/37.html 39 Styling a lists’s markers Markers are the bullets in an unordered list or the numbers in an ordered list. If you don’t spec...
View in text
Excerpt 5
s. For example, you can write… table { text-align: left } The text in all cells, including <th> cells, will be positioned on the left of the cell. (The text...
View in text
Excerpt 6
arn.com/htmlcss/practice-65-1.html. Sample HTML code is at: http://asmarterwaytolearn.com/htmlcss/practice-65-2.html. Find the interactive coding exercises f...
View in text
Excerpt 7
use of pixels and stick mostly to ems and percentages. Here are the rules of thumb that many developers follow, and that I usually follow in this book. Ems —...
View in text
Excerpt 8
g as possible, but don’t promise more than you can deliver. Search engines cut off a description after about 160 characters. That’s a few more characters tha...
View in text
Tags
AI categories
HTMLCSSJS
ISBN: 150867387X
Publish Year: 2015
Language: English
Pages: 258
File Format: PDF
File Size: 7.6 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…