I'll wager the Flash you make today will still work in 10 years, and I'll wager the HTML5 won't.
I'll wager the Flash you make today will still work in 10 years, and I'll wager the HTML5 won't.
HTML5 is just HTML, and unless that fundamentally changes, it should work "forever." JavaScript too, again, unless you're linking to frameworks hosted by companies that later go out of business. JavaScript usually adds, but rarely takes away.
The look of your HTML site 10 years from now may look more outdated than your Flash site does, but as long as we're all still around, I'd wager that they'd both still work, provided Flash player is still a thing.
That is, if you don't use the bunch of temporary CSS properties browser vendors are supporting (-moz-, -khtml-, -ms-, -o-, etc) that people often assume to be "ready" but that will be deprecated in the future.