英文翻译:
!DOCTYPE html:文档类型html
html:超文本标记
head:头部
meta:元信息
charset:字符集
title:标题
body:文档主体
color:颜色
演示代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
nav{width: 1000px;height: 40px;background: black;margin: 100px auto;}
nav div{width: 100px;height: 40px;line-height: 40px;float: left;color: white;text-align: center;font-size: 12px;}
nav div:hover{
font-size: 16px;
color: blue;
}
</style>
</head>
<body>
<!-- nav>div*10 -->
<nav>
<div>电脑办公</div>
<div>室内设计</div>
<div>室外设计</div>
<div>三维设计</div>
<div>平面设计</div>
<div>程序设计</div>
<div>网页设计</div>
<div>会计课程</div>
<div>影视课程</div>
<div>机械设计</div>
</nav>
</body>
</html>