html基础(一)


html结构、css样式、js行为---web页面
  一、常见元素及理解
  head区(不会在网页面上,资源与信息描述)
       meta :charset:使用的字符集(中文英文)
             <meta charset='utf-8'>
             viewport 设备视口,设置移动端自适应的方法(第一步:viewport):
             <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
             title
             style
             link
             script
             base href基础路径
   body区
       div/section/article/aside/header/footer
       p
       apan/em/strong//行内元素
       table/thead/tbody/tr/td--表格
            colspan,rowspan
       a href target(blank新的窗口)
       img src alt
       form/input/select/textarea/ 
            form: target method enctype
            input :type value name(type=radio name=相同为单选)
            button :type
            select:option[value]
            label[for] 

       button-表单

猜你喜欢

转载自blog.csdn.net/qq_40151857/article/details/82766121