[ Príspevkov: 9 ] 
AutorSpráva
Offline

Užívateľ
Užívateľ
Document type does not allow element

Registrovaný: 23.12.10
Prihlásený: 10.09.22
Príspevky: 1056
Témy: 157 | 157
Bydlisko: KK/PP/BA
NapísalOffline : 21.03.2012 21:29 | Document type does not allow element

Pri validacii stranky som narazil na tento problem:
Kód:
<p style="text-align: right;"> </p>

Kde je chyba?


_________________
HP ProBook 4530s Intel® Core™ i5-2430M (2.4GHz, 3MB, 2 jadrá)*4GB 1333MHz DDR3*ATI Mobility Radeon HD 6490 1GB + Intel HD Graphics 3000*640GB SATA 5400RPM *Windows 7 Home Premium 64 bitová verzia
Lenovo IdeaPad Z50-70 Intel Core i5 4210 Haswell* NVIDIA GeForce GT 840M 4GB + Intel HD Graphics 4000*SSHD 1TB 5400 otáčok + 8GB cache*RAM 4GB* Full HD (1920 × 1080)*Windows 10 pro

Boh je reálny, pokial nebol deklarovaný ako integer
Offline

Čestný člen
Čestný člen
Document type does not allow element

Registrovaný: 11.08.07
Príspevky: 4088
Témy: 34 | 34
Bydlisko: Brno
NapísalOffline : 21.03.2012 21:31 | Document type does not allow element

Konkretne s tymto kuskom kodu nikde, ukaz cely kod.


Offline

Skúsený užívateľ
Skúsený užívateľ
Document type does not allow element

Registrovaný: 24.01.08
Prihlásený: 13.09.17
Príspevky: 14571
Témy: 66 | 66
Bydlisko: Žilina
NapísalOffline : 21.03.2012 21:33 | Document type does not allow element

Pravdepodobne pcháš <p> tam, kde sa pchať nesmie ;)


_________________
C#, PHP, ...
Offline

Užívateľ
Užívateľ
Document type does not allow element

Registrovaný: 23.12.10
Prihlásený: 10.09.22
Príspevky: 1056
Témy: 157 | 157
Bydlisko: KK/PP/BA
Napísal autor témyOffline : 21.03.2012 21:41 | Document type does not allow element

No riesim to cez CMS MS. V html to vyzera tak:
Kód:
<h2>{global_content name='H2'}</h2>
v bloku:
Kód:
Stolárska firma
<p style="text-align: right;"> </p>

pricina:
Citácia:
Document type does not allow element ... here; missing one of ... start-tag
Cause:

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

There are 2 types of elements in the body of a HTML file, inline and block elements. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

In the following sample, the <font> tag is an inline tag which can only contain other inline tags. But the <p> tag is a block tag. So a <p> tag can not be contained in a <font> tag.


Myslim, ze 2 elementy sucastne nepouzivam, no neviem, ako sa sprava ten blok. Pripadne, ako to vyriesit inak.


_________________
HP ProBook 4530s Intel® Core™ i5-2430M (2.4GHz, 3MB, 2 jadrá)*4GB 1333MHz DDR3*ATI Mobility Radeon HD 6490 1GB + Intel HD Graphics 3000*640GB SATA 5400RPM *Windows 7 Home Premium 64 bitová verzia
Lenovo IdeaPad Z50-70 Intel Core i5 4210 Haswell* NVIDIA GeForce GT 840M 4GB + Intel HD Graphics 4000*SSHD 1TB 5400 otáčok + 8GB cache*RAM 4GB* Full HD (1920 × 1080)*Windows 10 pro

Boh je reálny, pokial nebol deklarovaný ako integer
Offline

Skúsený užívateľ
Skúsený užívateľ
Document type does not allow element

Registrovaný: 24.01.08
Prihlásený: 13.09.17
Príspevky: 14571
Témy: 66 | 66
Bydlisko: Žilina
NapísalOffline : 21.03.2012 21:47 | Document type does not allow element

Pcháš p do h2??


_________________
C#, PHP, ...
Offline

Užívateľ
Užívateľ
Document type does not allow element

Registrovaný: 23.12.10
Prihlásený: 10.09.22
Príspevky: 1056
Témy: 157 | 157
Bydlisko: KK/PP/BA
Napísal autor témyOffline : 25.03.2012 20:56 | Document type does not allow element

Vdaka.
Este jednu vec by som potreboval. Upozornuje ma na toto:
Kód:
<table class="pagetable" width="929" cellspacing="0">


Citácia:
<...> lacks "..." attribute
Cause:
An HTML tag has a mandatory attribute, but this attribute is missing.


_________________
HP ProBook 4530s Intel® Core™ i5-2430M (2.4GHz, 3MB, 2 jadrá)*4GB 1333MHz DDR3*ATI Mobility Radeon HD 6490 1GB + Intel HD Graphics 3000*640GB SATA 5400RPM *Windows 7 Home Premium 64 bitová verzia
Lenovo IdeaPad Z50-70 Intel Core i5 4210 Haswell* NVIDIA GeForce GT 840M 4GB + Intel HD Graphics 4000*SSHD 1TB 5400 otáčok + 8GB cache*RAM 4GB* Full HD (1920 × 1080)*Windows 10 pro

Boh je reálny, pokial nebol deklarovaný ako integer
Offline

