HTML学习二
列表标签(有序,无序,自定义列表)
<html lang="en"><head>
<meta charset="UTF-8">
<title>列表标签学习title>head><body><ol>
<li>Javali>
<li>pythonli>
<li>运维li>
<li>C/C++li>ol><hr/><ul>
<li>Javali>
<li>pythonli>
<li>运维li>
<li>C/C++li>ul><dl>
<dt>学科dt>
<dd>Javadd>
<dd>pythondd>
<dd>Linuxdd>
<dd>Cdd>
<dt>城市dt>
<dd>西安dd>
<dd>宝鸡dd>
<dd>上海dd>
<dd>北京dd>dl>body>html>
媒体元素(视频,音频)
<html lang="en"><head>
<meta charset="UTF-8">
<title>媒体元素学习title>head><body><video src="../resources/video/1.mp4" controls height="720" width="1280">video><br/><audio src="../resources/audio/1.flac" controls autoplay>audio>body>html>
表格标签
<html lang="en"><head>
<meta charset="UTF-8">
<title>表格学习title>head><body><table border="1px" ><tr>
<td colspan="4">1-1td>
<td>1-2td>
<td>1-3td>
<td>1-4td>tr><tr>
<td rowspan="2">2-1td>
<td>2-2td>
<td>2-3td>
<td>2-4td>tr><tr>
<td>3-1td>
<td>3-2td>
<td>3-3td>
<td>3-4td>tr><tr>
<td>4-1td>
<td>4-2td>
<td>4-3td>
<td>4-4td>tr>table>body>html>
内联框架
<html lang="en"><head>
<meta charset="UTF-8">
<title>内联框架学习title>head><body><iframe src="https://www.baidu.com" name="hello" frameborder="1" width="1280px" height="720px">iframe><a href="https://www.bilibili.com" target="hello">点击跳转a><iframe src="https://www.bilibili.com" frameborder="0" >iframe>body>html>
表单(文本输入框,单选框,多选框,按钮,下拉框,文本域,文件域等)
<html lang="en"><head>
<meta charset="UTF-8">
<title>表单学习title>head><body><h1>注册h1><form action="1.我的第一个网页.html" method="get" >
<p>名字:<input type="text" name="username" maxlength="8" size="20" placeholder="请输入用户名" required>p>
<p>密码:<input type="password" name="pwd" hidden>p>
<p>性别: <input type="radio" value="boy" name="sex" disabled/>男 <input type="radio" value="girl" name="sex"/>女 p>
<p>爱好: <input type="checkbox" value="sleep" name="hobby"/>睡觉 <input type="checkbox" value="code" name="hobby"/>敲代码 <input type="checkbox" value="chat" name="hobby"/>聊天 <input type="checkbox" value="game" name="hobby"/>游戏 p>
<p>按钮: <input type="button" name="btn1" value="点击">
<input type="image" src="../resources/image/1.png" width="100px" height="100px">
p>
<p>国家:
<select name="列表名称" >
<option value="China">中国option>
<option value="us" selected>美国option>
<option value="Japan">日本option>
<option value="uk">英国option>
select>
p>
<p>反馈: <textarea name="textarea" cols="30" rows="10">反馈建议textarea>
p>
<p>
<input type="file" name="files">
<input type="button" name="upload" value="上传">
p>
<p>邮箱: <input type="email" name="email">
p>
<p>url: <input type="url" name="url">
p>
<p>数字: <input type="number" name="num" max="100" min="0" step="10">
p>
<p>音量: <input type="range" name="voice" min="0" max="100" step="1">
p>
<p>搜索: <input type="search" name="search">
p>
<p>
<label for="mark">点击label>
<input type="text" id="mark">
p>
<p>自定义邮箱: <input type="text" name="diymail" pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$">
p>
<p>
<input type="submit">
<input type="reset" value="清空表单">
p>form>body>html>