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

How do you specify your Content Type in ASP.NET WebForms?

I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from within my…
user1228
8
votes
4 answers

Microdata itemprop causes W3C validator error

After adding Microdata to my pages, I got many errors from W3C validator complaining the itemprop: there is no attribute "itemprop" From code like this:

...

This is my DOCTYPE and html tag
LazNiko
  • 2,083
  • 3
  • 25
  • 39
8
votes
1 answer

XHTML strict span inside label is semantic

I'm using XHTML strict. I want to put a SPAN tag inside LABEL tag. Is it correct way?
Aneesh
  • 1,193
  • 3
  • 16
  • 26
7
votes
6 answers

Custom data in XHTML 1.0 Strict

I use some custom attributes in my html, for jquery stuff. I saw there are data-XYZ attributes in HTML5, but I need to be xhtml 1.0 strict. What other options do I have?
cambraca
  • 27,014
  • 16
  • 68
  • 99
7
votes
3 answers

How do I validate noscript+meta refresh tag in xHTML?

For visitors that don't support JavaScript, I'm redirecting them to a certain page - "js.html". For this, I have the following in all my files: Of course, this doesn't…
Jorre
  • 17,273
  • 32
  • 100
  • 145
6
votes
3 answers

Embed YouTube videos while staying XHTML 1.0 Strict?

Is there a way to embed a YouTube video while still staying standards compliant (XHTML 1.0 Strict)? Thanks in advance.
mclaughj
  • 12,645
  • 4
  • 31
  • 37
6
votes
2 answers

Is there a Java web framework that can reliably produce XHTML 1.0 Strict?

I'm starting a Java project where the client has mandated the use of XHTML 1.0 Strict. JSF Facelets, being XHTML-based seemed a good option at first, but I've found that they cannot be made to produce XHTML Strict, and this is considered a very low…
Michael Borgwardt
  • 342,105
  • 78
  • 482
  • 720
6
votes
5 answers

Use of
and accessibility

From this question/answer: Pausing in a screen reader for accessibility it seems that one shouldn't use
for presentation purposes when designing a website to be accessible. I take here accessible to mean that it works well with a screen…
Thomas
  • 1,085
  • 5
  • 19
  • 33
6
votes
2 answers

How can I produce an nested list in XHTML strict without giving the nested lists first element a double bullet?

I'm trying to create a list nested within a list using XHTML Strict 1.0. The problem is that with XHTML strict a ul element can not be nested directly within another ul element. Thus, the inner ul element has to be nested within a li element.…
Tomas Vinter
  • 2,690
  • 8
  • 36
  • 45
5
votes
8 answers

What is the Maxmium no of input tag in an html form?

i can't find any information inside the w3c html strict spec http://www.w3.org/TR/html4/sgml/dtd.html
sunnycmf
  • 531
  • 1
  • 5
  • 18
5
votes
8 answers

Is It Ever Justified To Open A New Window/Tab From A Hyperlink?

Simple question, spurred on by the removal of the target attribute in HTML 4.0 Strict and XHTML 1.0 Strict.
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
5
votes
6 answers

Is it considered more professional to write a website in strict rather than transitionl html?

I was wondering if it was considered more professional to write a website in strict xhtml rather than transitional. Is it something that should be done as you advance as a web developer, or is it irrelevant?
Jack Roscoe
  • 4,293
  • 10
  • 37
  • 46
5
votes
1 answer

HTML Strict increases line height

Why does XHTML 1.0 Strict display a line height as appearing larger than a line height of the same value in XHTML 1.0 Transitional? This therefore pushing down content within table cells (i.e Hotmail in Firefox, Gmail in IE and Firefox). Has anyone…
Ryano
  • 2,125
  • 3
  • 20
  • 28
5
votes
3 answers

Horizontal

I have a horizontal
    menu. How can I fix the width of the
  • elements at, say, 250px each?
Pieter
  • 31,619
  • 76
  • 167
  • 242
5
votes
2 answers

Textarea spellcheck attribute XHTML Strict

I would like to turn off the built-in spellcheck functionality in certain browsers such as Firefox and Opera on a textarea that contains HTML embed code for visitors to copy and paste. This can be done with following…
undoIT
  • 611
  • 1
  • 7
  • 13
1
2
3
12 13