uCoz Community For Webmasters Site Promotion <!DOCTYPE> tag |
<!DOCTYPE> tag |
Please explain how can add DOCTYPE tag to my site. I found info about it online, but still don't know how to write it properly. When tried to add my site to Google one of the errors - "no DOCTYPE found".
I saw this feature in Settings, but don't know how to use it: <!DOCTYPE> tag value: This tag will be added to the very beginning of the document. Use this setting only if you understand its meaning. Thank you. |
Use search engines to find information.
I'm sorry but we deal a lot of questions daily and our job isn't to explain uCoz non-related [... With uCoz since December 2 2007 ...]
|
Ok, Dartz. Thanks anyway!
Added (2010-02-02, 5:17 Pm) |
Try using this doctype:
Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> it is the one that is usually used in ucoz templates. Doctype is a tag which tells your internet browser where to look for information about a certain tag or command if t doesn't understand it. For example ie8 and 7 don't unederstand the comand Code position:fixed |
Hi, I am trying to make HTML on my site valid, and one of the errors validator throws is 'No known Document Type could be detected'. So in CP -> Customize design in the 'Site Pages' section, above the <html xmlns="http://www.w3.org/1999/xhtml">
tag I added: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> After adding this the page appears broken: now there is a gap about 100 pix between the banner and page content, take a look below. I also tried 'transitional': <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> with the same result. I am using design #822. Please Help. Attachments:
3780336.png
(213.5 Kb)
Post edited by skipr - Saturday, 2012-02-11, 5:43 PM
|
skipr, adding in the <!DOCTYPE> tag does effect the layout of pages and how elements on the page interact with each other. As to your method of adding the <!DOCTYPE> tag uCoz have given it's users an easier method where you can simply paste the tag in the box at the bottom of the page after opening Control Panel > Settings > Common settings.
At the moment I am unable to see the problem you are encountering and the <!DOCTYPE> tag is on the page so if you don't mind me asking what browser are you currently viewing/developing your site in? Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
Paradox, I tried doing it in Common Settings. The result is the same. I suspect something is wrong with the template #822.
Thank you for looking into this. Well, I just created a test site using the same template 822. It is empty. All I did - in Common Settings put <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> It created the same problem - take a look: http://aktest.ucoz.com/ Post edited by skipr - Monday, 2012-02-13, 2:41 PM
|
skipr, unfortunately I am not encountering the same problem that you are. What browser are you currently using? This may be a browser compatibility issue and not a problem with the design, I will continue to have a look into any problems that may be evident with the design though.
Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
Paradox, you are correct: this problem does NOT show in Firefox. However, it exists in IE 8.0 and Chrome 17.0. I still think it needs to be fixed.
Thank you. Added (2012-02-20, 2:58 PM) Quote (skipr) Paradox, you are correct: this problem does NOT show in Firefox. However, it exists in IE 8.0 and Chrome 17.0. I still think it needs to be fixed. Thank you. Paradox, is there any chance this will be fixed? Or you implicitly mean that uCoz supports only FireFox? Sorry to be a pain in the rear... |
skipr, sorry about the late reply. It is no problem, everyone is entitled to ask questions.
As to the problem you are encountering though this isn't actually something uCoz are able to fix. The <!DOCTYPE> tag is a specification set out by the WWWC and is supported seperately by each different browser/browser version released by Google, Mozilla, Opera, Apple etc. The latest versions of Chrome, Firefox, Opera, Safari and IE as fas as I am aware all support the latest <!DOCTYPE>'s although IE currently doesn't support some of the latest HTML/CSS3 codes. The best advice I can give to provide a solution to this problem is to check that all your programs are the latest release version and if users encounter the problm to advise them that they may need to update their browser. Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
Quote (Paradox) As to the problem you are encountering though this isn't actually something uCoz are able to fix. The <!DOCTYPE> tag is a specification set out by the WWWC and is supported seperately by each different browser/browser version released by Google, Mozilla, Opera, Apple etc. The latest versions of Chrome, Firefox, Opera, Safari and IE as fas as I am aware all support the latest <!DOCTYPE>'s although IE currently doesn't support some of the latest HTML/CSS3 codes. Paradox, I cannot agree with you. I tested template #822 with all existing <DOCTYPEs> and it has a problem with all of them. I tried a couple other templates: #798 and #788 and they are free of this problem. Now.. you are saying that this is a problem of IE and Chrome and these need to get fixed to comply with uCoz' template #822 |
Thanks for this thread ,now I understand why it looks difrent in one browser then the other
But....... Do I add the whole code to the spcified bar in common setting Quote <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Where do I put the other code? Quote position:fixed1 |
carloscompu, that 'other' code was an example of support for the newer CSS styles at the time. There is no need for it in relation to
Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
| |||