html5常用标签 body部分(2)包括 表格、图片、链接、视频、表单、以及其他html5新增

本文主要是介绍html5常用标签 body部分(2)包括 表格、图片、链接、视频、表单、以及其他html5新增,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

<center><h1>*****第五类标记:表格*****</h1></center> 
<table width="500px" border="1px"> 
<caption>标题</caption> 
<thead> 
<tr> 
<th>序号1</th> 
<th>序号2</th> 
</tr> 
</thead> 
<tr> 
<td align="center">你好</td> 

<td align="center">你好2</td> 
</tr> 
<tfoot> 
<tr> 
<td colspan="2" align="right">制表人:万云华</td> 
</tr> 
</tfoot> 
</table> 

<center><h1>*****第六类标记:图片标签*****</h1></center> 

<img src="./image/2.jpg" alt="广告图片" /> 

<center><h1>*****第七类标记:链接*****</h1></center> 
链接到指定网页:<a href=" http://www.baidu.com " >baidu</a> 
锚点的指定,在页面顶部指定一个锚点名 :<a href="#pageTop">返回顶部</a> 

map的使用 
<img src="./image/2.jpg" alt="广告图片" usemap="#mymap"/> 
<map name="mymap" > 
<area shape="rect" coords="0,0,100,50" href=" http://blackbili.nmzh.net " alt="Bilibili" target="_blank" /> 
<area shape="rect" coords="100,0,210,100" href=" http://blackbili.nmzh.net " alt="Bilibili" target="_blank" /> 
</map> 
<br> 
<center><h1>*****第八类标记:视频*****</h1></center> 
<embed src="./image/1.mp4"/ width="500px" height="500px" autostart=false> 

<video controls poster="./image/2.jpg"> 
<source src="./image/1.mp4"/> 
</video> 

<center><h1>*****第九类标记:表单*****</h1></center> 
form: 表单是一个容器,可以放置表单元素,表单元素就是填写信息的地方 有action 和method ; 
<br> 
<form action=" http://www.baidu.com " method="get"> 
action 是指提交的地址(服务器页面的地址) ,method: 提交的方式: get是明码的(可以在地址栏上看得到),最多255字符,post是密文的;在地址栏上不可见,无显示长度 
<br>普通文本框: <input type="text" name="uname" id="uname" size="20" maxlength="20" /> 
<label for="pwd">密码文本框:</label><input type="password" name="pwd" id="pwd" size="20" maxlength="20" /> 
<br> 
<label for="sex">单选框 radio: 性别</label> <input type="radio" name="sex" id="sex" value="1" />男<input type="radio" name="sex" id="sex" value="2"/>女<br> 
<label 复选 checkbox 爱好</label> <input type="checkbox" name="computer" >电脑网络<input type="checkbox" name="film" >影视娱乐<input type="checkbox" name="game" >棋牌游戏<br><input type="checkbox" name="book" >读书读报<br> 
<label >文件选择框 file 头像</label> <input type="file" name="file" id="file" /><br> 
<label >下拉列表</label><select name=zhiye> 
<option>请选...</option> 
<option>教育/研究</option> 
<option>艺术/设计</option> 
<option>法律相关</option> 
<option>行政管理</option> 
<option selected>传播/媒体</option> 
<option>顾问/分析员</option> 
</select> 
<br> 
<textarea rows="20" cols="120" >多行文本</textarea> 
<input name=Submit type=submit value="提交"> 
<input name=Submit2 type=reset value="重置"> 
<br> 
html5新增  颜色选择框<input type="color" name="color" > 
<br> 
html5新增 数量选择框<input type="number" name="number" > 
<br> 
html5新增 日期选择框<input type="date" name="date" > 
<br> 
html5新增 月份选择框<input type="week" name="week" > 
<br> 
html5新增 月份选择框<input type="month" name="month" > 
<br> 
</form> 

