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
3 answers

extend an empty div the length of a page

I have two divs set at 100 pixels absolutely positioned on the left and right sides of the page. I have a content section margined between them. I want the images to scroll with the page as you scroll from top to bottom of the larger pages. There…
0
votes
1 answer

w3validator API - testing XHTML1 DOCTYPE

I am building a newsletter builder in PHP and one of my requirements is that once the email has been composed in HTML it is checked to see if it meets the w3 standards and a notice is thrown to the end user if any invalid errors are found from the…
0
votes
1 answer

Is it possible to pass w3 xhtml strict validation and still use google analytic code on my webpage?

Is it possible to pass w3 xhtml strict validation and still use google analytic code on my webpage?
HumbleHelper
  • 423
  • 2
  • 5
  • 7
0
votes
1 answer

Canvas validation XHTML

I am trying to validate my hxtml file but there is a problem with canvas element. w3c errors
0
votes
1 answer

Valid xhtml 1.0 strict JS toggle without speculative parsing error

i know there are tons of toggle-scripts out there, but i couldn't find any to fit my needs so far. It should be: valid xhtml 1.0 strict valid css 2.1 / functional for browsers without css 3 visible to users without javascript (just visible... no…
Stony
  • 140
  • 7
0
votes
3 answers

How do you detect DOCTYPE (Transitional or Strict) server-side in ASP.NET?

I am wondering if there is a way to detect from the server-side which DOCTYPE the page is specified as. I have some HTML and CSS in a custom WebControl that renders differently depending on which DOCTYPE the page is. Is there a Page property or a…
SAGExSDX
  • 683
  • 6
  • 12
0
votes
1 answer

Nested Incrementing Lists XHTML + Slidy

I am new to XHTML and I could use a little bit of help. I am using a tool called 'Slidy' to help me put together a slideshow on the net, I would like to make an incremented list so that when you advance the slideshow (click or press the right arrow)…
Jordan
  • 4,928
  • 4
  • 26
  • 39
0
votes
1 answer

Template conversion from XHTML 1 to HTML5 , CSS Error

This is a simple 3-column template, with Side-bars on Left and on Right sides and content in the middle. I'm not able to understand the spacing between the columns, there's too much of space between the content(post) column and right…
SriSreedhar
  • 409
  • 5
  • 6
0
votes
4 answers

How should i center my page?

I have two parts to my site. The main body and the sidebar. The body is 6in and sidebar will probably be 200px. How do i center my page? So there is equal space on the left and right side? It should center no matter the resolution. Using XHTML 1.0…
user34537
0
votes
0 answers

Horizontal line (jpg) and other picture has a mysterious approx 5px distance. Newsletter HTML

I have troubles with making an HTML newsletter, but only at the part, where I have to insert a horizontal line without any spacing between the horizontal line and a picture. I this at the moment (with and without borders): And would like to achieve…
Narc0t1CYM
  • 499
  • 6
  • 25
0
votes
1 answer

XHTML Validation issue trying to render '&' character inside an ASP.Net control

Ok, the description is kind of funky, but here's my problem: All Leads (include Archive & Trash) All Leads (include Archive & Trash)
Micah
  • 111,873
  • 86
  • 233
  • 325
0
votes
1 answer

Attribute value is making xhtml page to give error

I have an xhtml page which retrieves a form from an HTML page.When I run the xhtml page it gives me an error.The error is the value attribute which contains the "=","&", sign.What should I do in order to make the xhtml page work with the attribute…
Johnson Smith
  • 55
  • 1
  • 1
  • 7
0
votes
0 answers

XHMTL 1.0 Youtube Video

I've gotten the following code :
user3339333
  • 129
  • 1
  • 5
0
votes
1 answer

Unable to get my nav menu horizontal

Whenever I try to make it horizontal I get the sub menus overlapping. Here is the code. It looks like it is formatted correctly when it is vertical so not sure what I am doing wrong here. Any help would be appreciated!
0
votes
2 answers

-Cannot Link CSS page to HTML

I am creating a html template for a webpage in a free HTML-kit text editing program. Both my xhtml and css files are in the same directory. I can link pictures to xhtml template but my css page is not affecting any change.
M. Raza
  • 65
  • 1
  • 9