Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Code:
Using html5 elements:
Code:
<!DOCTYPE html>
<html>
<head>
<title> exp1 </title>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(0,0,200,100);
</script>
</head>
<body>
<canvas id="myCanvas" width="200" height="100"
style="border:1px solid #000000;">
</canvas> <br>
<svg width="400" height="100">
<rect width="200" height="100" style="fill:rgb(0,0,255);stroke:rgb(0,0,0)" />
</svg>
<audio controls>
<source src="horse.ogg" type="audio/ogg" >
Your browser does not support the audio element.
</audio>
<video width="150" height="150" controls >
<source src="movie.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<object width="200" height="200" data="helloworld.swf"> </object>
</body>
</html>
OUTPUT:
<!DOCTYPE html>
<html>
<body>
<main>
<h1> Famous engineering college in mumbai</h1>
<section>
<h1>D.J.SANGHVI</h1>
<p>
Dwarkadas Jamnadas Sanghvi College of Engineering (D.J. Sanghvi or DJ, as it is
popularly known) is an engineering college in Vile Parle, Mumbai. The college was
established by Vile Parle Kelavani Mandal in 1994.College operates between <time>
7:00 </time> and <time> 17:30 </time> </p>
<article>
<header>
<h1>History of D.J.Sanghvi?</h1>
<p>History</p>
</header>
<p>D. J. Sanghvi College of Engineering was established in 1994. It was named after
Dwarkadas J. Sanghvi, an industrialist and pioneer in the pen industry</p>
</article>
<aside>
<h4>Svkm</h4>
<p><mark>Shri Vile Parle Kelavani Mandal</mark> is a Public Charitable Trust
registered under the Societys Registration Act and Bombay Public Trust Act.</p>
</aside>
<figure>
<img src="djscoe.jpg" alt="D.J.Sanghvi" width="304" height="228">
<figcaption> D.J.Sanghvi. - Vile Parle ,India.</figcaption>
</figure>
<nav>
<a href="http://www.djsce.ac.in/">D.J.Sanghvi College of Engineering</a> <br>
<a href="http://www.engineering.careers360.com/dwarkadas-j-sanghvi-college-ofengineering-mumbai">D.J.Sanghvi College Of Engineering Mumbai</a>
</nav>
<summary> Copy-right:1995-2015</summary>
<footer>
<p>Posted by: TE-IT</p>
<p>Contact information: <a href="mailto:someone@example.com">
te-it@gmail.com</a>.</p>
</footer>
</section>
</main>
</body>
</html>
OUTPUT: