Code Monkey home page Code Monkey logo

Comments (2)

MMmaXingXing avatar MMmaXingXing commented on August 13, 2024

title 与 h1

 1、title:title指的是网页的标题,描述的是网页的功能作用用途等。一般显示在浏览器标题栏,收藏时候的标题默认为title。

 2、h1:h1指的是文章的标题,面对用户,更突出其视觉效果。一般一个网页建议最好只有一个h1,因为多个h1会稀释主题。

其他: 一个网站可以有多个title,最好一个单页一个title,SEO优化权重title > h1,好的页面是title和h1并存,既突出文章主题,又突出网站主题和关键字。

b 与 strong

 1、b:b标签的含义是blod,是一个实体标签,它所包围的字体会被变为粗体。

 2、strong: strong标签是一个语义标签,表示包围的内容被强调,强调的样式为粗体。

i 与 em

 1、i:i标签表现为斜体,一般用于标识和当前文章中表示不同特性的字符,比如一个技术术语,一个想法,一个外文习语。

 2、em:em标签是一个语义标签,表示强调,强调的样式为斜体,会改变原有文字的含义。

from daily.

GenXiaoLe avatar GenXiaoLe commented on August 13, 2024

title与h1

  • 共同点
    title与h1都属于标题类标签,只不过title侧重于网站主题,h1侧重于页面的标题主旨,一个网站的优化最好是二者都有。
  • 区别
    从seo角度来说,title比h1的权重要高,对于搜索引擎搜索来说更为重要,实用性更广;
    从使用频率来说,一个页面内最好只有一个h1,因为h1属于页面标题,太多的话会造成文章主题不明;title最好是在网站内,每个单页面都能有一个,这样可以更好的说明网站主题。

b 与 strong

  • 共同点
    都是可以使内容样式加粗。
  • 区别
    从标签意义上来说,strong是逻辑标签,是一种加强字符的语气的标签,意思是"强调",强调样式为粗体。b是实体标签,含义是bold,即加粗,将包围的字体变成粗体;
    从seo角度来说,strong的权重更高,同样实现加粗效果,建议使用strong。

i 与 em

  • 共同点
    都是可以使内容样式变为斜体。
  • 区别
    从标签意义上来说,em是逻辑标签,是一种加强字符的语气的标签,意思是"强调",强调样式为斜体。i是实体标签,将包围的字体变成斜体;
    从seo角度来说,em的权重更高,同样实现字体斜体效果,建议使用em。

from daily.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.