<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网站HTML模板</title>
    <style>
        /* 这里可以添加一些基础的CSS样式 */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }
        header {
            background-color: #4CAF50;
            color: white;
            padding: 10px 0;
            text-align: center;
        }
        nav {
            margin: 10px;
            text-align: center;
        }
        nav a {
            margin: 0 15px;
            text-decoration: none;
            color: #333;
        }
        section {
            padding: 20px;
        }
        footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 10px 0;
            position: fixed;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>
<body>
    <header>
        <h1>欢迎来到我的网站</h1>
    </header>
    <nav>
        <a href="#home">首页</a>
        <a href="#about">关于我们</a>
        <a href="#services">服务</a>
        <a href="#contact">联系我们</a>
    </nav>
    <section>
        <h2>主要内容区域</h2>
        <p>这里是网站的主要内容,您可以在这里添加文本、图片、视频等。</p>
    </section>
    <footer>
        <p>© 2023 我的公司. 保留所有权利.</p>
    </footer>
</body>
</html><!DOCTYPE html> 声明文档类型为HTML5。<html> 标签是HTML文档的根元素,lang="zh-CN" 指定了文档的语言为简体中文。<head> 包含了文档的元数据(如字符编码、视口设置和标题)。<meta charset="UTF-8"> 确保页面使用UTF-8字符编码,支持多语言字符。<meta name="viewport" content="width=device-width, initial-scale=1.0"> 确保页面在移动设备上正确缩放。<title> 标签定义了浏览器标签中显示的页面标题。<style> 标签内包含了一些基础的CSS样式,用于美化页面布局和元素。<header>:页面顶部的标题和导航栏。<nav>:导航链接。<section>:主要内容区域。<footer>:页面底部的版权信息。这个模板提供了一个简单的HTML页面结构,您可以根据需要进行修改和扩展。
上一篇:html注释标签
下一篇:html tooltip
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站