HTML5 for ASP.NET Developers: Listing 1.

A Master Page in HTML5.

<body>
  <form runat="server">
    <header>
    A Sample HTML5 Page
    </header>
    <section>
      <nav>
        <menu id="navmenu">
          <command onclick="showAbout()">About</command>
          <command onclick="showHome()">Home</command>
        </menu>        
      </nav>
    </section> 
    <section> 
      <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
    </section> 
    <footer contextmenu="navmenu">
    Written by Peter Vogel
    </footer>
   </form>
</body>

About the Author

Peter Varhol is the executive editor, reviews of Redmond magazine and has more than 20 years of experience as a software developer, software product manager and technology writer. He has graduate degrees in computer science and mathematics, and has taught both subjects at the university level.

comments powered by Disqus

Featured

Subscribe on YouTube