Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Demonstrates a modal popup using Semantic UI modal 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 Modal</title>
</head>
<body class="ui container center aligned">
<button class="ui button" id="openModal">Open Modal</button>
<div class="ui modal">
<div class="header">Modal Header</div>
<div class="content">
<p>This is a Semantic UI modal example.</p>
</div>
<div class="actions">
<div class="ui approve button">OK</div>
<div class="ui cancel button">Cancel</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.2/semantic.min.js"></script>
<script>
document.getElementById('openModal').onclick = () => {
$('.ui.modal').modal('show');
};
</script>
</body>
</html>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.
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.