链接<a href="https://www.runoob.com">这是一个链接</a>
图像<img src="/images/logo.png" width="258" height="39" />
<hr> 标签在 HTML 页面中创建水平线
加注释<!-- 这是一个注释 -->
页面查看源代码:单击右键,然后选择"查看源文件"(IE)或"查看页面源代码"(Firefox)
段落换行<br> <br>空元素 没有结束标签
超链接:href属性来描述链接的地址
使用 <base> 定义页面中所有链接默认的链接目标地址。
<meta> 元素来描述HTML文档的描述,关键词,作者,字符集等
为搜索引擎定义关键词:
<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
为网页定义描述内容:
<meta name="description" content="免费 Web & 编程 教程">
每五秒刷新页面 <meta http-equiv="refresh" content="5">
<link> 标签通常用于链接到样式表
表格
列表
表单
输入元素
文本域 <input type="text">
密码字段 <input type="password">
单选按钮 <input type="radio">
提交按钮 <input type="submit"> :当用户单击确认按钮时,表单的内容会被传送到另一个文件。
<form name="input" action="html_form_action.php" method="get">
// 数据会传送到 "html_form_action.php" 的页面
Username: <input type="text" name="user"> // 那个输入框
<input type="submit" value="Submit"> // 按钮
</form>
加边框
<form action="">
<fieldset>
Name: <input type="text" size="30"><br>
E-mail: <input type="text" size="30"><br>
Date of birth: <input type="text" size="10">
</fieldset>
</form>
框架
在同一个浏览器窗口中显示不止一个页面
脚本
URL 统一资源定位器
URL 是一个网页地址