_轻松搞定网页设计HTML (DIV CSS) JAVASCRIPT视频笔记(全)和MEMCACHE笔记.pdf
文本预览下载声明
韩顺平html第二讲
html
head
title第一个网页/title
/head
body
!-1-font color redhello world/font !-- 使用font
color red/font来调整字体颜色--
/br
!-2-font size 7 color bluehello world1/font !-- 使用font
来调整字体大小 但是 里面的取值是
size 7/font , size 1—7--
/br
使用 中
!-3-font style font-size:150px color yellowhello world2/font !-- CSS
font style font-size:40px/font将字体调整更大--
/br
!-4-pfont color cyan为字体更换颜色4/font/p
b font color redhhhhh/font/b
!-5-
/body
/html
b我是一行文字/b
pfont color #0269FE第二行/font/p
font size 4/font/br
韩顺平html第三讲
Html 的超链接:
例子:
htmlxmlns /1999/xhtml
head
metahttp-equiv Content-Typecontent text/html;charset utf-8/
title无标题文档/title
/head
body
!--*****************html 超链接案例***************--
!--*****************html 超链接默认格式***************--
ahref 超链接/a /br !--超链接基本格式--
!--**target 常见的两个属性-blank(表示在新页面打开文件).-self(表示替换当前页面)**--
ahref target -blank在新窗口打开/a !--超链接在新窗口下打开文件--/br
ahref target -self在本页面打开/a !--超链接在本页面打开文件--/br
ahref mailto:yanli457352797@给自己写信/a
/body
/html
Html 图片元素 (标记):
img src 图片路径width 宽度height ”高度”/img
案例:(网页上显示图片)
html xmlns /1999/xhtml
head
title无标题文档/title
/head
body
!--*****************图片元素***************--
img src a.jpgwidth 100 !--***********插入图片************--
ahref img src a.jpgwidth 100/a!--***********图片链接************--
img src /photo/OqCsSUr6ytmOilpU0_1VaA /4023121842125901437.jpg
width 400
img src a.jpgwidth 100border 10/img !--*******border表示为插入的图片加上边框
********--
/body
/html
Table表格:
!--tableborder ”边框宽度 “cellspacing”两个列行间的距离大小” cellpadding”各行列间的内容被填充align 表格
的位置 bgcolor 设置表格背景颜色/table
显示全部