473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Do put / character in end of meta tag is required?

oranoos3000
107 100+
hi
i ' d like to know that puting / character in the end of meta tag is required
the version of my doctype that i used is strict
and another my question is as follow
and what is meaning of property xmlns in html tag <html xmlns="http://www.w3.org/1999/xhtml">?

thanks alot
Jan 30 '10 #1
2 2181
Dormilich
8,658 Expert Mod 8TB
those two things are required, if you serve your document as XML*. the / denotes an empty element and the xmlns attribute is the namespace that you must apply in XHTML.

* - that is, the MIME type of the document is: text/xml, application/xhtml+xml, application/xml, etc. but not text/html.
Jan 30 '10 #2
drhowarddrfine
7,435 Expert 4TB
The meaning of the xmlns part is "XML namespace". For the element
<html xmlns="http://www.w3.org/1999/xhtml"> you are stating that elements are in the XHTML namespace as defined by the W3 at that URI. If the user agent or browser does not know if the tags you use are legitimate, it can go to that address to check. Browsers know what html and xhtml are so they really don't do that.

It helps in cases where you might have a <p> element, for example, that you want to have two different meanings in two cases. You would write them one as <html:p> and the other as <mytag:p> if you stated the namespace as:

<html xmlns="http://www.w3.org/1999/xhtml"
mytag:xmlns="http://www.mytags.com/mytags">

Chances are, you don't serve your page as xhtml anyway so using that line is as useless as writing markup with xhtml.
Jan 30 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: WindAndWaves | last post by:
Hi Folk Here I am writing my first php / mysql site, almost ready, and now this... charactersets.... The encoding that I use on my webpage is: <META HTTP-EQUIV="content-type"...
10
by: David Komanek | last post by:
Hi all, I have a question if it is possible to manipulate the settings of character encoding in Ms Internet Explorer 5.0, 5.5 and 6.0. The problem is that the default instalation of Ms IE seems...
38
by: Haines Brown | last post by:
I'm having trouble finding the character entity for the French abbreviation for "number" (capital N followed by a small supercript o, period). My references are not listing it. Where would I...
19
by: Ian | last post by:
I'm using the following meta tag with my documents: <meta http-equiv="Content-Type" content= "text/html; charset=us-ascii" /> and yet using character entities like &rsquo; and &mdash; It...
50
by: The Bicycling Guitarist | last post by:
A browser conforming to HTML 4.0 is required to recognize &#number; notations. If I use XHTML 1.0 and charset UTF-8 though, does &eacute; have as much support as é ? Sometimes when I run...
4
by: HeroOfSpielburg | last post by:
Hello, I am trying to using the Shift_JIS character set in my web pages, and have specified it as such in the <head>. <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> ...
2
by: John Dalberg | last post by:
The below html validates correctly on w3.org's html validator when the file has an html extension. When the same file gets an aspx extension, I get the error below from the validator. This tells me...
3
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class....
1
by: davidson1 | last post by:
hai friends.. I have the following code which should the user to enter only alphabetic characters...but this program...allow user to enter { } |\`~ characters also..how to avoid that......... ...
0
by: Mihai N. | last post by:
I have observed that there are a couple of character sets that are Very short answer: that meta tells the browser what the encoding of the web page is. If the browser gets the code page wrong,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.