简单网站模板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,看到这么详细的代码,赶紧用你发财的小手点个赞吧!

相关推荐
速易达网络5 小时前
Bootstrap 5 响应式网站首页模板
前端·bootstrap·html
@yanyu6665 小时前
Tomcat安装与HTML响应实战
java·tomcat·html
future_studio8 小时前
聊聊 Unity(小白专享、C# 小程序 之 日历、小闹钟)
前端·html
哆啦A梦158812 小时前
36 注册
前端·javascript·html
杨超越luckly14 小时前
HTML应用指南:利用GET请求获取全国沃尔沃门店位置信息
前端·arcgis·html·数据可视化·门店数据
软件技术NINI18 小时前
MATLAB疑难诊疗:从调试到优化的全攻略
javascript·css·python·html
苏打水com18 小时前
从 HTML/CSS/JS 到 React:前端进阶的平滑过渡指南
前端·javascript·html
西西学代码1 天前
Flutter---音效模式选择器
前端·html
键盘不能没有CV键1 天前
【图片处理】✈️HTML转图片字体异常处理
前端·javascript·html
云知谷1 天前
【HTML】网络数据是如何渲染成HTML网页页面显示的
开发语言·网络·计算机网络·html