Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
acdha
on Aug 24, 2016
|
parent
|
context
|
favorite
| on:
A few HTML tips
I would agree with that – it's a convention which the FontAwesome project uses for reasons I haven't looked into (I'm assuming not wanting to type 6 more characters).
I use <span> on all of my projects.
biztos
on Aug 24, 2016
[–]
Yes but shouldn't a <span> also always have content? Am I missing something here?
sophiebits
on Aug 25, 2016
|
parent
[–]
There's nothing that requires it to have content, no. Absent other styles, an empty <span> would be invisible and have no effect though.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I use <span> on all of my projects.