SASS Typography HW
Popcorn Hack: Semantic Refactor
The <style> block and the three custom classes are gone. Meaning comes from the tags (h1, h2, p) and the look comes from ocs_ classes: ocs_section-title for the main heading, ocs_lead for the supporting heading, and ocs_text for the paragraph.
Challenge
Popcorn Hack: swap the divs for real heading and paragraph tags, then add OCS typography classes. Press Run.
Lines: 1
Characters: 0
UI Output
Homework Hack: How to Pat a Cat
- Fake headings become real headings:
<h2>for the title and<h3>for the section headings, going down one level at a time. body-textdivs become<p>paragraphs.- The visually bold
very-importantspan becomes<strong>. - The three hand-numbered lines become one real
<ol>with three<li>items, so the browser does the numbering. - Everything is grouped in an
ocs_card, and the title usesocs_section-title. No<style>block, inline styles, or custom classes.
Challenge
Homework Hack: rebuild the page with semantic HTML tags and OCS typography classes only. Press Run.
Lines: 1
Characters: 0
UI Output