Skúsený užívateľ
Skúsený užívateľ
Document type does not allow element

Registrovaný: 24.01.08
Prihlásený: 13.09.17
Príspevky: 14571
Témy: 66 | 66
Bydlisko: Žilina
NapísalOffline : 25.03.2012 21:28 | Document type does not allow element

Si si istý, že sa jedná práve o tento riadok? Píše ti to, že element by mal mať povinný atribút, ale si ho nedodal, čo je v tomto prípade trochu blbosť. Neviem o tom, že by bol zápis <table> nevalidný.


_________________
C#, PHP, ...
Offline

Užívateľ
Užívateľ
Document type does not allow element

Registrovaný: 23.12.10
Prihlásený: 10.09.22
Príspevky: 1056
Témy: 157 | 157
Bydlisko: KK/PP/BA
Napísal autor témyOffline : 25.03.2012 21:41 | Document type does not allow element

Ano, som si isty. Ja viem, ze pise, ze nema nadefinovane vlastnosti, ale preco? Prikladam screen:
Document type does not allow element


_________________
HP ProBook 4530s Intel® Core™ i5-2430M (2.4GHz, 3MB, 2 jadrá)*4GB 1333MHz DDR3*ATI Mobility Radeon HD 6490 1GB + Intel HD Graphics 3000*640GB SATA 5400RPM *Windows 7 Home Premium 64 bitová verzia
Lenovo IdeaPad Z50-70 Intel Core i5 4210 Haswell* NVIDIA GeForce GT 840M 4GB + Intel HD Graphics 4000*SSHD 1TB 5400 otáčok + 8GB cache*RAM 4GB* Full HD (1920 × 1080)*Windows 10 pro

Boh je reálny, pokial nebol deklarovaný ako integer
Offline

Skúsený užívateľ
Skúsený užívateľ
Document type does not allow element

Registrovaný: 24.01.08
Prihlásený: 13.09.17
Príspevky: 14571
Témy: 66 | 66
Bydlisko: Žilina
NapísalOffline : 25.03.2012 22:41 | Document type does not allow element

Ah jo.. no keď si pozrieš špecifikáciu, odporúča sa pridať atribút "summary" do table pre negrafické klienty (text-to-speech, braile).
W3C ho ale zaraďuje medzi voliteľné, nie medzi povinné... napr:
http://www.w3schools.com/tags/tag_table.asp

Čiže preto je to len formou upozornenia a nie chyby.

--------------
Troška čítania o prístupnosti na dobrú noc :)
http://www.jimthatcher.com/webcourse9.htm


 [ Príspevkov: 9 ] 


Document type does not allow element



Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy.

document type does not allow element "BASE" here+b

v Frontend

7

791

24.03.2008 11:10

toma-mato

V tomto fóre nie sú ďalšie neprečítané témy.

A device whitch does not exist was specified

v SSD disky

13

407

02.01.2024 18:06

Johnnny

V tomto fóre nie sú ďalšie neprečítané témy.

Data to Excel problem: file type is not correct

v Backend

5

775

23.08.2009 10:41

p360t

V tomto fóre nie sú ďalšie neprečítané témy.

allow, deny

v Backend

2

483

24.03.2011 16:14

pogo

V tomto fóre nie sú ďalšie neprečítané témy.

Allow Moderators to See Invisible

v CMS

0

492

14.10.2006 14:51

JanoF

V tomto fóre nie sú ďalšie neprečítané témy.

document.selected.createRange()

v Frontend

7

632

17.04.2010 9:54

camo

V tomto fóre nie sú ďalšie neprečítané témy.

obnova microsoft xps document writer

v Windows

2

593

24.02.2012 7:42

tharabas

V tomto fóre nie sú ďalšie neprečítané témy.

OKDO Document Converter MS Word Error

v Ostatné programy

0

457

15.02.2010 16:56

MAREK17

V tomto fóre nie sú ďalšie neprečítané témy.

Ako označiť konkrétny element?

v Frontend

4

432

03.05.2020 18:20

LukIneskoNR

V tomto fóre nie sú ďalšie neprečítané témy.

Sencor Element 7 V2

v Prenosné zariadenia

2

516

30.11.2012 21:45

ujo zigo

V tomto fóre nie sú ďalšie neprečítané témy.

Tablet -Sencor Element 7V2 4GB

v Prenosné zariadenia

17

592

02.01.2013 14:48

Johnnny

V tomto fóre nie sú ďalšie neprečítané témy.

Track motion a element 3d

v Video programy

1

433

17.09.2014 16:26

SKRiPT

V tomto fóre nie sú ďalšie neprečítané témy.

Element s 100% width, height

v Frontend

2

469

09.03.2014 23:01

majky358

V tomto fóre nie sú ďalšie neprečítané témy.

sencor element 7v3 nezapne sa

v Prenosné zariadenia

2

1174

19.05.2014 14:44

liqua1

Táto téma je zamknutá, nemôžete posielať nové príspevky alebo odpovedať na staršie.

P: PC skrinku Thermaltake Element T

v Bazár

1

462

04.02.2012 12:21

prkyyynko

V tomto fóre nie sú ďalšie neprečítané témy.

Tablet sencor element 8 v.2 - záhadný jav

v Smartfóny a tablety

18

861

02.01.2014 19:26

sencor8



© 2005 - 2026 PCforum, edited by JanoF