======================================================
注:本文源代码点此下载
======================================================
1. html 网页最基本的代码
code:
welcome to myfirstweb
说明:请将上面的代码手动输入到记事本里,然后把内容另存为 myfirstweb.html, 双击该文件,即可看到效果
注:学习html语言,最好用手动将代码输入到纯文本编辑器中,这样将有助于记忆html代码
2: html标题
code:
welcome to myfirstweb
welcome to myfirstweb
welcome to myfirstweb
welcome to myfirstweb
welcome to myfirstweb
welcome to myfirstweb
说明: h1到h6:字体从大到小
3: html段落
code:
this is first paragraph
this is second paragraph
说明: 段落之间的行距是两行
4: html 换行
code:
this is first line
this is second line
说明: 单倍行距
注:
没有结束标签, 标准使用方法
5: html 超链接
code:
http://www.hao123.com">hao123网址之家
http://www.sina.com" target="_blank">新浪网
说明: target=”_blank” 是指在新窗口或新标签中打开窗口
6: html 图片
code:
http://hiphotos.baidu.com/aobaby/pic/item/c92577548f78384d564e00cf.jpg" />
说明: width和heigth定义了图像的尺寸,图像的尺寸和名称是以属性形式提供的
参考:http://www.w3school.com.cn/index.html
绿色通道:好文要顶关注我收藏该文与我联系
======================================================
在最后,我邀请大家参加新浪APP,就是新浪免费送大家的一个空间,支持PHP+MySql,免费二级域名,免费域名绑定 这个是我邀请的地址,您通过这个链接注册即为我的好友,并获赠云豆500个,价值5元哦!短网址是http://t.cn/SXOiLh我创建的小站每天访客已经达到2000+了,每天挂广告赚50+元哦,呵呵,饭钱不愁了,\(^o^)/