Home > Article > Web Front-end > Which class in bootstrap can implement tags
In bootstrap, the ".label" class can implement labels. Labels can be used for counting, prompts or other mark displays on the page; they can be passed through "label-primary", "label-success", "label- info" and other modified classes to change the appearance of the label.
The operating environment of this tutorial: Windows 7 system, bootsrap version 3.3.7, DELL G3 computer
In bootstrap, tags can be used Counts, tips, or other markup displays on the page. Use the .label
class to display labels, as shown in the following example:
<h1>Example Heading <span class="label label-default">Label</span></h1> <h2>Example Heading <span class="label label-default">Label</span></h2> <h3>Example Heading <span class="label label-default">Label</span></h3> <h4>Example Heading <span class="label label-default">Label</span></h4>##You can use modified classes label-default, label-primary, label-success, label-info, label-warning, label-danger to change the appearance of the label:
<span class="label label-default">Default</span> <span class="label label-primary">Primary</span> <span class="label label-success">Success</span> <span class="label label-info">Info</span> <span class="label label-warning">Warning</span> <span class="label label-danger">Danger</span>Recommended learning: "
bootstrap usage tutorial 》
The above is the detailed content of Which class in bootstrap can implement tags. For more information, please follow other related articles on the PHP Chinese website!