简单网站模板1(HTML)

想要拥有自己的网站,却不知该如何才能简约好看,接下来分享一种自己搭建的网站模板,希望大家喜欢。

展示图:

CODE:

html 复制代码
<!DOCTYPE html>
<html>
<head>
    <title>我的网站</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
            margin: 0;
            padding: 0;
        }
        
        header {
            background-color: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }
        
        nav {
            background-color: #666;
            color: #fff;
            padding: 10px;
            text-align: center;
        }
        
        nav a {
            color: #fff;
            text-decoration: none;
            margin: 0 10px;
        }
        
        section {
            padding: 20px;
            margin: 20px;
            background-color: #fff;
            border-radius: 5px;
        }
        
        footer {
            background-color: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }
    </style>
</head>
<body>
    <header>
	<h1>我的第一个网站</h1>
    </header>
    
    <nav>
    </nav>
    
    <section>
    </section>
    
    <footer>
    </footer>
</body>
</html>

如果觉得这种太复杂了,还有一个比较简单。

效果图:

CODE:

html 复制代码
<!DOCTYPE html>
<html lang="en">
<head>
<title>页面标题</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
  font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>

<h1>我的网站</h1>
<p>我创建的一个网站。</p>

</body>
</html>

Ladies and gentlemen,看到这么详细的代码,赶紧用你发财的小手点个赞吧!

相关推荐
tiandyoin7 小时前
给 MHTML 添加滚动条.mhtml
前端·chrome·html·mhtml
Never_Satisfied12 小时前
在JavaScript / HTML中,HTML元素自定义属性使用指南
开发语言·javascript·html
_OP_CHEN13 小时前
【前端开发之HTML】(二)HTML 常见标签(上):从入门到实战,搞定网页基础排版!
前端·css·html·前端开发·网页开发·html标签
♩♬♪.14 小时前
HTML学校官网静态页面
前端·css·html
Never_Satisfied14 小时前
在JavaScript / HTML中,cloneNode()方法详细指南
开发语言·javascript·html
37方寸14 小时前
前端基础知识(HTML、CSS)
前端·css·html
Surplusx1 天前
运用VS Code前端开发工具完成网页头部导航栏
前端·html
烤麻辣烫2 天前
Web开发概述
前端·javascript·css·vue.js·html
lkbhua莱克瓦242 天前
HTML与CSS核心概念详解
前端·笔记·html·javaweb
Mo_jon2 天前
vite + vue 快速构建 html 页面 (舒适编写html文件)
前端·vue.js·html