Page 290 - Web Applications (803) Class 12
P. 290

Your browser does not support the video element.

                       </video>
                   </body>

                   </html>
                    Output:




























                22.   Create a webpage that includes a navigation menu with links to other pages on the site. Include CSS and a
                    transition effect also.

               Ans.  <html>

                   <head>
                     <title>My Website</title>

                     <style>
                             /* Style the top menu */

                             .nav {
                                    background-color: cyan;

                                    color: #fff;
                                    padding: 10px;
                                    display: flex;

                                    justify-content: space-between;

                                    align-items: center;
                             }
                             a {

                                    color: red;
                                    text-decoration: none;

                                    margin-right: 10px;
                                    padding: 5px;

                288   Touchpad Web Applications-XII
   285   286   287   288   289   290   291   292   293   294   295