$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
HTML
Search
Ryan Krug
January 18, 2012
Programming
10
590
HTML
Using semantic markup
Ryan Krug
January 18, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
CSC509 Lecture 14
javiergs
PRO
0
220
dnx で実行できるコマンド、作ってみました
tomohisa
0
130
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
190
[堅牢.py #1] テストを書かない研究者に送る、最初にテストを書く実験コード入門 / Let's start your ML project by writing tests
shunk031
11
6.9k
ローターアクトEクラブ アメリカンナイト:川端 柚菜 氏(Japan O.K. ローターアクトEクラブ 会長):2720 Japan O.K. ロータリーEクラブ2025年12月1日卓話
2720japanoke
0
440
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
1
1.4k
WebRTC、 綺麗に見るか滑らかに見るか
sublimer
1
140
AIコーディングエージェント(Gemini)
kondai24
0
150
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
390
配送計画の均等化機能を提供する取り組みについて(⽩⾦鉱業 Meetup Vol.21@六本⽊(数理最適化編))
izu_nori
0
120
TypeScript 5.9 で使えるようになった import defer でパフォーマンス最適化を実現する
bicstone
1
1k
無秩序からの脱却 / Emergence from chaos
nrslib
2
12k
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
9.6k
A Modern Web Designer's Workflow
chriscoyier
697
190k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
For a Future-Friendly Web
brad_frost
180
10k
Typedesign – Prime Four
hannesfritz
42
2.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
690
KATA
mclloyd
PRO
32
15k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Automating Front-end Workflow
addyosmani
1371
200k
Transcript
HTML Using semantic markup
What are we here for?
User Interfaces Content Presentation Behavior
User Interfaces Content: HTML Presentation: CSS Behavior: Javascript
1996 2002 2005 html css javascript
Why? Accessible Portable Maintainable
Why? Accessible: SEO Portable: Different Devices Maintainable: Client Edits
http://foodsense.is/ Example
HTML defines content & structure
HTML is not a programming language But it is a
formatting language
Content informs the formatting. Based on meaning rather than look.
<em>text</em> vs <i>text</i> <strong>text</strong> vs <b>text</b>
Bad Tags b bold text big makes text slightly larger
center centers text font specifies size, color, and typeface i italic text small makes text slightly smaller strike strike-through text u underline text
HTML first > Semantic markup CSS After > Presentation
HTML Boilerplate <!doctype html> <html> <head> <title>My Title</title> </head> <body>
<!-- content here --> </body> </html>
<tagname attribute=“value”> content </tagname> <p class=“demotext”> I’m <em>really</em> sad </p>
Content Tags
<tagname attribute=“value”> <img src=“smile.png”> Empty Content Tags
Tags Headings h1,h2,h3,h4,h5,h6 Paragraphs p Quotes blockquote Lists ol,ul,li,dl,dt,dd Tables
table,tr,th,td Forms form,label,input,textarea,select Text em,strong Images img Links a
Special Characters & & < < > > © ©
® ® ™ ™ – – — — … … ‘ ‘ ’ ’ “ “ ” ”
Demo http://github.com/krug/art304.demos