Tuesday, 9 September 2014

Simple menu, videos

Simple menu:


To make a simple menu you need an unordered list, with each item in list having a link to each page of the website.

<ul>
<li> <a href="index.html"> HOME </a> </li>
<li> <a href="linkhere"> ABOUT </a> </li>
<li> <a href="linkhere"> BOOK NOW</a> </li>
<li> <a href="linkhere"> CONTACT</a> </li>
</ul>

Video:

Before HTML5, there was no standard for showing videos on a web page. Videos could only be played with plug-ins (like flashplayers).

To show a video in HTML, use the <video> element:

<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>

Auto play a video:

<video width="320" height="240" autoplay>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>

No comments:

Post a Comment