What does this code mean and I need it?

2 replies
Hi there,

I'm working on site (wordpressbased) for a client, and she is just now insisting it has this code:

meta http-equiv="Content-Type"; charset=utf-8"/> Also, on 2.<html xmlns= "http://www.w3.org/1999/xhtml&amp;amp;quot;

She says it's under "view source is #4. Meta charset=utf-8"

I don't don't know what any of this means. I admit, this site is from a (premium) template, so I'm not familar with this code. What is it, do I need it and how do I get it? (it's my first site for someone other than myself and I'm wishing I never took this job.)
#code
  • Profile picture of the author OldLodgeSkins
    The first one declares the character encoding of the page. Although it's incomplete but you've probably just copy / pasted quickly forgetting the opening <.
    UTF-8 is the standard nowadays. If you declare your page as having this character encoding then you should also actually save it with this encoding - this must be an option of the software you're working with.

    The second one is required for an xHTML document - I haven't checked Wordpress in some time but chances are it is made with xHTML. SO this should automatically be part of your template. Same as before you're missing the closing > here. See HTML html xmlns Attribute

    On a side note, this is (x)HTML 101... I'm surprised you don't now this if you're building a website for a client.
    Signature
    Do you use Facebook ? Then you can make money just by inviting people to a Facebook group ! It's called the Instant Income System. How cool is that?
    {{ DiscussionBoard.errors[6110880].message }}
  • Profile picture of the author mgreener
    Hi,

    You can paste it on the top of the header.php file of the theme. Just make sure that it is all correct with opening and closing <>, etc. and in the right place.
    {{ DiscussionBoard.errors[6110944].message }}

Trending Topics