siyuliu  
<!-- 注释快捷键:ctrl+’/‘ -->

<!DOCTYPE html>
<html lang="en">

<head><!--网页头部-->
    <meta charset="UTF-8">
    <meta name="keywords" content="狂神说Java">
    <title>first</title>
<!--   网站标题 -->
</head>

<body>
<!--锚点,后面的一点就跳到这里来-->
<a name="top">顶部</a>

<h1>一级标题</h1>
<h2>二级标题</h2>
<p>s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s</p>
<p>段落</p>
<hr>
换行<br>
s s<br>
<strong>粗体</strong>
<!--_blank 在新标签页打开-->
<a href="https://www.baidu.com" target="_blank">点击图片跳到百度
    <img src="../resources/生成超高清壁纸.png" alt="壁纸" title="悬停文字" target="_blank">
</a>
<a href="mailto:2747546205@qq.com">点击联系我</a>
<!--有序列表-->
<ol>
    <li>有序列表</li>
    <li>有序列表</li>
</ol>
<!--无序列表-->
<ul>
    <li>无序列表</li>
    <li>无序列表</li>
</ul>
<!--自定义列表-->
<dl>
    <dt>自定义列表</dt>
    <dd>自定义列表</dd>
    <dd>自定义列表</dd>
</dl>

<!--表格-->
<table border="1px">
    <tr>
        <td>11</td>
        <td>12</td>
        <td>13</td>
        <td>14</td>
    </tr>
</table>
<header><h2>网页头部</h2></header>
<section><h2>网页主体</h2></section>
<footer><h2>网页脚部</h2></footer>
<iframe src="" name="hello" frameborder="0" width="300px" height="800px"></iframe>
<a href="https://www.baidu.com/" target="hello">点击跳转</a>
<h1>注册</h1>
<!--表单form
action :表单提交的位置,可以是网站,也可以是一个请求处理地址
method :post,get 提交方式-->
<form action="我的第一个网页.html" method="get">
<!--文本输入框:input type="text"-->
    <p>名字:<input type="text" name="username"></p>
    <p>密码:<input type="password" name="pwd"></p>
    <p>性别:
        <input type="radio" value="boy" name="sex"/>男
        <input type="radio" value="girl" name="sex"/>女
    </p>

    <p>下拉框:
    <select name="列表名称">
        <option value="china">中国</option>
        <option value="us">美国</option>
    </select>
    </p>

    <input type="submit">
    </form>












<a href="#top">回到顶部</a>

</body>
</html>
posted on 2025-11-17 20:31  nnnnnnunn  阅读(4)  评论(0)    收藏  举报