Spotting Code by Sight
As a designer, you'll encounter code everywhere — in documentation, handoff tools, and developer conversations. Learn to recognize each language at a glance.
<h2>Title</h2>
<p>Content here</p>
<img src="photo.jpg" />
</div>
Key patterns to spot:
• Angle brackets: < >
• Tag names: div, p, h1, img, a
• Attributes with quotes: class="...", src="..."
• Opening and closing pairs: <div>...</div>
Quick ID: HTML = angle brackets + tag names + attributes
background: #ffffff;
padding: 24px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
Key patterns to spot:
• Selectors starting with . (class) or # (id)
• Curly braces: { }
• Property: value pairs with colons: color: red;
• Semicolons ending each line
• Units: px, rem, %, vh
Quick ID: CSS = selectors + curly braces + property: value;
button.addEventListener('click', () => {
alert('Hello!');
});
Key patterns to spot:
• Keywords: const, let, function, if, return
• Parentheses for functions: querySelector()
• Arrow functions: () => { }
• Dots for method calls: document.querySelector
• Event names: 'click', 'submit'
Quick ID: JS = keywords + function() + dots + arrows
Click
</button>
color: red;
}
'click',fn
)
Quick Recognition Guide:
• HTML: Angle brackets <tag>
• CSS: Curly braces { property: value; }
• JavaScript: Parentheses + keywords function() {}
Pattern: Each language has a unique visual fingerprint
HTML Terms
- Element
- Tag
- Attribute
- Class
- ID
- Semantic
CSS Terms
- Selector
- Property
- Value
- Rule
- Cascade
- Specificity
JS Terms
- Variable
- Function
- Event
- DOM
- Callback
- Promise
When developers mention these terms, you'll know which technology they're discussing. This helps you follow technical conversations and ask the right questions.
Pro tip: Knowing the vocabulary bridges design-dev communication