Doctype -- XHTML Transitional or Strict?
I am working on my first site with DW 8. I took a couple of
classes and have been learning as much as I can about HTML and CSS.
When choosing the DOCTYPE, is there any reason not to use XHTML 1.0
Strict? As far as I can tell, people seem to mostly use XHTML 1.0
Transitional (or an earlier version). I'd appreciate a little more
explanation about why Transitional XHTML is used instead of Strict.
I've been reading about problems with boxes in IE 5.5 that can be
fixed using conditional comments which would include some extra CSS
code (* html). Would this interfere with validation? Is there any
way to change the DOCTYPE for pages I have already started?
> is there any reason not to use XHTML 1.0 Strict?
No. If your skill can support the use of this doctype, it's
fine to use.
> Would this interfere with validation?
No.
> Is there any way to change the
> DOCTYPE for pages I have already started?
In CS3, use FILE | Convert ...
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Daylilybud" <[email protected]> wrote in
message
news:frlanb$ec$[email protected]..
>I am working on my first site with DW 8. I took a couple
of classes and
>have
> been learning as much as I can about HTML and CSS. When
choosing the
> DOCTYPE,
> is there any reason not to use XHTML 1.0 Strict? As far
as I can tell,
> people
> seem to mostly use XHTML 1.0 Transitional (or an earlier
version). I'd
> appreciate a little more explanation about why
Transitional XHTML is used
> instead of Strict. I've been reading about problems with
boxes in IE 5.5
> that
> can be fixed using conditional comments which would
include some extra CSS
> code
> (* html). Would this interfere with validation? Is there
any way to change
> the
> DOCTYPE for pages I have already started?
>
Similar Messages
-
Validation Errors with Spry tabbed panels with doctype XHTML 1.0 Strict
I'm getting errors while using the W3C Validation Service on my Strict XHTML 1.0 pages that use the SPRY Tabbed Panels. I've read a few places that W3C has no plans on 'fixing or relaxing" the restrictions. Is there any type of work around to the Spry Widget Tab panels code ??? All of my other pages validate nicely... hate to go back to Transitional afterconverting all my other code.
The DreamWeaver File validation also gives me errors but I think that is fed from W3C.
Any help would be appreciated. Thanks Pat
Line 31, Column 46: there is no attribute "tabindex"
… <li class="TabbedPanelsTab" tabindex="0">Want a professional looking Logo ?</…Use Spry 2.0
You can see a live demo of Spry 2.0 widgets below (contains valid markup).
http://alt-web.com/sandbox/Spry-test.html
Unless you're incorporating XML applications into your web site, there is not much reason to use XHTML Strict doc types. That standard was last revised in 2002. It has since been replaced with HTML5.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/ -
Java *xhtml traditional and strict question
I had to copy a piece of java code into the head of a new
xhtml doc. The original page and the first couple of lines of code
are the original code below
<html xmlns="
http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>index</title>
<script language="javascript">AC_FL_RunContent =
0;</script>
<script src="AC_RunActiveContent.js"
language="javascript"></script>
<script language="javascript">
function scrolling(){
document.body.scrollTop = 750;
</script>
I made a new page in Dreamweaver /the default is xhtml
transitional
and copied the code so the page looks like this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<meta name="description" content="Your description goes
here" />
<meta name="keywords" content="your,keywords,goes,here"
/>
<meta name="author" content="Your Name" />
<link rel="stylesheet" type="text/css"
href="/2009/idnynew.css" title="andreas08"
media="screen,projection" />
<title>XXXXXXXX</title>
<script language="javascript">AC_FL_RunContent =
0;</script>
<script src="../AC_RunActiveContent.js"
language="javascript"></script>
<script language="javascript">
function scrolling(){
document.body.scrollTop = 750;
</script>
The java function does not work in the xhtml traditional or
strict xhtml for that matter.
Can someone tell me why and what I have to change oin the
java to make it work in xhtml trans or strict?
Is it healthy to leave it alone and put the page up the way
it is deletting the first line of code?
anybody?oops.
I meant to say which ones.
I have look at w3.org and haven't found the answer.
cs -
DW Validator XHTML Transitional DTD
If i am using the validator XHTML 1.0 Transitional as my
validation. Is the DTD file it is using located somewhere in DW's
configuration folders? If so, does anyone know where it is?
i see that under tagLibraries\Validator\ there is the
XHTML10t.vtv file, but that is not the actual DTD.> is there any reason not to use XHTML 1.0 Strict?
No. If your skill can support the use of this doctype, it's
fine to use.
> Would this interfere with validation?
No.
> Is there any way to change the
> DOCTYPE for pages I have already started?
In CS3, use FILE | Convert ...
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Daylilybud" <[email protected]> wrote in
message
news:frlanb$ec$[email protected]..
>I am working on my first site with DW 8. I took a couple
of classes and
>have
> been learning as much as I can about HTML and CSS. When
choosing the
> DOCTYPE,
> is there any reason not to use XHTML 1.0 Strict? As far
as I can tell,
> people
> seem to mostly use XHTML 1.0 Transitional (or an earlier
version). I'd
> appreciate a little more explanation about why
Transitional XHTML is used
> instead of Strict. I've been reading about problems with
boxes in IE 5.5
> that
> can be fixed using conditional comments which would
include some extra CSS
> code
> (* html). Would this interfere with validation? Is there
any way to change
> the
> DOCTYPE for pages I have already started?
> -
Just a question to know if my thoughts are right...
I have made my website and at the top DW has put:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
I have notices that the alt-text in my site are not working (the way I would like), they are not displayed when you go over the image with the cursor. I know that the alt text will show up if the image fails to load for any reason but I would like them to show up also when you go over the image.
After a long search I found that if I change DOCTYPE to HTML 4.01, the alt-text are displayed in the browsers (IE). But unfortunately I can't change the DOCTYPE because of my SPRY-menu.
Is this correct?
And is it also correct that the only way to show the text of an image (with doctype XHTML), is to make a title-tag of the image (which DW doesn't facilitate)?
Katinka.function(){return A.apply(null,[this].concat($A(arguments)))}
I know that the alt text will show up if the image fails to load for any reason but I would like them to show up also when you go over the image.
That's not the role of alt text. It's only for alternative text in the absence of an image-not a popup tooltip.
It has worked as a tooltip in earlier versions of IE because they incorrectly displayed the alt attribute in the absence of the title attribute. It won't work in modern browsers and it's unrelated to the Doctype.
Use the title attribute instead.
<img alt="Picture" title="Picture"> -
Transitional to Strict, transition...
I'm wanting to step away from HTML 4.01 Transitional DOCTYPE
to HTML 4.01
Strict DOCTYPE. When I have W3C validate by suppressing my
Transitional
DOCTYPE and inserting a Strict DOCTYPE - I notice some errors
which I'm not
fimiliar with how to handle them in Strict. Some examples
are:
<img...border="0"...>
^ Error: No attribute "border"
<p align="left"...>
^ Error: No attribute "align"
Error: <br> needs a start tag (e.g., <p>,
<h1>, etc.)
<a... target="_blank"...>
^ Error: No attribute "target"
Can someone please tell me how these attribute are accounted
for in Strict?
If not - any tutorials on the "guidelines" of Strict?
Thanks for your time, everyone.
Shane H
[email protected]
http://www.avenuedesigners.comShane H wrote:
> I'm wanting to step away from HTML 4.01 Transitional
DOCTYPE to HTML
> 4.01 Strict DOCTYPE. When I have W3C validate by
suppressing my
> Transitional DOCTYPE and inserting a Strict DOCTYPE - I
notice some
> errors which I'm not fimiliar with how to handle them in
Strict. Some
> examples are:
> <img...border="0"...>
The attribute needs to go. Use CSS if you need to remove or
apply a border.
> ****
> <p align="left"...>
The same here, use CSS
> Error: <br> needs a start tag (e.g., <p>,
<h1>, etc.)
It may be misplaced
> <a... target="_blank"...>
Once again the attribute needs to go. This is one way to open
windows
without using "target" or any other attribute:
http://www.tjkdesign.com/articles/popup_window_with_no_extra_markup.asp
You're on the right path
Thierry
Articles and Tutorials:
http://www.TJKDesign.com/go/?0
The perfect FAQ page:
http://www.TJKDesign.com/go/?9
CSS-P Templates:
http://www.TJKDesign.com/go/?1
CSS Tab Menu:
http://www.TJKDesign.com/go/?3 -
I have a new project into which i have to insert SWF into an HTML page using other way that the standard Abobe way to do it.
I know about Flash Satay but i have 300s Flash files to insert and dont want to reopen each of them.
My HTML pages have to W3C comply and as you know, the <classic id> or <embed> tag isnt valid regarding XHTML 1.0 Strict.
Client, who insists that his media be accessible to EVERYBODY, suggested using
"javascript:loadMedia('flashContainer','flv/v01.flv', '', '', 'fra', '','','', 'false');"><img src="images/flashFr.jpg" alt="" /></a></p>
where loadMedia is a function with these parameters
<!-- Parameters for loadMedia function
loadMedia('mediacontainer', '<file>', '<caption>', '<image>', '<lang>', '<playId>', '<height>', '<width>', '<autostart>' )
- mediacontainer - /* container that holds the player */
- file - /* Specifies the location of the file to play. */ (.flv)
- caption - /* Specifies the location of the xml-based captions file using the SMIL Timed Text format. */
- image - /* Specifies the image to display when playing MP3 or FLV files. This FlashVar can also be used to display a preview image for other formats. Supported formats are JPG, SWF, PNG, and GIF. */
- lang - /* Specifies the language of the player. */
- playId - /* Element id of the player control */
- height - /* Specifies the window height of the control. */
- width - /* Specifies the window width of the control. */
- autostart - /* AutoStart the loaded clip */
-->
Do you know about that? Can you help? Do you know any other way to insert Flash content with respect to:
- Javascript on/off valid
- XHTML 1.0 Strict valid
- WAG valid.I am VERY concerned with the fact that my pages are not being properly validated and displayed.
I have created two different sites using iWeb '08 and while I am satisfied with the ease of use, I am concerned that my sites are not being displayed correctly... in fact, the other day my friend who is a Mac whiz and who hosts my business website on his server... tried to visit the site that I created using iWeb '08 and had published to my .Mac account... it caused his browser to flat out crash! He said he hasn't seen anything like that in years!
Here is the site I have begun to build http://www.mcleanmonowheel.com
If you paste this url into http://validator.w3.org/ a slew of errors pop up.
Is this the norm with iWeb or have I done something wrong on my end???
-Patrick -
DW8 writing invalid xhtml 1.0 strict code
My XHTML 1.0 STRICT doc created in DW8 design view has
invalid attributes hspace &align
<img src="images/massage.jpg" alt="massage" width="240"
height="160" hspace="10" align="right" />
It would appear that setting doc pref to xhtml1.0 strict does
nothing but change the page declaration and DW continues to write
xhtml 1.0 trans code.
Is this to be fixed?> get it?
No, I definitely wouldn't want it to write that into my page.
If it were going to recreate the effect of hspace="10", it
would have to
write -
margin-left:10px; margin-right:10px;
and position:static is unnecessary and redundant with the
default.
Plus, I wouldn't want it to add inline styles to my tags. I
could see it
prompting for a class name to use to hold this new style....
But, it's not up to us to decide this anyhow. If you have
filed a wish
form, then you have done the best you can do....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"bikeman01" <[email protected]> wrote in
message
news:[email protected]...
>
quote:
Originally posted by:
Newsgroup User
> What you're suggesting is that Dreamweaver should
disable certain
> attributes in the Property inspector when a strict DTD
is selected. It
> may be a useful improvement, and Murray has already
given you the URL
> for bug reports and feature requests. However, the way
that Dreamweaver
> works at the moment is that it expects anyone selecting
a strict DTD to
> know XHTML well enough to avoid using deprecated
elements.
>
> --
> David Powers, Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of
ED)
> Author, "PHP Solutions" (friends of ED)
>
http://foundationphp.com/
>
>
> I have raised a report
>
> But I expect it not to just grey out properties I also
expect it to write
> valid xhtml e.g.
>
> NOT hspace="10" align="right"
>
> BUT INSTEAD style="float: right; margin-left: 10px;
position: static"
>
> get it?
>
> I don't accept the answer that 'DW8 expects designers
who select 1.0
> strict to
> know not to use depreciated elements' - Macromedia/Adobe
provide code
> completion/properties panels as a tool for ease of use
for those designers
> who
> are not code experts. It would be better if they wrote
no code at all
> rather
> than incorrect code.
>
>
>
> -
XHTML 1.0 strict messing up tables
I have a programmer who is using XHTML 1.0 strict. My table
heights dont behave. I have a space under all my graphics that I
dont seem to be able to get rid of. Dont have a clue what is
causing this.
The site is designed. I can't show you because I signed a
non-disclosure.
This table doesnt work:
<table width="750" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/logo.gif" alt="Logo"
width="273" height="133" hspace="0" vspace="0" border="0"
/></td>
<td><img src="images/purpleback2.gif" alt="Purple"
width="62" height="133" hspace="0" vspace="0" border="0"
/></td>
<td><img src="images/kids1.gif" alt="Kids"
width="415" height="133" hspace="0" vspace="0" border="0"
/></td>
</tr>
</table>
There is an approx. 3 pixel height under my graphics.
Hope someone can help. I cannot go to all CSS on this
one.cindy1074 wrote:
> I have a programmer who is using XHTML 1.0 strict. My
table heights dont
> behave. I have a space under all my graphics that I dont
seem to be able to get
> rid of. Dont have a clue what is causing this.
Table height is not valid so if you are using a strict doc
type it will
ignore table height.
As for the space beneath your images try adding to your css
img {
display: block;
> The site is designed. I can't show you because I signed
a non-disclosure.
>
> This table doesnt work:
> <table width="750" border="0" align="center"
cellpadding="0" cellspacing="0">
> <tr>
> <td><img src="images/logo.gif" alt="Logo"
width="273" height="133"
> hspace="0" vspace="0" border="0" /></td>
> <td><img src="images/purpleback2.gif"
alt="Purple" width="62" height="133"
> hspace="0" vspace="0" border="0" /></td>
> <td><img src="images/kids1.gif" alt="Kids"
width="415" height="133"
> hspace="0" vspace="0" border="0" /></td>
> </tr>
> </table>
>
> There is an approx. 3 pixel height under my graphics.
>
> Hope someone can help. I cannot go to all CSS on this
one.
> -
JSF and XHTML Transitional validation
We're finishing our first public-facing JSF project and our final hurdle is to make sure our pages are XHTML compliant (we're a government department and we have to fall in line); we've chosen XHTML 1.0 Transitional.
We have two problems:
1. When we use <h:commandLink ...> the inserted javascript is not escaped and produces the validation errors using the W3C validator:
Warning Line 87 column 121: character "<" is the first character of a delimiter but occurred as data.
...p;if (adp != null) {for (var i = 0;i < adp.length;i++) {f.removeChild(adp)
Warning Line 87 column 270: character "<" is the first character of a delimiter but occurred as data.
...p.split(',');for (var i = 0,ii = 0;i < ps.length;i++,ii++) {var p = document.
[/code]
Is this a known problem, and is there a solution? A last resort could be to use a ServletFilter to insert <[CDATA[ ]]> into the page, around the javascript.
2. Multiple forms produce multiple hidden input tags with the same ID:
Error Line 106 column 54: ID "javax.faces.ViewState" already defined.
...en" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id114:j_As far as I can see we're going to have to re-design our pages to use just one form (we have two navigation menus each with their own form, then one form for the page.)
Unless there is another solution?
We're using Sun JSF RI 1.2_03-b09-FCS (with facelets), but observe the same behaviour with 1.2_04.
Many thanks for any help,
Andy.I have encountered the same issue. Hard-coded "javax.faces.ViewState" is a design bug in my view. subviews make absolutely no sense when view state id is hard-coded. It has to be auto-generated just as it's values are, even though that may require iteration thru the params. One way to deal w/ this to avoid iteration thru params in JSF impl, is to append subview id "javax.faces.ViewState" hidden field, have each subview look up accordingly. There is no other way to have valid XHTML.
If there's a work-around, please share.
Thanks,
Reshat. -
Invalid mark up XHTML 1.0 Strict
I check my pages on XHTML and CSS validators both in DW and
other sites. my css is all correct and my xhtml is correct except
for the flash div. The code is too long to put here, can someone go
put this url through a xhtml validating page and see what I mean? I
need to know how to correct the errors.
swf is on this
pageNobody???
-
This is on a Wordpress install. Is there a Firefox setting I'm missing? Otherwise, I shall have to install a javascript plugin to do this, which seems overkill for what used to be common code.
I don't know how to delete my question, anyway I'm not having this problem anymore. In our organisation the IT department deploy Firefox updates with certain settings and limitations, in the tap-options the checkbox for opening new windows in new tabs where checked but disabled. They made some changes to make this checkbox enabled and now it works as expected if it's check new windows open i new tabs and if it's not in new windows. They never opens in the same tab as they did before.
-
Noob here - how to add sidebar?
Okay, I'm kinda a noob at html and expecially css. I've been dabbling for quite a while, but I am in NO way a professional at web site developement.
I would like to add a google adsense sidebar into one of my pages on my site, but I just can't figure out how to do it. I've spent hours on this, looked at multiple tutorials, but I just can't get this figured out.
I believe I have to create the details in the .css file as well as the .html file. I'm kinda used to .html editing, but .css is totally new to me.
The site that I want to add the sidebars into is: http://www.myworthlesscrap.com/Links.html
I would be very greatfull for any help and input into this!!!Before you start working on anything *layout* related, you would want to get your current code in valid order.
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.myworthlesscrap.com%2FLinks.h tml
There are 92 errors on the page, and most (if not all) are due to a conflict between your doctype (XHTML Transitional) and the tag syntax you have used on the page (HTML 4.01 Transitional). So open the page in DW, and use FILE | Convert > HTML 4.01 Transitional. Save the page. It should now validate with many fewer errors - does it? -
Internet Explorer randomly shows table spaces
Hi!
I have tested this site in Safari, Firefox, and IE on both
MAC and PC platforms. Everything looks good on the mac side, but
when viewed on a PC in IE, random spaces are showing up between my
sliced images. IE on a pc is the only place I'm having a problem.
Please check out this link and let me know if you have any
ideas. I am lost.
http://www.creativetechresources.com/WBO2/markets.html
Thanks!On 14 Mar 2007 in macromedia.dreamweaver, Erica@Creative
wrote:
> I have tested this site in Safari, Firefox, and IE on
both MAC and
> PC platforms. Everything looks good on the mac side, but
when viewed
> on a PC in IE, random spaces are showing up between my
sliced
> images. IE on a pc is the only place I'm having a
problem.
>
> Please check out this link and let me know if you have
any ideas. I
> am lost.
>
>
http://www.creativetechresources.com/WBO2/markets.html
You're in quirks mode because of the XML preface:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Remove that, and all browsers should be in standards mode,
which will
make your life easier. Then validate the page, and fix a
bunch of the
errors you have, which will also cause problems for you in
some browsers.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.creativetechresources.com%2FWBO2%2Fmark ets.html&charset=%28detect+automatically%29&doctype=XHTML+1.0+Strict&verbose=1
http://alistapart.com/stories/doctype/
http://hsivonen.iki.fi/doctype/
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/email.php -
Why does this page change in Safari ?
I was at the google boards and came across this problem :
In Safari, the type changes color when you move the cursor on to the page. The site owner tells me that it's just Safari that does this . The answer isn't of great import, but I'd like to know, and so would she.
Here's the site :
http://stylebites.blogspot.com/In Safari, the type changes color when you move the cursor on to the page. The site owner tells me that it's just Safari that does this
When you say the "type" do mean the pink writing and the links on the right turn white?
I would hazard a guess it is the way the site is coded which makes it render that way.
It is the way it appears in Safari .v 2.0.4 for me, the same with the Shiire browser, but not with Firefox.
http://validator.w3.org/
Result: Failed validation, 250 errors
Address: http://stylebites.blogspot.com/
Encoding:utf-8
Doctype:XHTML 1.0 Strict
Root Namespace:http://www.w3.org/1999/xhtml
Hope this helps shed some light on it. Perhaps someone will have more to chime in with.
Eme;~[ )
Maybe you are looking for
-
I brought my 2009 macbook pro in for repair on 11/5/12. It came back a couple days later from the repair depot and I paid $322.60 for it. I noticed that it froze up when playing videos, so I brought it back in for repair on 12/7/12. I got it back
-
Administration tool read only access
I was wondering if there is a read only access to the administration tool. What i am trying to do is to test the repository Build with best practices since this repository is live and done by a group of developers - Since i joined recently and wanted
-
How to import applet to a web?
Hallo.I have a problem with the java applet Animate.It runs in the applet viewer, i import the class, the java file the gif images in a web page through frontpage and the applet can not play.Instead i see a gray box. What should i do?
-
Webseiten in Business-Catalyst hochladen
Wie lade ich eigene Layouts in html 5 und CSS in Business Catalyst hoch und veröffentliche die Seiten?
-
Hi, System: ECC604 Please let me know the possiblities of adding custom fields and standard fields in COID transaction (either at header level or at operation level). I don't know to copy the entire program and making Z tcode. Looking for possible wa