/    Sign up×
Community /Pin to ProfileBookmark

Header – Meta tag – HTML XHTML transition

Hi!
I have created as an amateur my site ([URL=”http://www.giuseppebocci.com”]www.giuseppebocci.com[/URL]) using some internet site builder and I am facing a problem in compiling the header, as I am not expert in xhtml.
My aim is to complete it at the benefit of web search engines (mainly google).
Here is what I did so far:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http………………………..-transitional.dtd”>
<html xmlns=”http……………/1999/xhtml” xml:lang=”it” lang=”it”>
<head >
<meta name=”google-site-verification” content=”0S_WPrH6hcnujFssvF6K7bjLiRgMsoX90ajY4jc2z qw” />
<title> Rivestimenti decorativi in resina </title>
<meta name=”Keyword” content=”…words”>
<meta name=”Description” content=”…..words”>
<meta content=”(c){YEAR} {COMPANY} all rights reserved.” name=”copyright” />
{FAVICON}
<!–CSS START–>
{STYLE_SHEET}
<!–CSS END–>
</head>

Could anybody tell me If I must add/change something?

Also, I have seen this tags I don’t understand:
<meta http-equiv=”Content-Type” content=”…; charset=…” />
<meta charset=”…” >

Many thanks in advance!!

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@kralcxJun 07.2014 — lines 6 and 7 need to be closed for proper validation

<i>
</i>&lt;meta name="Keyword" content="resina, resine, arezzo, pavimenti, pavimento, epossidica, epoxi, ecocemento, cemento, eco, bio" /&gt;
&lt;meta name="Description" content="rivestimenti decorativi artigianali in resina epossidica ed ecocemento per abitazioni, negozi, uffici, Arezzo" /&gt;


Definition and Usage

The http-equiv attribute provides an HTTP header for the information/value of the content attribute.

The http-equiv attribute can be used to simulate an HTTP response header.

Differences Between HTML 4.01 and HTML5

Using http-equiv is no longer the only way to specify the character set of an HTML document:

HTML 4.01: <meta http-equiv="content-type" content="text/html; charset=UTF-8"> [B]you should include this one[/B]
HTML5: <meta charset="UTF-8">
Copy linkTweet thisAlerts:
@beppe68authorJun 07.2014 — Thank you very much kralkx!

I understand and I did as you suggested.

Cheers!
Copy linkTweet thisAlerts:
@auntniniJun 07.2014 — Why not use HTML 5?
<i>
</i>&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="UTF-8"&gt;
&lt;title&gt;Use relevant words for search engines&lt;/title&gt;
&lt;meta name="description" content="Repeat relevant words for search engines"&gt;
&lt;meta name="keywords" content="repeat,comma,separated,relevant, words"&gt;
&lt;meta name="author" content="first last"&gt;

&lt;meta name="viewport" content="width=device-width, user-scalable=yes"&gt;

&lt;script type="text/javascript" src="file-path-name.js"&gt; &lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="file-path-name.css"&gt;
&lt;script type="text/javascript"&gt;
/*if you need the embed some javascript
but better to link to external file*/
&lt;/script&gt;
&lt;style type="text/css"&gt;
.red_box h3, .red_box p { text-align: center; color: #993366; font-size: medium; }
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;h1&gt;Repeat relevant words for search engines&lt;/h1&gt;
&lt;p&gt;Check this out &lt;a href="http://www.techonthenet.com/html/elements/meta_tag.php"&gt;http://www.techonthenet.com/html/elements/meta_tag.php&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Get rid of all those inline style="property:value" and &lt;span&gt;tages&lt;/span&gt;. Put your styles in linked external style sheet (wiwthout any HTML tags) and only embed style variations for specific page.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@beppe68authorJun 08.2014 — Hi auntnini!

The site has been made by using an online site creating service. I'm far from being an expert, so I only slightly change the code they provide (which I understand is 1.0 transitional). My aim was to set the page for the search engines. That is the reason.

By the way, your code example is very interesting to me, could you do the same for xhtml 01?

I'm particularly interested in the following line in the body: <h1>Repeat relevant words for search engines</h1>, can I add this with 01 too?

Thanks!
Copy linkTweet thisAlerts:
@ArtiJun 10.2014 — Metadata is always passed as name/value pairs.

The content attribute MUST be defined if the name or the http-equiv attribute is defined. If none of these are defined, the content attribute CANNOT be defined.

Thanks
Copy linkTweet thisAlerts:
@rajaroraJun 10.2014 — Hi ,

The above is good, but you can also use this

<META NAME="classification" CONTENT="">

<META NAME="Reply-to" CONTENT="">

<META NAME="Subject" CONTENT="" />

<META NAME="author" CONTENT="">

<META NAME="revisit-after" CONTENT="4 days">

<META NAME="content-Language" CONTENT="English">

<META NAME="distribution" CONTENT="Global">

Hope this will also help you.
×

Success!

Help @beppe68 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...