1. Home
  2. /
  3. Semantic-ui
  4. /
  5. Semantic UI Tab Example

Semantic UI Tab Example - Semantic-ui Typing CST Test

Loading…

Semantic UI Tab Example — Semantic-ui Code

Shows a tabbed interface using Semantic UI tab classes.

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.2/semantic.min.css">
	<title>Semantic UI Tabs</title>
</head>
<body class="ui container">
	<div class="ui top attached tabular menu">
		<a class="active item" data-tab="first">Tab 1</a>
		<a class="item" data-tab="second">Tab 2</a>
		<a class="item" data-tab="third">Tab 3</a>
	</div>
	<div class="ui bottom attached tab segment active" data-tab="first">Content for Tab 1</div>
	<div class="ui bottom attached tab segment" data-tab="second">Content for Tab 2</div>
	<div class="ui bottom attached tab segment" data-tab="third">Content for Tab 3</div>

	<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.2/semantic.min.js"></script>
	<script>
		$('.menu .item').tab();
	</script>
</body>
</html>

Semantic-ui Language Guide

Semantic UI is a front-end framework that uses human-friendly HTML to create responsive, themable, and component-rich web applications. It emphasizes semantic class names and intuitive structure for rapid development.

Primary Use Cases

  • ▸Corporate websites and web apps
  • ▸Admin dashboards and data-heavy apps
  • ▸Prototyping user interfaces quickly
  • ▸Design systems with consistent component patterns
  • ▸Mobile-responsive web applications

Notable Features

  • ▸Human-friendly semantic class names
  • ▸Responsive and flexible grid system
  • ▸Prebuilt UI components (buttons, modals, forms)
  • ▸Integrated JavaScript behaviors
  • ▸Themeable with custom variables and CSS

Origin & Creator

Created by Jack Lukic in 2013, Semantic UI aims to bridge the gap between designers and developers by providing a framework with natural language class naming.

Industrial Note

Semantic UI is ideal for teams who want readable, semantically meaningful HTML with extensive prebuilt components, especially for dashboards, admin panels, and rapid UI development.

More Semantic-ui Typing Exercises

Semantic UI Counter ExampleSemantic UI Menu ExampleSemantic UI Card ExampleSemantic UI Modal ExampleSemantic UI Accordion ExampleSemantic UI Dropdown ExampleSemantic UI Progress ExampleSemantic UI Message Example

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher