码迷,mamicode.com
首页 > 其他好文 > 详细

9.5 开课第二天

时间:2016-09-05 15:24:26      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

  1、 网页基础知识:(1) HTML语言(超文本语言)


 

                           (2)分类   1、静态页面(页面内容是代码写死的)

                                                            (.html    .htm)

                          

 

                                            2、动态页面(页面内容是从数据库读的)

                                                            (.php)

                                                             (.aspx)

                                                             (.jsp)


 

                                                        代码

                          (3) DW    工作区    拆分

                                                        设计


 

                           (4)基础语法  1、 最小单元成为标签

                                                2、双标签元素 (由两个标签构成)

                                                           (<标签名 属性>内容</标签名>)

                                                           (作用:主要做为内容的容器)

                                                3、 单标签元素  (由一个标签构成)

                                                           (<标签名 属性>)

                                                           (<标签名 属性/>)

                                                           (作用:一般起控制性作用)

                                                4、注释语法    (<!--需要注释的文字-->)


 

                            (5)基础标签  1、<html></html>代表网页

                                                 2、<head></head>头标签:里面主要放控制性的东西
                                                 3、<body></body>主体标签:里面主要放网页内容

                                                 4、<meta> 编码格式  utf-8

                                                 5、<title></title>网页标题


 

网页 


     2、通用标签,属性(1)<body属性> 1、bgcolor  背景色

                                                       2、text  字体颜色  

                                                       3、backgroud  背景图片


 

                              (2)路径  1、绝对路径  从根开始的    /   某一个文件夹里面

                                             2、相对路径  从自身开始的   ./   当前目录

                                                                                   ../   上级目录

                                                                                     /   代表根


                              (3)格式控制类的 1、<font> color 字体颜色

                                                                        face 字体样式

                                                                        size 字体大小

                                                        2、<b> 加粗*

                                                        3、<i>  倾斜*

                                                        4、<u>  加下划线*

                                                        5、<strong>  (加强语气)加粗

                                                        6、<em>  (加强语气)倾斜

                                                        7、<br/>  换行**

                                                        8、&nbsp  空格**


                             (4)内容容器类的 1、<h1>--<h6>  做标题的

                                                       2、<p> 做段落的

                                                       3、<span> 层标签  内容多大占多大地

                                                       4、<div> 层标签  默认占一行

                         

9.5 开课第二天

标签:

原文地址:http://www.cnblogs.com/l5580/p/5842351.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!