Здравейте, от много време насам искам да се науча как да си оптимизирам сайта. Доста четох и стигнах до извода, че сайта за да е максимално оптимизиран и за Браузера и за Търсачките, трябва да е максималко изчистен и потреден, тоест валидиран според правилата XHTML 1.0 Strict.
Но това се оказа истинско приключение и осъкатяване на сайта, който започвам да правя, но мисля че ще се справя. От около 350 грешки ги сместих на 9. От които каквото и да направя се нещо се обърква. И това са 2-те форми, който съм сложил в сайта.
1. Формата за вход:
2. Формата за търсене на Гугъл
А грешките които изкарва са:
и въпроса ми е как да ги оправя.
Друга важна стъпка във оптимизирането на сайт е преминаването от таблици на ДИВ/ДИФ-ове. За мен това е една много трудна стъпка, понеже никога не съм работил с дивове и ми е ацки трудно, дори да започна, затова искам вашите съвети и искам да ви попитам, когато съм с дивове няма ли да се размества сайта на различните резолюции?
Това са ми въпросите, надявам се на надежден отговор
Благодаря Предварително :?:
Но това се оказа истинско приключение и осъкатяване на сайта, който започвам да правя, но мисля че ще се справя. От около 350 грешки ги сместих на 9. От които каквото и да направя се нещо се обърква. И това са 2-те форми, който съм сложил в сайта.
1. Формата за вход:
Код:
<form id="form1" method="post" action="http://smeh-bg.com/index1.php">
<div lang="bg" xml:lang="bg">Потребителско име:</div>
<input id="username" type="text" size="17"/>
<div lang="bg" xml:lang="bg">Парола:</div>
<input id="password" type="password" size="17"/>
<input type="submit" id="buton" value="Влез"/>
</form>
Код:
<form action="http://www.google.com/cse">
<input type="hidden" id="cx" value="001994879148707437789:twbubri80vq"/>
<input type="hidden" id="cof" value="FORID:0"/>
<input id="q" type="text" size="20"/>
<input type="submit" id="sa" value="Search"/> <input type="reset" value="Изчисти"/>
А грешките които изкарва са:
# Line 105, Column 43: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input id="username" type="text" size="17"/>
✉
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.
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>").
# Error Line 107, Column 47: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input id="password" type="password" size="17"/>
✉
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.
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>").
# Error Line 108, Column 45: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input type="submit" id="buton" value="Влез"/>
✉
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.
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>").
# Error Line 109, Column 48: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input type="reset" id="button" value="Изчисти"/>
✉
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.
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>").
# Error Line 119, Column 75: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
…value="001994879148707437789:twbubri80vq"/>
✉
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.
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>").
# Error Line 120, Column 50: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input type="hidden" id="cof" value="FORID:0"/>
✉
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.
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>").
# Error Line 121, Column 40: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input id="q" type="text" size="20"/>
✉
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.
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>").
# Error Line 122, Column 48: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input type="submit" id="sa" value="Search"/> <input type="reset" value="Изчисти"/>
✉
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.
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>").
# Error Line 122, Column 86: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
… <input type="reset" value="Изчисти"/>
✉
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.
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>").
и въпроса ми е как да ги оправя.
Друга важна стъпка във оптимизирането на сайт е преминаването от таблици на ДИВ/ДИФ-ове. За мен това е една много трудна стъпка, понеже никога не съм работил с дивове и ми е ацки трудно, дори да започна, затова искам вашите съвети и искам да ви попитам, когато съм с дивове няма ли да се размества сайта на различните резолюции?
Това са ми въпросите, надявам се на надежден отговор
Благодаря Предварително :?: