*前言
学习这门学科之前,感觉是非常简单,往往现实都不是想象的那样。听老师教课的的时候感觉能听懂,基本上也完全掌握了,实际上做的时候,磕磕碰碰,浪费了大量的时间,因此我自从接触了这门学科了解到,不论是html还是其他计算机相关的科目时,都必须自己动手去做,脑子里必须要有一个整体的模板,思路要清晰,多做一些例子,基本上就完全可以随心应手的去设计想要的网站,不仅效率高,而且速度快。长话短说,接下来进入HTML的学习。

创新互联建站长期为成百上千家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为五通桥企业提供专业的做网站、网站制作,五通桥网站改版等技术服务。拥有10年丰富建站经验和众多成功案例,为您定制开发。
html的入门
这是html的一个初步轮廓。接下来就是如何设计网站,首先接触的是文本标签。
1.文本标签
标题标签: h2~h7 标题是大到小
标题
标题
标题
标题
标题
标题水平线标签:hr ,在水平面出现一条线
滚动标签:
marquee:
direction:滚动的方向 up down left(默认值) right
behavior:scoll: 循环滚动 alternate:来回滚动 slide:只滚动一次
scollamount:滚动的速度 指定整数值
段落标签:p
中间输入段落内容
段落缩进 :blockquote
正常的段落模式,中间为内容部分。
原样输出标签:pre
中间不论有任何东西,哪怕是标签之类的都可以显示出来。
上下标标签:sup sub
列表标签:
有序列表:
ol li(列表项) ol默认的属性type:默认的属性值"1"
无序列表
ul li(列表项) ul 默认的属性type:默认的属性值:"disc"在html中常见的转义字符
空格:
版权所有:© 显示内容:©
注册商品:® 显示内容:®
列表标签:
有序列表:
ol li(列表项) ol默认的属性type:默认的属性值"1"
无序列表
ul li(列表项) ul 默认的属性type:默认的属性值:"disc"
2.图像标签
img标签
属性:
src:导入图片的路径
width:图片的宽度 1)指定固定大小 px(像素) 2)百分比
height:图片的高度
title:鼠标悬浮在图片上会显示文字
alt:替代文本,当图片加载失败的时候,替代文本就会起作用

