Trang chủ / Bootstrap / Tạo danh sách

Tạo danh sách

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Example of Bootstrap 3 Lists</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
    .bs-example{
    	margin: 20px;
    }
</style>
</head>
<body>
<div class="bs-example">
	<h2>Unordered List</h2>
    <ul>
        <li>Home</li>
        <li>Products
            <ul>
              <li>Product 1</li>
              <li>Product 2</li>
            </ul>
        </li>
        <li>About Us</li>
        <li>Contact</li>
    </ul>
    <hr>
    <h2>Ordered List</h2>
    <ol>
        <li>Home</li>
        <li>Products
            <ol>
              <li>Product 1</li>
              <li>Product 2</li>
            </ol>
        </li>
        <li>About Us</li>
        <li>Contact</li>
    </ol>
    <hr>
    <h2>Definition Lists</h2>
    <dl>
        <dt>User Agent</dt>
        <dd>An HTML user agent is any device that interprets HTML documents.</dd>
        <dt>Client-side Scripting</dt>
        <dd>Client-side scripting generally refers to the category of computer programs on the web that are executed client-side i.e. by the user's web browser.</dd>
        <dt>Document Tree</dt>
        <dd>The tree of elements encoded in the source document.</dd>
    </dl>
</div>
</body>
</html>

Xem ví dụ

 

Thấy bài viết hữu ích?

Ủng hộ tác giả để có thêm nhiều bài viết chất lượng nhé!

Tư vấn lộ trình CNTT 🤖