Share an example code for getting started with HTML

零下一度
Release: 2017-06-24 11:56:02
Original
1552 people have browsed it
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Bootstrap</title>
    <link rel="stylesheet" href="bootstrap.min.css?1.1.11">
    <style>
        body{
            padding-top:50px;
        }
        .starter{
            padding:40px 15px ;
            text-align: center;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <a href="#" class="navbar-brand">Project Name</a>
            </div>
            <div>
                <div id="navbar" class="collapse navbar-collapse">
                    <ul class="nav navbar-nav">
                        <li class="active"><a href="#">home</a> </li>
                        <li><a href="#">About</a> </li>
                        <li><a href="#">Contact</a> </li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>
<div class="container">
    <div class="starter">
        <h1> Bootstrap starter template </h1>
        <p class="lead">欢迎访问</p>
    </div>
</div>
</body>
</html>
Copy after login

The above is the detailed content of Share an example code for getting started with HTML. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template