这篇关于html5常用标签 body部分(2)包括 表格、图片、链接、视频、表单、以及其他html5新增的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1083638

相关文章

C++对象布局及多态实现探索之内存布局(整理的很多链接)

本文通过观察对象的内存布局,跟踪函数调用的汇编代码。分析了C++对象内存的布局情况,虚函数的执行方式,以及虚继承,等等 文章链接:http://dev.yesky.com/254/2191254.shtml      论C/C++函数间动态内存的传递 (2005-07-30)   当你涉及到C/C++的核心编程的时候,你会无止境地与内存管理打交道。 文章链接:http://dev.yesky

C++工程编译链接错误汇总VisualStudio

目录 一些小的知识点 make工具 可以使用windows下的事件查看器崩溃的地方 dumpbin工具查看dll是32位还是64位的 _MSC_VER .cc 和.cpp 【VC++目录中的包含目录】 vs 【C/C++常规中的附加包含目录】——头文件所在目录如何怎么添加,添加了以后搜索头文件就会到这些个路径下搜索了 include<> 和 include"" WinMain 和

C/C++的编译和链接过程

目录 从源文件生成可执行文件(书中第2章) 1.Preprocessing预处理——预处理器cpp 2.Compilation编译——编译器cll ps:vs中优化选项设置 3.Assembly汇编——汇编器as ps:vs中汇编输出文件设置 4.Linking链接——链接器ld 符号 模块,库 链接过程——链接器 链接过程 1.简单链接的例子 2.链接过程 3.地址和

JAVA读取MongoDB中的二进制图片并显示在页面上

1:Jsp页面: <td><img src="${ctx}/mongoImg/show"></td> 2:xml配置: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001

vue, 左右布局宽,可拖动改变

1:建立一个draggableMixin.js  混入的方式使用 2:代码如下draggableMixin.js  export default {data() {return {leftWidth: 330,isDragging: false,startX: 0,startWidth: 0,};},methods: {startDragging(e) {this.isDragging = tr

vue项目集成CanvasEditor实现Word在线编辑器

CanvasEditor实现Word在线编辑器 官网文档:https://hufe.club/canvas-editor-docs/guide/schema.html 源码地址:https://github.com/Hufe921/canvas-editor 前提声明: 由于CanvasEditor目前不支持vue、react 等框架开箱即用版,所以需要我们去Git下载源码,拿到其中两个主

React+TS前台项目实战(十七)-- 全局常用组件Dropdown封装

文章目录 前言Dropdown组件1. 功能分析2. 代码+详细注释3. 使用方式4. 效果展示 总结 前言 今天这篇主要讲全局Dropdown组件封装,可根据UI设计师要求自定义修改。 Dropdown组件 1. 功能分析 (1)通过position属性,可以控制下拉选项的位置 (2)通过传入width属性, 可以自定义下拉选项的宽度 (3)通过传入classN

android一键分享功能部分实现

为什么叫做部分实现呢,其实是我只实现一部分的分享。如新浪微博,那还有没去实现的是微信分享。还有一部分奇怪的问题:我QQ分享跟QQ空间的分享功能,我都没配置key那些都是原本集成就有的key也可以实现分享,谁清楚的麻烦详解下。 实现分享功能我们可以去www.mob.com这个网站集成。免费的,而且还有短信验证功能。等这分享研究完后就研究下短信验证功能。 开始实现步骤(新浪分享,以下是本人自己实现

js+css二级导航

效果 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Con

基于Springboot + vue 的抗疫物质管理系统的设计与实现

目录 📚 前言 📑摘要 📑系统流程 📚 系统架构设计 📚 数据库设计 📚 系统功能的具体实现    💬 系统登录注册 系统登录 登录界面   用户添加  💬 抗疫列表展示模块     区域信息管理 添加物资详情 抗疫物资列表展示 抗疫物资申请 抗疫物资审核 ✒️ 源码实现 💖 源码获取 😁 联系方式 📚 前言 📑博客主页: