Semantic-UI Menu Link Item Content
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 Link Item Content: It is used to create a menu item that may contain the link items or items formatted as a link. We can create link items by using anchor tag or by using link class.
Used Class:
- link: This class is used to display the menu items as a link.
Syntax:
<div class="ui menu"> <div class="link item"> Contents... </div> ... </div>
Example 1: This example describes the use of Semantic-UI Menu Link Item Content. Here we are creating a horizontal navigation menu with link items.
HTML
<!DOCTYPE html> < html > < head > < title > Semantic-UI Menu Link Item Content </ title > < link rel = "stylesheet" href = </ head > < body > < div class = "ui container center aligned" > < h2 style = "color:green" > GeeksforGeeks </ h2 > < h3 >Semantic-UI Menu Link Item Content</ h3 > < div class = "ui fluid seven item menu" > < a href = "#" class = "item" > GeeksforGeeks </ a > < a href = "#" class = "item" > HTML </ a > < a href = "#" class = "item" > CSS </ a > < a href = "#" class = "item" > JavaScript </ a > < div class = "link item" > Bootstrap </ div > < div class = "link item" > React.js </ div > < div class = "link item" > Node.js </ div > </ div > </ div > </ body > </ html > |
Output:
Example 2: This example describes the use of Semantic-UI Menu Link Item Content. Here we are creating a vertical navigation menu with link items.
HTML
<!DOCTYPE html> < html > < head > < title > Semantic-UI Menu Link Item Content </ title > < link rel = "stylesheet" href = </ head > < body > < div class = "ui container" > < h2 style = "color:green" > GeeksforGeeks </ h2 > < h3 >Semantic-UI Menu Link Item Content</ h3 > < div class = "ui vertical menu" > < a href = "#" class = "item" > GeeksforGeeks </ a > < a href = "#" class = "item" > HTML </ a > < a href = "#" class = "item" > CSS </ a > < a href = "#" class = "item" > JavaScript </ a > < div class = "link item" > Bootstrap </ div > < div class = "link item" > React.js </ div > < div class = "link item" > Node.js </ div > </ div > </ div > </ body > </ html > |
Output:
Reference: https://semantic-ui.com/collections/menu.html#link-item
Please Login to comment...