Re: error code when insering a video using video tag

Probably you left the doctype default declaration of Amaya, which is XHTML.
When you create the new document you should declare it as HTML Transitional
into New Document tab view. Indeed, if you have set it as HTML Transitional
you will not have errors by Amaya:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  <title>New1</title>
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/">
</head>

<body>

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  <source src="movie.webm" type="video/webm">
  <object data="movie.mp4" width="320" height="240">
    <embed src="movie.swf" width="320" height="240">
  </object>
</video>

</body>
</html>

Regards,
Cristiano


2013/1/4 HiddenId <courriel_achevrier@yahoo.fr>

> Hi all,
> I'm trying to insert a video in an HTML page.
> I've tried a w3school code example :
>
> <video width="320" height="240" controls>
>   <source src="movie.mp4" type="video/mp4">
>   <source src="movie.ogg" type="video/ogg">
>   <source src="movie.webm" type="video/webm">
>   <object data="movie.mp4" width="320" height="240">
>     <embed src="movie.swf" width="320" height="240">
>   </object>
> </video>
>
> See: http://www.w3schools.com/html/html_videos.asp
>
> Unfortunatly, Amaya returns "an error code": invalid token
> It seems it is the "s" of controls which generate the error.
>
> Do you know what I should do to avoid this error ?
>
> Antoine
>
>
>

Received on Friday, 4 January 2013 19:45:08 UTC