Created
December 6, 2013 07:31
-
-
Save coodoo/7819934 to your computer and use it in GitHub Desktop.
Which of these two markups do you prefer working with?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- A - semantic via class names --> | |
<div class="event"> | |
<div class="label"> | |
<i class="circular pencil icon"></i> | |
</div> | |
<div class="content"> | |
<div class="date"> | |
3 days ago | |
</div> | |
<div class="summary"> | |
You submitted a new post to the page | |
</div> | |
<div class="extra text"> | |
I am a dog and I do not know how to make a post | |
</div> | |
</div> | |
</div> | |
<!-- B - semantic via element/types --> | |
<event> | |
<label> | |
<icon class="circular pencil icon"></icon> | |
</label> | |
<content> | |
<date> | |
3 days ago | |
</date> | |
<summary> | |
You submitted a new post to the page | |
</summary> | |
<extra-text> | |
I am a dog and I do not know how to make a post | |
</extra-text> | |
</content> | |
</event> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment