开发者

Which HTML5 tag should I wrap Rails flash notices in?

Is there a 'best' HTML5 element to use for Rails flash notices? I'm currently using a <section> tag bu开发者_JS百科t if there's something that is somehow better for SEO (minor concern), or more cross-browser friendly (major concern), I'd prefer to do it that way.

Thanks.


If search engines are seeing your flash messages at all, you might be doing something wrong. Flash messages are (usually) used to give the user some feedback after they do something that changes something in the system. Like "the record has been saved" type of thing. Search engines shouldn't be doing write operations, so shouldn't need to see flash messages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