There are <meta>
tags and other things you can place in the <head>
of your HTML document. What <meta>
tags etc. and best practices do you make use of in your HTML document to make it more accessible, searchable, optimized etc.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
Do your users a favor and make their IE engine switch to Chrome one when Chrome Frame is installed :)
In addition to the answers above I use the Dublin Core initiative meta-tags.
They are very useful for actual content/papers etc.
etc.
First, make sure the < !DOCTYPE is the verry first element of the document, i.e. no space, tab or corrupted BOM marker.
In my case:
Content-type
,description
, andkeywords
media=""
).<script>
tag that links to external javascript files.All tags should follow the W3C's standard. The W3C site has a more technical and detailed section about the HTML
<head>
section.IMHO, the two most important child tags of
<head>
are<title>
and the Content Type meta tag. Search engines actively look at<title>
. Whereas the other meta tags are often ignored. As a multi-lingual web user - I cannot stress more the importance of adding the Content Type tag because without it, the browser needs to autodetect the character set of the web page and this operation is often flaky. The result ends up being that various characters are not rendered correctly to the user or sometimes none at all in the case of Japanese or Chinese.Here is an snippet of some of the header code from a current project of mine:
As far as I'm aware, most search engines ignore any "keywords" or "description" meta tags, instead preferring to read the content of the document.
Getting the page title right however, is of extreme importance.