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

If I use XHTML transitional doctype then will it show (in my portfolio) like I'm not a professional expert?

If I use XHTML transitional doctype then will it show (in my portfolio) like I'm not a professional expert? It is for one client who is not paying much for work, and he doesn't know about Web Standards. I want to use some deprecated or…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
0
votes
1 answer

How to display form output in an iframe?

I want a search box on my website that displays the result of a Google search of my own site in an iframe on my site (XHTML 1.0 Strict). I wasn't able to figure out how to use Google CSE, so I'm trying to roll my own. I have this test code:
nerdfever.com
  • 1,652
  • 1
  • 20
  • 41
0
votes
1 answer

How do I align h1, h2 to center in jello layout?

I'm sorry if this seems like a stupid question, but I'm just beginning a book on XHTML & CSS and I'm trying to use the so called jello layout, by simply declaring all body content into a container and using it to set the margin to auto in the…
Siddharth
  • 1,146
  • 3
  • 15
  • 28
0
votes
1 answer

No submit method on form

I have the following problem. I have a script, which creates an iframe inside a regular HTML page (with XHTML strict declaration) and inside this iframe a form is created to request a PDF. Problem is: The form-element is lacking the submit…
philgiese
  • 623
  • 1
  • 7
  • 17
0
votes
1 answer

valid xhtml meta tags for facebook open-graph and twitter cards

to make valid: xhtml twitter cards facebook-graph-api for http://www.theyact.com/acting-classes/los-angeles/ I've managed to get my code to come up valid everywhere... save 1 error on http://validator.w3.org/ there is no attribute…
0
votes
2 answers

Trying to use JavaScript (no jQuery), to show a div (2 classes) in the html when checkbox is selected

basically I have a form and it has 2 different expansions depending on whether a single or multi day trip is selected (not coded yet, once I get this working I can sort that out properly). I have looked at a lot of similar questions but…
Toria
  • 13
  • 6
0
votes
3 answers

How can i get all list items to be a equal width?

I want my navigation bar to be a equal width for each ul element. i already tried Width:100% for ul.navbar a and ul.navbar li. JSfiddle: http://jsfiddle.net/HeyItsProdigy/a2zVr/ CSS: @charset "utf-8"; /* Elements */ body { margin:0; …
user2557358
0
votes
2 answers

How to center my entire webpage including the background

i want the part with the border to be centered on all screen resoultions. is this possible with the margin-top and margin-bottom properties? HTML:
user2557358
0
votes
1 answer

Background image not extending to bottom of page

I am working on a page on my site that contains quite a bit of data, so the page is really long. The page consist of a background image for the main body and a container with a background image, both of which run the full length of the page (not…
Mock26
  • 71
  • 1
  • 3
  • 9
0
votes
4 answers

Validating form data in Javascript xhtml 1.0 strict, not considering server side scripts for this instance

There are other questions regarding validating email addresses with javascript. There are also questions regarding validating forms. However I cannot get my code to work, and cannot find a question to cover this particular issue. Edit I totally…
user3956566
0
votes
3 answers

Sorting divs without leaving any gaps

Is there any way I could resize my div elements without leaving gaps on the page? I think the only option is to calculate the possible generated gaps and move the elements around. Thanks in advance for any idea. Example - (Please click on the cards…
Xpto
  • 11
  • 3
0
votes
1 answer

javascript form remaining # of characters counter - modification requirement for xhtml strict validation

I used this javascript code in my page & then checked against w3c validator. I got 2 errors which are: there is no attribute "onKeyDown" there is no attribute "onKeyUp" I won't change my html declaration type to transitional. So I need…
Andre Chenier
  • 1,166
  • 2
  • 18
  • 37
0
votes
1 answer

Remove Space Between div tags

I've read countless threads here now and I have been having no luck so far. I am trying to remove space between the divs on this page. The divs called "postarea" and "rightsidebar" should have the same distance between "postadvert" as "postadvert"…
Steve
  • 1
  • 2
0
votes
4 answers

(X)HTML+CSS Validation warnings

I try to pass my css valiation yet I still have a few warnings like the following: In (x)HTML+CSS, floated elements need to have a width declared. Only elements with an intrinsic width (html, img, input, textarea, select, or object) are not…
Sinal
  • 1,155
  • 5
  • 17
  • 35
0
votes
1 answer

Embedding Google Maps with variable location in XHTML

I have a form getting parameters (method=GET, so the parameters are in the query string), and I have an Object with an embedded Google map. I want to make the embedded map dynamic, so that it will reflect the parameters (especially ll parameter for…
Pavel V.
  • 2,653
  • 10
  • 43
  • 74