文字出版社:页眉
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了文字出版社:页眉相关的知识,希望对你有一定的参考价值。
<pre><code>* Use the proper DOCTYPE.* The opening tag should include language_attributes().
* The "content-type" meta element should be placed before everything else, including the title element.
* Use bloginfo() to fetch the title and description.
* Use automatic feed links to add feed links.
* Add a call to wp_head(). Plugins use this action hook to add their own scripts, stylesheets, and other functionality.
</code></pre>
<p>Here's an example of a correctly-formatted html5 compliant head area:</p>
<!DOCTYPE html> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title><?php wp_title(); ?> <?php bloginfo( 'name' ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> </head>
以上是关于文字出版社:页眉的主要内容,如果未能解决你的问题,请参考以下文章