3.超链接标签。
超链接标签:a标签
常用的属性:
href:连接资源地址(URL)或者资源文件
** target:打开资源的方式:1)_self:当前窗口直接打开 2)_blank 新建窗口打开 **这个要特别注意看是否重新打开一个界面。
常见的协议:
file:// 文件协议:打开本地文件的协议
http:// ---hosts文件中找是否有ip对应的域名,找不到---调用网卡进行联网
会在网络运营商(DNS) ---- 找到就访问百度服务器 --- 返回给用户首页
thunder:// 迅雷协议
mailto: 邮件协议
超链接的作用:
1)可以连接资源文件
2)可以作为锚链接来使用
A:方式1: 针对在同一个html页面下
a:打锚点(标记)
b:创建跳转链接
跳转
B:方式2:在不同html页面的使用
a:在另一个页面的某个位置打锚点(标记)
b:在当前页面下创建跳转链接
跳转
总体来说,超链接就是打一个锚点,然后就可以创建连接!
4.表格标签
表格标签:table
表格要有效果: 属性: border:边框
align:表格在浏览器中对齐方式
with和height:宽度和高度
行标签:tr
列标签:td
表头标签:th 自动居中 加粗
单元格的合并:
行合并:rowspan
列合并:colspan
5.表单标签
表单标签:form标签
action:必须写 提交的地址
method:提交方式
get post
两种方式的区别?
1)get方式提交,将用户的信息提交的地址栏中,不安全;post提交方式不会将用户信息提交到地址栏中
2)get方式提交,文件大小限制,不超过64kb;post方式,提交的文件的无限制!
首选post
文本输入框:type="text" name属性必填:用来给系统后台标记
密码输入框:type=“password”
单选框:type="radio"
name:将性别数据看成同一组信息,在这一组中只能选出一个选项。
复选框:type="checkbox"
name:将性别数据看成同一组信息,在这一组中,可以选出多种选项。
文本域:textarea
rows:属性:有多行
cols:一行有多个字符
提交按钮:type="submit"提交
type="reset"重置
type="button"
onclick="testClick()"
基本
文件
流程
错误
SQL
调试
- 请求信息 : 2026-06-03 23:37:18 HTTP/1.1 GET : /article/ggsohc.html
- 运行时间 : 1.4740s ( Load:0.0066s Init:0.8248s Exec:0.6333s Template:0.0093s )
- 吞吐率 : 0.68req/s
- 内存开销 : 2,235.99 kb
- 查询信息 : 12 queries 5 writes
- 文件加载 : 36
- 缓存信息 : 0 gets 0 writes
- 配置加载 : 130
- 会话信息 : SESSION_ID=djrhti1bs9u8h56dpvs9d5ffp6
- /www/wwwroot/tsicrk.com/index.php ( 1.09 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/ThinkPHP.php ( 4.61 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Think.class.php ( 12.26 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Storage.class.php ( 1.37 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Storage/Driver/File.class.php ( 3.52 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Mode/common.php ( 2.82 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Common/functions.php ( 53.56 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Hook.class.php ( 4.01 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/App.class.php ( 13.49 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Dispatcher.class.php ( 14.79 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Route.class.php ( 13.36 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Controller.class.php ( 11.23 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/View.class.php ( 7.59 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/BuildLiteBehavior.class.php ( 3.68 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php ( 3.88 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/ContentReplaceBehavior.class.php ( 1.91 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Conf/convention.php ( 11.15 KB )
- /www/wwwroot/tsicrk.com/App/Common/Conf/config.php ( 2.14 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Lang/zh-cn.php ( 2.55 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Conf/debug.php ( 1.49 KB )
- /www/wwwroot/tsicrk.com/App/Home/Conf/config.php ( 0.31 KB )
- /www/wwwroot/tsicrk.com/App/Home/Common/function.php ( 3.33 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/ReadHtmlCacheBehavior.class.php ( 5.62 KB )
- /www/wwwroot/tsicrk.com/App/Home/Controller/ArticleController.class.php ( 6.02 KB )
- /www/wwwroot/tsicrk.com/App/Home/Controller/CommController.class.php ( 1.60 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Model.class.php ( 60.11 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db.class.php ( 32.43 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db/Driver/Pdo.class.php ( 16.74 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Cache.class.php ( 3.83 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Cache/Driver/File.class.php ( 5.87 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Template.class.php ( 28.16 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Template/TagLib/Cx.class.php ( 22.40 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Template/TagLib.class.php ( 9.16 KB )
- /www/wwwroot/tsicrk.com/App/Runtime/Cache/Home/7540f392f42b28b481b30614275e4e55.php ( 17.71 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/WriteHtmlCacheBehavior.class.php ( 0.97 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/ShowPageTraceBehavior.class.php ( 5.24 KB )
- [ app_init ] --START--
- Run Behavior\BuildLiteBehavior [ RunTime:0.000005s ]
- [ app_init ] --END-- [ RunTime:0.000030s ]
- [ app_begin ] --START--
- Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000305s ]
- [ app_begin ] --END-- [ RunTime:0.000328s ]
- [ view_parse ] --START--
- [ template_filter ] --START--
- Run Behavior\ContentReplaceBehavior [ RunTime:0.000054s ]
- [ template_filter ] --END-- [ RunTime:0.000074s ]
- Run Behavior\ParseTemplateBehavior [ RunTime:0.006396s ]
- [ view_parse ] --END-- [ RunTime:0.006422s ]
- [ view_filter ] --START--
- Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000195s ]
- [ view_filter ] --END-- [ RunTime:0.000210s ]
- [ app_end ] --START--
- 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIMIT 1' at line 1
[ SQL语句 ] : SELECT `id`,`pid`,`navname` FROM `cx_nav` WHERE ( id= ) LIMIT 1
- 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIMIT 1' at line 1
[ SQL语句 ] : SELECT `id`,`navname` FROM `cx_nav` WHERE ( id= ) LIMIT 1
- 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
[ SQL语句 ] : SELECT `id`,`navname` FROM `cx_nav` WHERE ( pid= )
- [8] Undefined index: pid /www/wwwroot/tsicrk.com/App/Home/Controller/ArticleController.class.php 第 47 行.
- [8] Undefined index: db_host /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db.class.php 第 120 行.
- [8] Undefined index: db_port /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db.class.php 第 121 行.
- [8] Undefined index: db_name /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db.class.php 第 122 行.

1.4740s
