Skip to main content
Participant
December 20, 2020
Question

Please help. Special characters must be escaped error

  • December 20, 2020
  • 2 replies
  • 134 views

I cant seem to figure out exaclty what is wrong with my code to produce these errors. ive been looking online for hours with no luck. <img> lines are where the errors are. thank you. this is for a slide show on my page

<div class="mySlides fade">
  <div class="numbertext">1 / 4</div>
  <img class="slideimg" src="images/inside.jpeg" alt: "inside of restraunt">
  <div class="text">Modern interior makes for a warming experience.</div>
</div>

<div class="mySlides fade">
  <div class="numbertext">2 / 4</div>
  <img class="slideimg" src="images/ingedients.jpeg" alt: "Ingredients to make up meat sauce pasta">
  <div class="text">Alwasy Homemade from fresh ingreients!</div>
</div>

<div class="mySlides fade">
  <div class="numbertext">3 / 4</div>
  <img class="slideimg" src="images/freshserving.jpeg" alt: "chef serving fresh plate of spaghetti">
  <div class="text">Always Fresh!</div>
</div>
    
<div class="mySlides fade">
  <div class="numbertext">4 / 4</div>
	<img class="slideimg" src="images/wine.jpeg" alt:"wine bottles in wine cellar">
  <div class="text">Wide Selection of Italian Wine</div>
</div>

</div>

 the error is on the  

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    December 20, 2020

    Sorry for your frustration, @Brandon5FD8.  Where did you get this code?  

     

    This is invalid syntax:

    alt:"wine bottles in wine cellar"

     

    It should be:

    alt="wine bottles in wine cellar"

     

    Suggest you upload your work to a remote server space and run your URL through the online validation service.

    https://validator.w3.org/

     

    Also check your spelling in DW (Shift + F7).

     

    Nancy O'Shea— Product User & Community Expert
    Legend
    December 20, 2020
      <img class="slideimg" src="images/inside.jpeg" alt: "inside of restraunt">

     

    Not : BUT = (change all the image alt properties to example below:)

     

    alt="inside of restaurant"

     

    Then check if you still get errors.