一个初学者的问题
每次创建jsp文件都 会生成这几行代码?它们 是什么意思?怎么应用?
<meta http-equiv= "pragma " content= "no-cache ">
<meta http-equiv= "cache-control " content= "no-cache ">
<meta http-equiv= "expires " content= "0 ">
<meta http-equiv= "keywords " content= "keyword1,keyword2,keyword3 ">
<meta http-equiv= "description " content= "This is my page ">
------解决方案--------------------这些是HTML的描述信息,和JSP无关!
<meta http-equiv= "pragma " content= "no-cache ">
<meta http-equiv= "cache-control " content= "no-cache ">
<meta http-equiv= "expires " content= "0 ">
前三行是设置禁用页面缓存的哦!
<meta http-equiv= "keywords " content= "keyword1,keyword2,keyword3 ">
这行是页面信息的关键字,给搜索引擎的蜘蛛程序抓取信息的时候用的哦!
<meta http-equiv= "description " content= "This is my page ">
这行是页面的描述!
咱们关注的JAVA代码,不必理会这些东东的哦!嘿嘿!
------解决方案--------------------META标签用来描述一个HTML网页文档的属性,例如作者、日期和时间、网页描述、关键词、页面刷新等
------解决方案--------------------这个是HTML标签,比如有编码信息,和搜索引擎利于搜索到的标签
------解决方案--------------------一楼正解