Attributes Name Type Required/Optional Description src string required Source file of the image (.gif, .jpg, .png). alt string optional Alternate text associated with the image. Defaults to an empty string height numeric optional Height in pixels of the image. width numeric optional Width in pixels of the image.
yml:image only support above attributes. It didn't indicate it support css type of attributes. I use <div> ouside <yml:image> and it won't apply css style to <yml:image>.
Yes, both regular HTML and YML are acceptable on the small view. When on the developer dashboard, if you open an open application there is a note at the bottom that states "The default content displayed by the Small view. HTML and YML only.". YML acts in tandem with HTML instead of as a replacement for it.
Jonathan LeBlanc Senior Software Engineer Yahoo! Developer Network