目录
在报纸中可以看到的文档表现形式,用HTML都可以表示出来(排版)
MDNHTML W3Cschool
- <html>
- <head>
- <title>第一个页面title>
- head>
- <body>
- hello world
- body>
- html>

- <h1>这是一个标题h1h1>
- <h2>这是一个标题h2h2>
- <h3>这是一个标题h3h3>
- <h4>这是一个标题h4h4>
- <h5>这是一个标题h5h5>
行级标签,块级标签
<img src="相对路径">
- strong 加粗
-
- b 加粗
-
- 倾斜
-
- 倾斜
-
-
删除线 -
-
删除线 -
- 下划线
-
- 下划线
- <img src="https://images0.cnblogs.com/blog/130623/201407/300958475557219.png"
- alt="">
- <table align="center" border="1" cellpadding="20" cellspacing="0" width="500"
- height="500">
- <tr>
- <td>姓名td>
- <td>性别td>
- <td>年龄td>
- tr>
- <tr>
- <td>张三td>
- <td>男td>
- <td>10td>
- tr>
- <tr>
- <td>李四td>
- <td>女td>
- <td>11td>
- tr>
- table>
- <h3>无序列表h3>
- <ul>
- <li>咬人猫li>
- <li>兔总裁li>
- <li>阿叶君li>
- ul>
- <h3>有序列表h3>
- <ol>
- <li>咬人猫li>
- <li>兔总裁li>
- <li>阿叶君li>
- ol>
- <h3>自定义列表h3>
- <dl>
- <dt>我的老婆们dt>
- <dd>咬人猫dd>
- <dd>兔总裁dd>
- <dd>阿叶君dd>
- dl>
- <input type="text">
- <input type="password">
- 性别:
- <input type="radio" name="sex">男
- <input type="radio" name="sex" checked="checked">女
- 爱好:
- <input type="checkbox"> 吃饭 <input type="checkbox"> 睡觉 <input type="checkbox">
- 打游戏
- <input type="button" value="我是个按钮">
- <input type="button" value="我是个按钮" onclick="alert('hello')">
- <form action="test.html">
- <input type="text" name="username">
- <input type="submit" value="提交">
- form>
- <form action="test.html">
- <input type="text" name="username">
- <input type="submit" value="提交">
- <input type="reset" value="清空">
- form>
<label for="male">男label> <input id="male" type="radio" name="sex">
- <select>
- <option>北京option>
- <option selected="selected">上海option>
- select>
- <select>
- <option>--请选择年份--option>
- <option>1991option>
- <option>1992option>
- <option>1993option>
- <option>1994option>
- <option>1995option>
- select>
- <textarea rows="3" cols="50">
-
- textarea>