SlideShare a Scribd company logo
learning to love html
(for grumpy developers)


                  @jongalloway
hi!
http://weblogs.asp.net/jgalloway
why?
  falling in love
     the honeymoon
marriage counseling
why?
lessons from javascript
falling in love
what does a document offer?
    structured content
    not design
    not logic
why?
it’s what we share
      with designers
      with our users
the only code you write that the world sees
falling in love
avoiding the cheap floozy
code smells
    difficult to maintain
    trapped
    supporting browsers (and versions)
    reliance on grids / frameworks / tools
falling in love
love it for what it is…
     a document format
falling in love
document vs. application
     tools
     developers
but you deliver documents
true love

♥ html
the honeymoon
joy!
clean code (occupy your codebase!)
the honeymoon
joy!

clean code is flexible
     (story time)
learning to love html and css
learning to love html and css
learning to love html and css
the honeymoon
joy!


adaptive layout
the honeymoon
joy!


seo: a structured document is machine readable
the honeymoon
clear communication

semantic markup is easier, cleaner
    asp.net templates
the honeymoon

selectors get so easy!
     css
     jquery
     testing

$('section.mentions header img').hide()
marriage counseling
marriage counseling
your html as an api
     separation of concerns
     smoothly factored pieces agree
marriage counseling
browsers
stop fixating on browsers
      you are not your browser
      your browser doesn’t matter to users
      land of a thousand browsers
common ground
      resets? okay…
      normalize is better!
      http://necolas.github.com/normalize.css/
marriage counseling
progressive enhancement


build for your main use case
           enhance using feature detection
marriage counseling
progressive enhancement

shim for downlevel
     modernizr
     conditional comments
     content fallback
marrige counseling
… let’s talk ie


   quirks mode! (watch doctype)
marrige counseling
… let’s talk ie


developer tools
    document mode (rendering)
    browser mode (requesting)
marriage counseling
pixel hell

users don’t count pixels
marriage counseling
pixel hell

avoiding pixel hell
     get there first
     get out of mockup mode
     photoshop is not a web standard
marriage counseling
positioning and layout

floats
     http://css.maxdesign.com.au/floatutorial/
marriage counseling
positioning and layout

floats
     float one way
marriage counseling
positioning and layout
padding / margins
     use developer tools
     use page inspector
marriage counseling
focus on a structured document
start with an outline – like writing
keep things structured
refactor (?!)
learning to love html
(for grumpy developers)


                  @jongalloway

More Related Content

PPTX
Writing Scalable and Maintainable CSS
ODP
Worry free web development
PPTX
Twitter bootstrap tutorial
PPT
√ Web designing company in mumbai
PPT
Website designing company in delhi
PDF
Module 1 Web design & Development Lexington Minuteman
PPTX
Adding value as a technical communicator #CONDUIT2019
Writing Scalable and Maintainable CSS
Worry free web development
Twitter bootstrap tutorial
√ Web designing company in mumbai
Website designing company in delhi
Module 1 Web design & Development Lexington Minuteman
Adding value as a technical communicator #CONDUIT2019

Viewers also liked (7)

PPS
Attitude
PPTX
Beatriz compri
PPTX
Azure - The Next Frontier
PPTX
Pragmatic JavaScript (DevConnections 2011)
DOCX
Profecciones
PPTX
SoCal Code Camp 2011 - ASP.NET 4.5
PPT
Premii Speciale Gala Nationala 2011
Attitude
Beatriz compri
Azure - The Next Frontier
Pragmatic JavaScript (DevConnections 2011)
Profecciones
SoCal Code Camp 2011 - ASP.NET 4.5
Premii Speciale Gala Nationala 2011
Ad

Similar to learning to love html and css (20)

PDF
HTML CSS Best Practices
KEY
HTML5: A brave new world of markup
PDF
HTML5 and CSS 3
PDF
Front end development best practices
PPT
Html & CSS - Best practices 2-hour-workshop
PDF
Finding harmony in web development
PPTX
Cross Browser Issues - few solutions inspired by smashing magazine
PDF
Is everything we used to do wrong?
PDF
HTML standards
PDF
New Perspectives on HTML5 CSS3 JavaScript 6th Edition Carey Solutions Manual
KEY
HTML CSS & Javascript
PPTX
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
KEY
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
PDF
PPTX
Building Webs Better
PDF
New Perspectives on HTML5 CSS3 JavaScript 6th Edition Carey Solutions Manual
PPTX
HTML Bootcamp
PPTX
Introduction to HTML5 and CSS3 (revised)
PDF
Html5 deciphered - designing concepts part 1
PDF
Htmlcs spresentation
HTML CSS Best Practices
HTML5: A brave new world of markup
HTML5 and CSS 3
Front end development best practices
Html & CSS - Best practices 2-hour-workshop
Finding harmony in web development
Cross Browser Issues - few solutions inspired by smashing magazine
Is everything we used to do wrong?
HTML standards
New Perspectives on HTML5 CSS3 JavaScript 6th Edition Carey Solutions Manual
HTML CSS & Javascript
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Building Webs Better
New Perspectives on HTML5 CSS3 JavaScript 6th Edition Carey Solutions Manual
HTML Bootcamp
Introduction to HTML5 and CSS3 (revised)
Html5 deciphered - designing concepts part 1
Htmlcs spresentation
Ad

More from Jon Galloway (11)

PPTX
What's new in Visual Studio for Mac for .NET Developers
PPTX
.NET Core Today and Tomorrow
PPTX
ASP.NET Core 3.0 Deep Dive
PPTX
What you need to know about .NET Core 3.0 and beyond
PPTX
Techorama 2019 - ASP.NET Core One Hour Makeover
PDF
Whats New in ASP.NET Core
PPTX
.NET Core Previews - New Features in .NET Core and ASP.NET Core 2.1, Blazor a...
PPTX
Keynote: Hijacking Boring Sounding Things Like Foundations and Maturity Model...
PPTX
What's New in ASP.NET Core 2.0
PPTX
[NDC Oslo 2017] Open Source Software Foundations: Not Totally Boring, Actuall...
PPTX
SoCal Code Camp 2011 - ASP.NET MVC 4
What's new in Visual Studio for Mac for .NET Developers
.NET Core Today and Tomorrow
ASP.NET Core 3.0 Deep Dive
What you need to know about .NET Core 3.0 and beyond
Techorama 2019 - ASP.NET Core One Hour Makeover
Whats New in ASP.NET Core
.NET Core Previews - New Features in .NET Core and ASP.NET Core 2.1, Blazor a...
Keynote: Hijacking Boring Sounding Things Like Foundations and Maturity Model...
What's New in ASP.NET Core 2.0
[NDC Oslo 2017] Open Source Software Foundations: Not Totally Boring, Actuall...
SoCal Code Camp 2011 - ASP.NET MVC 4

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
cuic standard and advanced reporting.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Approach and Philosophy of On baking technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
cuic standard and advanced reporting.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Network Security Unit 5.pdf for BCA BBA.
20250228 LYD VKU AI Blended-Learning.pptx
Machine learning based COVID-19 study performance prediction
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Monthly Chronicles - July 2025
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Approach and Philosophy of On baking technology
Advanced methodologies resolving dimensionality complications for autism neur...

learning to love html and css