Skip to content

Instantly share code, notes, and snippets.

@Aslan11
Created March 23, 2016 18:35
Show Gist options
  • Save Aslan11/460424ba1282300f01b2 to your computer and use it in GitHub Desktop.
Save Aslan11/460424ba1282300f01b2 to your computer and use it in GitHub Desktop.
How to break up long HTML tags
We need to keep our line length to a maximum of 120 characters for HTML Styling.
The following serves as an example as to how to properly break up a long running tag.
BEFORE:
<a id="iob-account-details-active-ios-tab" ng-class="{'active': activeTab == 'active'}" ng-click="activeTab = 'active'">Active IOs <span id="iob-account-details-active-ios-badge" class="badge" ng-if="activeIOs.length > 0">{{activeIOs.length}}</span></a>
AFTER:
<a
id="iob-account-details-active-ios-tab"
ng-class="{'active': activeTab == 'active'}"
ng-click="activeTab = 'active'">
Active IOs
<span
id="iob-account-details-active-ios-badge"
class="badge"
ng-if="activeIOs.length > 0">
{{activeIOs.length}}
</span>
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment