Semantic-UI Menu Icons Variation
Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing.
Semantic-UI Menu is used to display the grouped navigation menu. A navigation menu is used in every website to make it more user-friendly so that the navigation through the website becomes easy and the user can directly search for the topic of their interest.
Semantic-UI Menu Icons Variation is used to display the icons in the menu items.
Semantic-UI Menu Icons Variation Used Class:
- icon: This class is used to display the icon into navigation menu.
Syntax:
div class="ui icon menu"> <a class="item"> <i class="icon-name icon"></i> </a> ... </div>
Example 1: This example describes the uses of Semantic-UI Menu Icon Variation.
HTML
<!DOCTYPE html> < html > < head > < title > Semantic-UI Menu Icons Variation </ title > < link rel = "stylesheet" href = </ head > < body > < div class = "ui container center aligned" > < h2 style = "color:green" > GeeksforGeeks </ h2 > < h3 >Semantic-UI Menu Icons Variation</ h3 > < div class = "ui icon menu" > < a class = "item" > < i class = "tag icon" ></ i > </ a > < a class = "item" > < i class = "tasks icon" ></ i > </ a > < a class = "item" > < i class = "phone icon" ></ i > </ a > < a class = "item" > < i class = "envelope outline icon" ></ i > </ a > < a class = "item" > < i class = "coffee icon" ></ i > </ a > < a class = "item" > < i class = "code icon" ></ i > </ a > </ div > </ div > </ body > </ html > |
Output:
Example 2: This example describes the uses of Semantic-UI Menu Icon Variation.
HTML
<!DOCTYPE html> < html > < head > < title > Semantic-UI Menu Icons Variation </ title > < link rel = "stylesheet" href = </ head > < body > < div class = "ui container center aligned" > < h2 style = "color:green" > GeeksforGeeks </ h2 > < h3 >Semantic-UI Menu Icons Variation</ h3 > < div class = "ui vertical icon menu" > < a class = "item" > < i class = "tag icon" ></ i > </ a > < a class = "item" > < i class = "tasks icon" ></ i > </ a > < a class = "item" > < i class = "phone icon" ></ i > </ a > < a class = "item" > < i class = "envelope outline icon" ></ i > </ a > < a class = "item" > < i class = "coffee icon" ></ i > </ a > < a class = "item" > < i class = "code icon" ></ i > </ a > </ div > </ div > </ body > </ html > |
Output:
Reference: https://semantic-ui.com/collections/menu.html#icons
Please Login to comment...