Title: HTML Errors
Last modified: August 20, 2016

---

# HTML Errors

 *  Resolved [kYem](https://wordpress.org/support/users/kyem/)
 * (@kyem)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/html-errors-1/)
 * There are couple of things, that are easy to fix and make them html valid: frontend_attachement.
   php Line 55.
 *     ```
       <div class="slideshow_slide slideshow_slide_image">
       				<a <?php echo $anchorTagAttributes; ?>>
       					<img src="<?php echo htmlspecialchars($imageSrc); ?>" alt="<?php echo $alt; ?>" width="<?php echo $imageWidth ?>" height="<?php echo $imageHeight; ?>">
       				</a>
       				<div class="slideshow_description slideshow_transparent">
       					<a>>
       						<?php echo !empty($title) ? '<h2>' . $title . '</h2>' : ''; ?>
       						<?php echo !empty($description) ? '<p>' . $description . '</p>' : ''; ?>
       					</a>
       				</div>
       			</div>
       ```
   
 * Should be changed to
 *     ```
       <div class="slideshow_slide slideshow_slide_image">
       				<a <?php echo $anchorTagAttributes; ?>>
       					<img src="<?php echo htmlspecialchars($imageSrc); ?>" alt="<?php echo $alt; ?>" width="<?php echo $imageWidth ?>" height="<?php echo $imageHeight; ?>"/>
       				</a>
       				<div class="slideshow_description slideshow_transparent">
       						<?php echo !empty($title) ? '<h2><a'. $anchorTagAttributes .'>' . $title . '</a></h2>' : ''; ?>
       						<?php echo !empty($description) ? '<p><a'. $anchorTagAttributes .'>' . $description . '</a></p>' : ''; ?>
       				</div>
       			</div>
       ```
   
 * That would fix the self closing error on the img tag and the block/inline element
   errors.
 * The last one is in slideshow.php, line 8
 *     ```
       <div class="slideshow_pagination"><div class="slideshow_pagination_center">
       <ul></ul>
       </div></div>
       ```
   
 * This will cause the end tag for “ul” which is not finished html error as you 
   actually need li element with it.
 * One solution is to create the ul tag inside jQuery and the populate it with list
   items. It would fix the html problem.
 * Now the last one, document type does not allow element “style” here, I assume
   will be sorted out eventually.
 * [http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/](http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/html-errors-1/#post-3516103)
 * Thanks for sharing this information! It would indeed be better to move the anchor
   tags inside the elements and to have jQuery create the unordered list.
 * I’ll apply these fixes in version 2.2.8.
 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/html-errors-1/#post-3516128)
 * The style element will be moved to the bottom of the page in version 2.2.8 as
   well. This will make the stylesheets cahcheable, so this has multiple advantages.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-jquery-image-gallery_d3d2de.
   svg)
 * [Slideshow](https://wordpress.org/plugins/slideshow-jquery-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-jquery-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/html-errors-1/#post-3516128)
 * Status: resolved