函数接口
1.sprintf
int sprintf(char *buf, const char *format, ...);
作用
把格式化数据(数字、字符等)写入字符串 buf。
前置内容
htmld的格式规范
必须以<关键字>开头,以</关键字>结尾
例:<html> </html>
大体格式
<!DOCTYPE html> //告诉浏览器,页面是【标准 HTML5】
<html>
<head>
<meta charset="utf-8"> //防止中文乱码
<title>页面名称</title>
</head>
<body>
</body>
</html>
各块学习
一、页面主体 <body>
可存放内容:背景色,文字颜色,链接颜色,背景图片,边距
1.<body bgcolor="red"> 2.<body text="red">
3.<body link="blue"> 未访问的链接 <body vlink="purple">访问过的链接
4.<body background="images/bg.jpg">
二、标题标签 <h*>
<h1>最大标题</h1> <h2>二级标题</h2> <h3>三级标题</h3>
<h4>四级标题</h4> <h5>五级标题</h5> <h6>最小标题</h6>
eg:<h1 align="center" color="red"> 红色大标题</h1> //中间显示红色最大号标题
三、按钮 <button>
<button type="submit">登录</button> //点击后自动提交
<form>表单发给你的 C 服务器<button type="button">普通按钮</button> //不提交表单,只配合 JS 使用
<button type="reset">重置</button> //清空表单里输入的内容
<a>
<a href>
<form>
<table>