• 对WEB标准以及W3C的理解与认识


    在写代码的时候应该注意:

    1.标签闭合 
    2.标签小写 
    3.不能随意嵌套

    提高被搜索引擎搜到几率:

    mate中的name变量【其中keywords和description尤其重要】

    Meta name=”Kyewords”Lang=”EN”Content=”vacation,greece,sunshine”

    Meta name=”Description” Content=”你网页的简述”

    Meta name=”Robots” Content=”All|None|Index|Noindex|Follow|Nofollow” 
    [ all:文件将被检索,且页面上的链接可以被查询; 
        none:文件将不被检索,且页面上的链接不可以被查询;(和 “noindex, no follow” 起相同作用) 
        index:文件将被检索;(让robot/spider登录) 
        follow:页面上的链接可以被查询; 
        noindex:文件将不被检索,但页面上的链接可以被查询;(不让robot/spider登录) 
       nofollow:文件将不被检索,页面上的链接可以被查询。(不让robot/spider顺着此页的连接往下探找)] 
        
    Meta name=”Author” Content=”张三,abc@sina.com”

    Meta name=”Copyright” Content=”本页版权归Zerospace所有。All Rights Reserved”

    Meta name=”Generator” Content=”PCDATA|FrontPage|”

    META name=”revisit-after” CONTENT=”7 days”

    提高网页加载速度

    1.把JavaScript和css写到外部文档 
    2.去掉不必要的空格和注释 
    3.尽量不使用table布局,尽量使用不嵌套的table布局 
    4.指定图像和table的大小 
    5.尽量不要使用图像来代替文本(比如在导航栏) 
    6.延迟脚本加载,将脚本放在页面底部 
    7.尽量使用png格式的图像 
    8.检查丢失的文件和图像

     
  • 相关阅读:
    Java对ArrayList进行排序
    Android app Splash页的替代方案
    算法
    Android动画 三种动画
    oracle连接-会话-进程
    spring使用Redis自定义前缀后缀名(去掉SimpleKey []+自定义)
    Redis(RedisTemplate)运算、算法(incr、decr、increment)
    Redis(RedisTemplate)使用hash哈希
    Redis(RedisTemplate)使用list链表
    Redis(RedisTemplate)使用string字符串
  • 原文地址:https://www.cnblogs.com/leeshine-luo/p/5234516.html
Copyright © 2020-2023  润新知