用户:
爱因斯坦的弟子查看:1 回复:2 评论:1 创建时间:2019-08-18T20:36:36
html基本结构
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>html标签</title>
</head>
<body>
</body>
</html>
空格
空字符
html标签
<h1></h1> 标题标签1-6之间字体大小逐渐减小
<p></p> 段落标签
<b></b> 加粗
<strong></strong> 加粗优化搜索
<i></i> 斜体
<div></div> 块级元素
<span></span> 内联元素
<img src=”” alt=””> 图片标签
<a href=”” target=”_self(在原有网页上打开)/_blank(打开空白页)” title=”鼠标移动链接上显示的内容”> 链接标签
列表
<ol><li></li></ol> 有序列表
<ul><li></li></ul> 无序列表 消除列表圆点list-style:none;
<dl><dt><dd><dd></dt></dl> 自定义列表
表格
<table><tr><td rowspan=”列数” colspan=”行数”><td></tr></table>
th和td的区别:th自动加粗自身表格里的内容
表单
文 本 框<input type="text" value="" maxlength"可输入的最大长度" size="" />
提交按钮<input type="submit" value="提交" />
普通按钮<input type="button" value="普通按钮" />
密 码 框<input type="password" />
重置按钮<input type="reset" value="重置" />
单选按钮<input type="radio"checked="checked" />
文件上传按钮<input type="file"/>
多选按钮<input type="checkbox" />name
下拉框<select><optgroup=””><option></option></optgroup></select>
多行文本域<textarea rows="行" cols="列"></textarea>
隐藏域<input type="hidden" />
图片按钮<input type="image" src= "" alt=”图片加载失败提示内容”>