www.webdeveloper.com
Results 1 to 7 of 7

Thread: Header - Meta tag - HTML XHTML transition

  1. #1
    Join Date
    Sep 2008
    Posts
    7

    Header - Meta tag - HTML XHTML transition

    Hi!
    I have created as an amateur my site (www.giuseppebocci.com) 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!!

  2. #2
    Join Date
    Oct 2013
    Location
    3rd planet from the sun
    Posts
    177
    lines 6 and 7 need to be closed for proper validation

    Code:
    <meta name="Keyword" content="resina, resine, arezzo, pavimenti, pavimento, epossidica, epoxi, ecocemento, cemento, eco, bio" />
    <meta name="Description" content="rivestimenti decorativi artigianali in resina epossidica ed ecocemento per abitazioni, negozi, uffici, Arezzo" />
    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"> you should include this one
    HTML5: <meta charset="UTF-8">

  3. #3
    Join Date
    Sep 2008
    Posts
    7
    Thank you very much kralkx!
    I understand and I did as you suggested.
    Cheers!

  4. #4
    Join Date
    Sep 2006
    Location
    new york
    Posts
    266
    Why not use HTML 5?
    Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Use relevant words for search engines</title>
    <meta name="description" content="Repeat relevant words for search engines">
    <meta name="keywords" content="repeat,comma,separated,relevant, words">
    <meta name="author" content="first last">
    
    <meta name="viewport"  content="width=device-width, user-scalable=yes">
    
    <script type="text/javascript" src="file-path-name.js"> </script>
    <link rel="stylesheet" type="text/css" href="file-path-name.css">
    <script type="text/javascript">
    /*if you need the embed some javascript
     but better to link to external file*/
     </script>
     <style type="text/css">
     .red_box h3, .red_box p { text-align: center; color: #993366; font-size: medium; }
     </style>
    </head>
    
    <body>
    <h1>Repeat relevant words for search engines</h1>
    <p>Check this out <a href="http://www.techonthenet.com/html/elements/meta_tag.php">http://www.techonthenet.com/html/elements/meta_tag.php</a>.</p>
    <p>Get rid of all those inline style="property:value" and <span>tages</span>.  Put your styles in linked external style sheet (wiwthout any HTML tags) and only embed style variations for specific page.</p>
    </body>
    </html>

  5. #5
    Join Date
    Sep 2008
    Posts
    7
    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!
    Last edited by beppe68; 06-08-2014 at 06:25 AM. Reason: correction

  6. #6
    Join Date
    Jun 2014
    Posts
    8
    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

  7. #7
    Join Date
    Apr 2014
    Location
    India
    Posts
    15
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles