html基础

 1.注册

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
</head>

<body>
    <div align="center">
        <table border="1px" cellspacing="0" cellpadding="0">
            <tr>
                <h1>用户注册</h1>
            </tr>
            <form action="URL" method="post">
                <tr>
                    <td>用户名:<input type="text" name="username"></td>
                </tr>
                <tr>
                    <td>头像: <input type="file" name="photo"></td>
                </tr>
                <tr>
                    <td>密码:<input type="text" name="password"></td>
                </tr>
                <tr>
                    <td>
                        性别:<input type="radio" name="gender">男
                        <input type="radio" name="gender">女
                    </td>
                </tr>
                <tr>
                    <td>爱好:打篮球<input type="checkbox" name="habbit">放风筝
                        <input type="checkbox" name="habbit">踢足球<input type="checkbox" name="habbit">
                    </td>
                </tr>
                <tr>
                    <td>其它<input type="checkbox" name="habbit"><input type="text" name="habbit" id=""></td>
                </tr>
                <tr>
                    <td>
                        省份:<select name="cars" id="cars">
                            <option>陕西</option>
                            <option>北京</option>
                            <option>上海</option>
                            <option>贵州</option>
                        </select>
                    </td>
                </tr>
                <tr><button type="submit">点击提交</button></tr>
                <td>
                    自我介绍:<input  type="text" style="width:200px; height:150px;" />
                </td>
            </form>

        </table>
    </div>
</body>

</html>

通过div调整位置 通过表格划分输入框

2. 电子汇票


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h3>工商银行电子汇款单</h3>
    <table border="1" cellspacing="0" cellpadding="0" width="1000px">
        <tr>
            <td colspan="2"><strong>回单类型</strong></td>
            <td style="width: 300px;">网上转账汇款</td>
            <td colspan="2"><strong>指令序号</strong></td>
            <td style="width: 300px;">1231231231231231231321</td>
        </tr>
        <tr>
            <!-- style采用text-align让字体居中 -->
            <td rowspan="4" style="width: 20px; text-align: center;"><strong>收款人</strong></td>
            <td>户名</td>
            <td>老牛</td>
            <td rowspan="4" style="width: 20px; text-align: center;" ><strong>付款人</strong></td>
            <td>户名</td>
            <td>老文</td>
        </tr>
        <tr>
            <td><strong>卡号</strong></td>
            <td>1</td>
            <td><strong>卡号</strong></td>
            <td>2</td>
        </tr>
        <tr>
            <td>地区</td>
            <td>西安</td>
            <td>地区</td>
            <td>北京</td>
        </tr>
        <tr>
            <td><strong>网点</strong></td>
            <td>陕西西安</td>
            <td><strong>网点</strong></td>
            <td>北京北京</td>
        </tr>
        <tr>
            <td colspan="2"><strong>币种</strong></td>
            <td>人民币</td>
            <td colspan="2"><strong>钞汇标志</strong></td>
            <td>钞票</td>
        </tr>
        <tr>
            <td colspan="2"><strong>金额</strong></td>
            <td>100元</td>
            <td colspan="2"><strong>手续费</strong></td>
            <td>0.1元</td>
        </tr>
        <tr>
            <td colspan="2"><strong>合计</strong></td>
            <td colspan="4">人民币(大写): 壹百元整</td>
        </tr>
        <tr>
            <td colspan="2"><strong>交易时间</strong></td>
            <td><i>1999-99-99</i></td>
            <td colspan="2"><strong>时间戳</strong></td>
            <td><i>1999-99-99</i></td>
        </tr>
    </table>    
    <p>票据打印时间:1999-99-99  00:01:00</p>
    <p><del>票据打印单位:北京北京</del></p>
    <p>操作员:大鸟</p>
</body>
</html>

rowspan:所占列数

colspan:所占行数

3.古诗词

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>古诗词</title>
</head>
<body>
    <div style="float: left;">
        <img src="http://www.exam58.com/uploads/allimg/140107/200T33I9-0.jpg" >
    </div>
    <div>
        <h3 align="center"> 滁州西涧</h3>
        <p align="center">韦应物</p>
        <p align="center">独怜幽草涧边生,上有黄鹂深树鸣。</p>
        <p align="center">春潮带雨晚来急,野渡无人舟自横。</p>
    </div>

</body>
</html>

4.豆瓣电影 

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>豆瓣电影</title>
</head>

<body>
    <h1>热门电影</h1>
        <p><div>  最近热门  电影  热门  最新  豆瓣高分  冷门佳片  华语  欧美  日韩 </div></p>

    <table border="1px" cellspacing="0" cellpadding="0">
        <tr>
            <td><img src="https://img2.doubanio.com/view/photo/s_ratio_poster/public/p2902498511.webp" alt=""><br>无敌舒克和贝塔
            </td>
            <td><img src="https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2902227445.webp" alt=""><br>沙丘2</td>
            <td><img src="https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2903145026.webp" alt=""><br>第二十条</td>
            <td><img src="https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2903717056.webp" alt=""><br>蜘蛛夫人</td>
        </tr>
    </table>
</body>

</html>

图片来自豆瓣 侵权必删(邮箱 yirenyikougua@foxmail)

相关推荐

  1. HTML基础

    2024-03-16 02:52:02       57 阅读
  2. HTML基础

    2024-03-16 02:52:02       47 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-16 02:52:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-16 02:52:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-03-16 02:52:02       87 阅读
  4. Python语言-面向对象

    2024-03-16 02:52:02       96 阅读

热门阅读

  1. C++设计模式-单例模式

    2024-03-16 02:52:02       39 阅读
  2. 使用Autogen和本地LLM加速开发周期

    2024-03-16 02:52:02       41 阅读
  3. Qt+FFmpeg+opengl从零制作视频播放器-7.OpenGL播放视频

    2024-03-16 02:52:02       40 阅读
  4. 【烹饪】清炒菠菜的学习笔记

    2024-03-16 02:52:02       45 阅读
  5. Python中有哪些常用的标准库?

    2024-03-16 02:52:02       45 阅读
  6. CMake官方教程4--使用表达式生成器

    2024-03-16 02:52:02       43 阅读
  7. GB4806.9 食品接触金属餐具、厨具检测第三方机构

    2024-03-16 02:52:02       57 阅读
  8. EXCEL+PYTHON学习2:

    2024-03-16 02:52:02       42 阅读
  9. Docker的基本概念和优势

    2024-03-16 02:52:02       45 阅读
  10. React render方法的原理?在什么时候会被触发?

    2024-03-16 02:52:02       43 阅读
  11. Linux/Cap

    Linux/Cap

    2024-03-16 02:52:02      47 阅读