Questions tagged [xhtml-1.0-strict]

XHTML 1.0 Strict is a legacy version of HTML that was formulated as the XML equivalent to strict HTML 4.01. It includes only the elements and attributes that had not been marked deprecated in the HTML 4.01 specification.

Along with XHTML 1.0 Strict there were also XHTML 1.0 Transitional and Frameset versions.

XHTML was a name formerly used for a casting of HTML in XML syntax, to use with XML parsers.

http://en.wikipedia.org/wiki/Xhtml

XHTML 1.0 Strict does not include presentational tags (like <font> or <b>) or the <script> tag, meaning that all other languages other than HTML or XML (that are allowed) must be declared as either links to files (<link type="text/css" href="file.css" />, <script type="text/javascript" src="file.js" />) or declared within the file as valid tags (<style type="text/css">). Currently, JavaScript must be referenced using the src attribute of the <script> tag, you cannot type it directly onto your XHTML 1.0 Strict page.

XHTML 1.0 Strict has certain requirements that all pages with its doctype must meet:

  1. The doctype <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ensures that the web browser knows that the document type is XHTML 1.0 Strict.

  2. The character encoding can be added in two ways: 1. <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> in the <head> element, or 2. <?xml version="1.0" encoding="utf-8"?> above the doctype. This ensures that odd characters, for example π,  or 煸 are correctly displayed.

185 questions
0
votes
2 answers

XHTML Strict Table with Varying Column Width

I'm trying to put together a navigation bar using a table: There are n links to different parts of the website There is one "logout" link, which is an icon of fixed size What I'd like to do is the following. The available width for the whole bar…
Martijn
  • 5,471
  • 4
  • 37
  • 50
0
votes
6 answers

How do you write Valid XHTML 1.0 Strict code when you are using javascript to fill an element that requires a child?

I'm running my site through the W3C's validator trying to get it to validate as XHTML 1.0 Strict and I've gotten down to a particularly sticky (at least in my experience) validation error. I'm including certain badges from various services in the…
Tim Visher
  • 12,786
  • 16
  • 58
  • 66
0
votes
1 answer

How can I tell rails to use xhtml strict instead of transitional?

So when you use scaffolding Rails will kick out some layouts that are xhtml transitional. I prefer strict. Is there some setting somewhere to do this? Or shall I continue to edit the doctype in the layouts?
Ryan Florence
  • 13,361
  • 9
  • 46
  • 63
0
votes
2 answers

Can't link external css to XHTML stict document

I've just begun to use Aptana Studio 3. I used Aptana 2 in school and it worked fine. However in Studio 3, I can't get my external css to link to my XHTML document. I've tried using absolute path, the commented part of the code. With HTML…
0
votes
1 answer

HTML Issue on Internet Explorer only. It works fine on the rest of the browsers

On our website we use magento with a custom template. And the website is rendered correctly in all browsers, except for the checkout process. In Internet Explorer it looks weird. I have already analyzed it using Firebug and Developer tools and I…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
0
votes
0 answers

Accessing ignored HTML tags in JavaScript

If we have a form tag without action attribute
..
in strict DOCTYPE, the renderer would ignore the form tag and F12 dev tools for IE and Firebug for FF will not show that form element in the rendered DOM. But the raw HTML…
vulcan raven
  • 32,612
  • 11
  • 57
  • 93
0
votes
4 answers

gap between footer and contentwrapper that doesnt go away

I am working on the following website http://bestofdesigns.be/studioregenbogen/index.html. Can somebody please look at the css and tell me why the footer is not attached to the content and why there is a gap between the menu and the…
benst
  • 553
  • 2
  • 12
  • 32
0
votes
1 answer

Collapse img tag when src path is wrong in XHTML1.0

I have an img tag. When the src path is wrong, I need to collapse the img tag. I can achieve this by using onerror in HTML4. However, XHTML1.0 is not allowing the onerror attribute. How can I achieve this in XHTML1.0? Thanks in advance
Manikandan
  • 673
  • 3
  • 12
  • 26
0
votes
2 answers

Animate pseudo class in jQuery

Is it possible to animate a pseudo class when it is activated, for example: I have to the following in my css: #gallery a span { border:#006553 3px solid; position:relative; overflow:hidden; display:block; top:0px; left:0px; …
Anriëtte Myburgh
  • 13,347
  • 11
  • 51
  • 72
0
votes
3 answers

Image cannot be loaded. Make sure the path is correct and the image exists

On my page I have a YouTube video's thumbnail as image, and I want to play the video using prettyPhoto after the user clicks on the image. How can I accomplish that? Here's my code for the image:
AlwaysANovice
  • 983
  • 4
  • 15
  • 34
0
votes
1 answer

Text Overflow Problem & Text Non Wrap

Scenario: One header DIV with three DIV's inside side by side floated left. Problem: "Text" from HEADER_A div is overflowing into HEADER_B DIV and so on. Screenshot / CSS: alt text…
Codex73
  • 5,690
  • 11
  • 56
  • 76
-1
votes
2 answers

Javascript Validation for assignment

I'm currently trying to validate my website for my assignment but I'm having trouble validating the Javascript I've used. The assignment requires me to stay in xHTML 1.0 Strict while using CSS and Javascript. I have 2 scripts that have problems as I…
Shaun
  • 23
  • 7
-1
votes
1 answer

Invalid code snippets in XHTML1.0

Can anyone advise why the following is not valid strict xhtml 1.0?

javapalava
  • 711
  • 1
  • 6
  • 15
-1
votes
2 answers

!DOCTYPE html destroyed page

I have strange bug with !DOCTYPE html. When I'm trying to use HTML5 Doctype, then my page looks weird. All scripts looks like not closed properly. But when I'm changing to !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"…
Donnie
  • 373
  • 2
  • 7
  • 28
-1
votes
2 answers

Will not calculate the Total Price

This is for an assignment and I cannot get it to output anything when I click the Submit button. It needs to be in XHTML 1.0 Strict per the instructor. Thank you!
1 2 3
12
13