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

相关推荐
曦月合一1 小时前
html中iframe标签 隐藏滚动条
前端·html·iframe
m0_528723818 小时前
HTML中,title和h1标签的区别是什么?
前端·html
Dark_programmer8 小时前
html - - - - - modal弹窗出现时,页面怎么能限制滚动
前端·html
烂蜻蜓11 小时前
Uniapp 设计思路全分享
前端·css·vue.js·uni-app·html
八角丶1 天前
元素尺寸的获取方式及区别
前端·javascript·html
Ama_tor1 天前
网页制作05-html,css,javascript初认识のhtml表格的创建
javascript·css·html
饼干饿死了1 天前
实现动态翻转时钟效果的 HTML、CSS 和 JavaScript,附源码
javascript·css·html
白嫖不白嫖1 天前
小游戏-记忆卡牌
css·html·css3
IT、木易2 天前
HTML5 新增的标签有哪些?
前端·html·html5
我是哈哈hh2 天前
【JavaScript进阶】作用域&解构&箭头函数
开发语言·前端·javascript·html