zoukankan      html  css  js  c++  java
  • html----学完总结

    html包括三个要素,元素(标签),属性,属性值。CSS包括三个要素,选择器,属性,属性值。

    !DOCTYPE

    html

    head---title

           ---meta-------charset="utf-8"

    body-------bgcolor,backgound,topmargin,rightmargin,leftmargin,bottommargin

    a-----href,target

            href="#a.name",跳转到对应name的a标签,

            href="https://www.baidu.com",

            href="#", 一个空链接,刷新当前页面

    br,回车

    &nbsp,空格

    b,i,u----粗体,倾斜,下划线

    strong,em---加强语气,粗体,倾斜

    div,span

         块元素,自动占据一行,可设置宽高,行内元素,在行内依次显示,宽高设置无效

         内容可替换元素,则可以设置宽高,例如image

    p,段落

    h1,h2,h3,h4,h5,h6,标题

    img-------src="1.jpg" height="200"  width="200"

    ul(ol)---li----

           列表元素,常用来做导航

    table------caption,定义表格的标题

                   th,定义表格的表头

                   tr,行

                   td,列------colspan="2",合并2列,rowspan="4",合并4行

    form------input,textarea,label,select--option

           input----type=text,password,hidden--button,image,reset,submit---radio,checkbox,file

    frameset----frame

               不建议使用,了解即可

  • 相关阅读:
    程序员的基本修养之二
    jQuery学习之二
    面向对象程序的设计模式
    Mysql的复杂语句
    养成良好的做事风格
    前端模板学习bootstrap
    23. Merge k Sorted Lists
    953. Verifying an Alien Dictionary
    Daily Coding Problem: Problem #541
    396. Rotate Function
  • 原文地址:https://www.cnblogs.com/kaililikai/p/5786197.html
Copyright © 2011-2022 走看看