Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2001
    Messaggi
    262

    Problema con attributi non campatibili con doc. strict ma in realtà transitional

    Salve ho un problemino di perdita della sanità mentale:
    non capisco come mai il validator mi segnala l'attributo height di un tabella come imcompatibile con un doc "strict" ma il mio doc. "transitional".Poi segue un'altro errore che prorpio non capisco.AIUTO MIEI CARI
    posto:
    <!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=iso-8859-1" />

    <title>Stregale animazioni - Index</title>


    <link href="css/stile2.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
    <table width="736" height="659" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <th height="74" colspan="2" class="banner" scope="col"></th>
    </tr>
    <tr>
    <th width="235" height="286" align="center" valign="top" scope="row"><table width="214" height="73" border="0" align="left" cellpadding="0" cellspacing="0">
    <tr>
    <th width="238" scope="col"><div align="left">[img]img/servizi.jpg[/img]</div></th>
    </tr>
    </table></th>
    <td width="501" class="tabellabody"></td>
    </tr>
    <tr>
    <th colspan="2" scope="row">[img]img/bot.jpg[/img]</th>
    </tr>
    </table>
    <map name="Map" id="Map">
    <area shape="rect" coords="11,62,159,89" href="testo/feste per bambini.htm" alt="Giochi per le feste" />
    <area shape="rect" coords="12,88,146,116" href="testo/giochi per le feste.htm" alt="?????" />
    <area shape="rect" coords="10,120,162,146" href="testo/scuture palloncini.htm" target="_self" alt="Sculture palloncini" />
    <area shape="rect" coords="10,148,176,175" href="testo/marionette.htm" alt="Teatrino marionette maschere" />
    <area shape="rect" coords="7,209,102,230" href="testo/contatti.htm" alt="Contatti" />
    <area shape="rect" coords="12,38,81,60" href="index.html" target="_self" alt="Feste per bambini" />
    </map></body>
    </html>
    L'errore:
    This page is not Valid XHTML 1.0 Transitional!
    Below are the results of checking this document for XML well-formedness and validity.

    Error Line 13 column 26: there is no attribute "height".
    <table width="736" height="659" border="0" align="center" cellpadding="0" cellsp
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.



    Error Line 20 column 152: there is no attribute "target".
    ...242" border="0" usemap="#Map" target="_self" /></div></th>

  2. #2

    Re: Problema con attributi non campatibili con doc. strict ma in realtà transitional

    Originariamente inviato da nilats
    Salve ho un problemino di perdita della sanità mentale:
    non capisco come mai il validator mi segnala l'attributo height di un tabella come imcompatibile con un doc "strict" ma il mio doc. "transitional".Poi segue un'altro errore che prorpio non capisco.AIUTO MIEI CARI
    posto:
    ...
    <table width="736" height="659" border="0" align="center" cellpadding="0" cellspacing="0">
    ...
    [img]img/servizi.jpg[/img]
    ti segnala solo che l'elemento TABLE non ha un attributo height, e l'elemento IMG non ha un attributo "target". Nemmeno con un DTD transitional e nemmeno fosse HTML 4.01.
    Qualunque imbecille può inventare e imporre tasse. (Maffeo Pantaleoni)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.