<?php ?>
Niestety nie potrafię dodać sensownie parametru ALT (może być taki sam dla wszyskich zdjęć), a drugim problemem jest błąd którego zupełnie nie rozumiem związany ze znakiem / we frazie: "images/$obrazek".
Kopiuję co podaje http://validator.w3.org:
Cytat
1. Warning Line 70, Column 18: NET-enabling start-tag requires SHORTTAG YES
<img src=images/4.jpg alt="zdjecie losowe;" style="width: 260px; height: 200p?
?
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
2. Error Line 70, Column 18: required attribute "ALT" not specified
<img src=images/4.jpg alt="zdjecie losowe;" style="width: 260px; height: 200p?
?
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
<img src=images/4.jpg alt="zdjecie losowe;" style="width: 260px; height: 200p?
?
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
2. Error Line 70, Column 18: required attribute "ALT" not specified
<img src=images/4.jpg alt="zdjecie losowe;" style="width: 260px; height: 200p?
?
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
Dziękuję za pomoc w usunięciu ostatnich błędów w kodzie.