Sunday, 10 January 2021

How to create automatic result showing page with students name on HTML?

 How to create automatic result showing page with students name on HTML?

here we write a html program using table tag and form tag with java script 
you can use this program to check result of any student .
firstly you enter details of student and then you click on button
then you find automatic result of student in this program we take five subjects and calculate percentage on 100 marks of
each subject and if student archive greater than thirty three marks then 
the student show pass otherwise  show failed.

here you see the html code
<html>
<head>
<title>school websites template</title>
 <script>
 function postdata()
 {
 var sn=document.getElementById("sname").value;
 var em=Number(document.getElementById("emark").value);
 var mm=Number(document.getElementById("mmark").value);
 var cm=Number(document.getElementById("cmark").value);
 var chm=Number(document.getElementById("chmark").value);
 var pym=Number(document.getElementById("pmark").value);
 var total=em+mm+cm+chm+pym;
 var percentage=(total*100)/500;
 if(percentage<33)
 {
  document.getElementById("result").value="Faild";
 }
 else{
 document.getElementById("result").value="pass";
 }
 document.getElementById("per").value=percentage;
  document.getElementById("ssname").value="Ms "+sn;

 }
 </script>
 
</head>
<body bgcolor="pink">
<center>
<table border="1" bordercolor="pink">
<caption>Enter student details</caption>
<form method="GET" >
<tr><td>Enter studen name</td><td><input type="text" name="sname" id="sname"/></td></tr>
<tr><td>Enter marks in English</td><td><input type="text" name="emark" id="emark"/></td></tr>
<tr><td>Enter marks in Maths</td><td><input type="text" name="mmark" id="mmark"/></td></tr>
<tr><td>Enter marks in computer</td><td><input type="text" name="cmark" id="cmark"/></td></tr>
<tr><td>Enter marks in chemistry</td><td><input type="text" name="chmark" id="chmark"/></td></tr>
<tr><td>Enter marks in Physics</td><td><input type="text" name="pmark" id="pmark"/></td></tr>
<tr><td align="center" colspan="2"><input style="background-color:pink;border:none;" type="text"  name="ssname" id="ssname"/></td></tr>

<tr><td>Result <input type="text" id="result" name="reulst"</td><td><input type="text" name="per" id="per"/></td></tr>

<tr><td colspan="2" align="center"><input type="button" value="chec result" onclick="postdata()"/></td></tr>
</form>
</table>
</body>
</html>

output of this programs



How to make a HTML website Class 10 in Notepad plus plus offline?

 How to make a HTML website Class 10 in Notepad plus plus offline?

1.introduction of  notepad++ application


Notepad++ is a text editor programs you can use it in Microsoft windows operating system software .
Notepad++ supports multiple programming languages  with in single windows systems. in new version
presents tab system .Tab system provided very good features to see or do multiple code at a same 
time.it is a distributed as free application software.at first the project was launched by sourcefoge.net 
downloaded by 28 million times.you can downloads this application from this links
https://notepad-plus-plus.org/downloads/ and installed in your computer system.

2.Open Notepad plus plus and type HTML Code 

1.open website www.google.co.in
2.type nodepad++ and search 
3.open website notepad-plus-plus.org
4.download current version of notepad plus plus



5.create a folder with name web at a desktop
6.open notepad++


7.click at the file menu and click and new button
8.click at the file menu and click at the save option..


9.select desktop and choose web folder and save it with name index.html
10.Type the fallowing code and re save it .

<html>
<head>
<title>school websites template</title>
 <link rel="stylesheet" href="style/mystyle.css">
 
</head>
<body background="img/bg.png">
<div id="main">

<div id="logou">

<CENTER><h1 style="color:pink;font-size:100;">H.R.SCHOOL</H1></CENTER>

</div>




<div id="leftsilder">
<img src="img/logo.png" alt="school logo">
<!-- NAVIGATION -->
<ul id="menu">
<li><a href="#home" >HOME</a></li>
<li><a href="#course">COURSE</a></li>
<li><a href="#projects">PROJECTS</a>
<ul>
<li><a href="#OLDPROJECT" >OLD PROJECT</a>
<ul>
<li><a href="#2018" >2018 PROJECTS</a></li>
<li><a href="#2019" >2019 PROJECTS</a></li>
<li><a href="#2020" >2020 PROJECTS</a></li>
</ul>
</li>
<li><a href="#ACTP">Active projects</a>
<ul>
<li><a href="#LACTP" >LAB PROJECT</a></li>
<li><a href="#OACTP" >MICRO PROJECTS</a></li>
<li><a href="#OTHER" >OTHER PROJECTS</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#Contact">Contact</a></li>
</ul>


</div>
<div id="workspace">
<p id="home">this the h.r. school have a very nice place to eduction collecting environment<br>
you find best place in  world to get eduction in you life h.r is the good and best school in india<br>
here you learn some new type of eduction we are supporting all student in same manare and geting <br> 
best eduction and prepared all student to fighting all enviroment in theire lifethis the h.r. school have a very nice place to eduction collecting environment<br>
you find best place in  world to get eduction in you life h.r is the good and best school in india<br>
here you learn some new type of eduction we are supporting all student in same manare and geting <br> 
best eduction and prepared all student to fighting all enviroment in theire life</p>
<p align="right" id="home">this the h.r. school have a very nice place to eduction collecting environment<br>
you find best place in  world to get eduction in you life h.r is the good and best school in india<br>
here you learn some new type of eduction we are supporting all student in same manare and geting <br> 
best eduction and prepared all student to fighting all enviroment in theire lifethis the h.r. school have a very nice place to eduction collecting environment<br>
you find best place in  world to get eduction in you life h.r is the good and best school in india<br>
here you learn some new type of eduction we are supporting all student in same manare and geting <br> 
best eduction and prepared all student to fighting all enviroment in theire life</p>
<p id="course"><h1>OFFRED COURSES</H1>
 <ol >
 <li>MCA</li>
<li>BCA</li>
<li>MBA</li>
<li>BBA</li>
<li>MSC IT</li>
<li>MA</li>
<li>PGDMA</li>
<li>PGDCA</li>
<li>B.ED</li>
</ol>
</P>
</div>
<div id="footer">
<p id="Contact">
<center>
<b>mobno.9876787678 </b>
<h1>sitpur uttar pradesh india</h1></center>

</div>
</div>
</body>
</html>
11.open web folder and double clik at the index.html page
12.see your output at the webbrowse like chrome or internet expolarer etc.
13.create an other two sub folder with name img and style in web folder
14.reopen notepad++ and type mystyle.css and save it in style folder
/*main css*/
#main
{
height:1000px;
width:1200px;
top:-1px;
}
#logou
{
height:100px;
width:1470px;
top:0px;
background-image:img/bg.png;
position:relative;
}

#leftsilder
{
height:1000px;
width:300px;
top:108px;
left:0px;
background-image:img/bg.png;
position:fixed;
}
#workspace
{
height:1000px;
width:1170px;
top:122px;
left:300px;
background-image:img/bg.png;
position:relative;
}
#footer
{
height:100px;
width:1470px;
top:100px;
background-image:img/bg.png;
position:relative;
}
/* CSS Document */
#menu, #menu ul {
list-style:none;
padding:1;
margin:0;
}
#menu li {
position:relative;
line-height:3em;
width:10em;
}
#menu li ul {
position:absolute;
margin-top:-1em;
margin-left:.5em; /* for IE */
display:none;
}
#menu ul li ul {
margin-top:-3em;
margin-left:7em;
}
/* ******************************************************************* */
/* SHOW SUBMENU  1 */
#menu li:hover ul, #menu li.over ul {
display:block;
}
#menu li:hover ul ul, #menu li.over ul ul {
display:none;
}
/* SHOW SUBMENU  2 */
#menu ul li:hover ul, #menu ul li.over ul {
display:block;
}
/* ******************************************************************* */
/* STYLING UP THE LINKS */
#menu a {
display:block;
border-right:1px solid #fff;
background:#E0F584;
color:#3B3g7B;
text-decoration:none;
padding:0 13px;
}
#menu a:hover {
background-color:#5798B4;
color:#fff;
}
#menu ul {
border-top:1px solid #fff;
}
#menu ul a {
border-right:none;
border-right:1px solid #fff;
border-bottom:1px solid #fff;
border-left:1px solid #fff;
background:#AEC845;
}

/* ******************************************************************* */

#menu {
z-index:1;
}
#menu ul {
z-index:2;
}
#menu ul ul {
z-index:3;
}

/* ******************************************************************* */

/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */
15.now open paint application anc creating two image with name bg.png and logo.png and
save it in the img folder.
(bg.png image size will be height * width is 32*32 px and logo height * width  150*150)
16.let some images in images which you put at the websites.
18.Reopen your index.html programs and make some changes and save it .
19.open web folder and duble clikc at the index.html and see output at webbrowser.

 output:




 




Saturday, 9 January 2021

How to add background image from paint to HTML?

 How to add background image from paint to HTML?

when any one making a websites then needs some websites pages to display important information but
information is many types located at website in particular areas like home page has several hyper links
and main information about websites and service page exist that information which service provided 
by websites owner etc.
 It is very important every thing show perfectly and smoothly ,so need some color full impression like
good images and beautiful background .

learn how to add background images from pain to HTML program step by step

Firstly you thing about your web page like which type of image you want to insert in background ,like according to themes natural themes ,wood themes or any full image .here we tell you two type of 
ways insert an images in html programs.

(a) crate a creative background by paint to HTML programs

1.create a beautiful image and save it 

click at the start button and then click at all programs and click at Accessories and click at paint option
(open paint application)

and create a small beautiful image like this

and create a folder with website name or any name and save images in this folder .

2.creating a html code and set background

click at the start button and click at all programs and click at the Accessories option and click at the notepad (open notepad application programs) and type these code

<html>
<head>
<title>set background</title>
</head>
<body background="background.png">
<h1>this is beautiful background image</h1>
</body>
</html>

click at the file menu and click at save option and select your same location where image is present 
choose your folder and type index.html and select all fill type 
 like this

3.Run a HTML page

now open your folder and double click at the index.html your file open with in any 
web browser like chrome or internet explorer etc.and you see output this type
                                


if you want insert full image in background then open your image in paint application and save
it in your folder and apply same method.
<html>
<head>
<title>set background</title>
</head>
<body background="background.png">
<!--at the place of<body background="background.png"> given the location or path of images-->
or
<!--<body background="C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg"-->
or
<!---
<body background="https://www.google.co.in//images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"-->
<h1>this is beautiful background image</h1>
</body>
</html>
you can set any one method which you want to set background in HTML programs.









Thursday, 7 January 2021

Write a code to set up background color as yellow text as red heading as"This is my html

 Write a code to set up background color as yellow text as red heading as"This is my html

you can make a html web page with given condition 
1.set background color is yellow 
2.text color is red 
3.also making a red color heading "this is my html "

solution of this question is
<html>
<head> 
<title> yellow color background</title>
</head>
<body bgcolor="yellow">
<!---yellow color using font tag and heading color--->
<font color="red" ><h1>this is my html</h1></font>
<!-- using by css------>
<h1 style="color:red;">this is my html </h1>
</body>
</html>

how create a simple web page of school website?

 how create a simple web page of school website?



dear user we write a simple html code as you seen as given below  you learn step to step how to create a school websites pages

learn how to make web page

step1.

In widows operating system click at the start button then click at the all programs files and then click at Accessories and then

click at the note pad.

step2.

 write given code as given below.

step3.

click at file menu save with course name and with html extension like course.html

step4 .

double click at the course.html file and open its on any webbrowser like chrome ,internet expolar ,mozila fire foxz.

step5. 

look the view of your web pages.

learn what tag use in this program and  why?

1.fristly creating a basic structure of html programs

<html>

<head>

<tilte>school weblsit</title>

<body >

</body>

2.add heade text by using  font tag .

3.<hr> use to drwa line.

4.making a list of subjects by using <ul> tags. and write subject name by using <li>.

5. now we are creating a contact form by using <form> tag and <table> tags.

where <form > use to input data form users.

and <table > tag is use manage the fields for right place.

full html source code of  school web site page 

<html>

<head>

<title>simple html web page coding</title>

</head>

<body bgcolor="yellow">

<center><font size="72" color="red">Mordern Public School</font></center>

<hr width="100%" height="2">

<marquee> new admition start</marquee>

<hr>

<h1> Course offered</h1>

<ul>

<li>Master of computer(MCA)<sup><font color="red">New</font></sup></li>

<li>Master of Information of techonology(M.Sc IT)<sup><font color="red">New</font</sup></li>

<li>Master of Art(M.A.)<sup><font color="red">New</font></sup></li>

<li>Master of Bussiness(MBA)<sup><font color="red">New</font></sup></li>

<li>Bacheler of Eduction(BCA)<sup><font color="red">New</font></sup></li>

<li>Bacheler of chemistry</li>

<li>Bacheler of Dance</li>

</ul>

<h1> For more information contact us </h1>

<q>Mobli no.</q><big>9450803009</big>

<h1> For inqury fill the given form and submit details</h1>

<table border ="5" bordercolor="pink">

<tr><td>

<table >

<tr bgcolor="blue" ><td>Enter your firts name:</td><td><input type="text" placeholder="fist name"/></td></tr>

<tr bgcolor="white" ><td>Enter your last name:</td><td><input type="text" placeholder="last name"/></td></tr>

<tr bgcolor="blue" ><td>Enter your date of birth:</td><td><input type="text" placeholder="DOB"/></td></tr>

<tr bgcolor="white" ><td>Select you code:</td><td><select><option>MCA</option>

                                                                          <option>MBA</option>

                                                                          <option>MSc IT</option>

                                                                          <option>BCA</option>

                                                                            <option>B.A.<option></select></td></tr>


<tr bgcolor="blue" ><td>Seclect your category</td><td><group><input type="radio"/>SC<input type="radio"/>OBC<input type="radio"/>GENERAL</goup></td></tr>

<tr bgcolor="white" ><td>Enter your personal contect number</td><td><input type="text" placeholder="mobile number"/></td></tr>

<tr bgcolor="blue" ><td colspan="2" align="center"><input type="submit" value="Send information"/></td></tr>

</table>

</td>

</tr>

</table>

<hr>


</body>

</html>



Friday, 1 January 2021

Cheat Sheet of HTML 5 (EVENT HANDLER CONTENT ATTRIBUTES)

Cheat Sheet of HTML 5 (EVENT HANDLER CONTENT ATTRIBUTES)

In this post you collect some specific attributes that are adding some new attributes in HTML5 to generating event at web pages you can use it very smothaly and simply find some powerful event ,do very less code ,here we write their name and works shorlty that attributes added in HTML5.
onebeforeonloadBefore onload event
oncanplayMedia can start play
oncanplaythroughMedia can played to end
oncontextmenucontext menu is triggered
ondragelement is dragged
ondragendat the of drag operation
ondragenterelement dragged on drop target
ondragleaveelement leaves valid drop target
ondragoverelement is dragged over drop target
ondragstartat the start of drag operation
ondropdragged element is being dropped
ondurationchangelength of media is changed
onemptiedmedia resource element becomes empty
onendedmedia has reached end
oneerrorerror occurs
onformchangeform changes
onforminputform gets user input
onhaschangedocument has changed
oninputmessage is triggered
oninvalidelement gets user input
onloadeddataMedia data is loaded
onloadedmetadataduration of media element is loaded
onloadstartbrowser starts to load media data
onmessageelement is invalid
onmousewheelmouse wheel is being rotated
onpausemedia data is paused
onplaymedia data is going to start playing
onplayingMedia data has started playing
onprogressbrowser is fetching media data
onratechangemedia data's rate has changed
onscrollelement's scrollbar is being scrolled
onseekedelement's seeking attribute is not true
onseekingelement's seeking attribute is true
onstalledthere is error in fetching media data
onstoragedocument loads
onsuspendbrowser has stopped fetching media data
ontimeupdatemedia changes its playing position
onvolumechangemedia changes volume, also when mute
onwaitingmedia has stopped playing

Existing event handler attributes cheat sheet in HTML4 AND HTML5

you can find some specific attributes that are controled event in html4 and html5 boths. we write some attributes and their brifly explanations here.
onabortabort event
onbeforeunloadbefore unload event
onclickmouse clicked event
ondblclickmouse double-clicked event
ongesturechangegesture change event
ongestureendend of gesture event
ongesturestartstart of gesture event
onkeydownkey pressed down event
onkeypresskey pressed event
onkeyupkey released event
onmousedownmouse button pressed down event
onmousemovemouse moved event
onmouseoutmouse cursor exited event
onmouseovermouse cursor entered event
onmouseupmouse button released event
onmovemove event
onorientationchangedevice orientation changed event
onpastepaste event
onresizeresize event
ontouchcanceltouch canceled event
ontouchendtouch ended event
ontouchmovetouch move event
ontouchstarttouch start event

Thursday, 31 December 2020

Free downloads HTML cheat sheet

Free downloads HTML cheat sheet

how downlads this HTML cheat sheet

simple open this file at a chrome web browser and clik at
the print option and selcet save as a pdf file and save it in your computer

Document Outline
version of (x)HTML
HTML document
page information
page contents
Comments
Comments Text in html code
Page Information
base of URL in HTML
using in Meta data
title of html pages
Relevant resource
style resource
Script resource
Document Structure
heading tags use in html
Page section at html page
Inline section in html pages
Pagragraph tag in html
break line tag use in html
Horizontal rul or line tag
Links tags
it is use to make page link
creating a email link
Useing in Anchor
create a Link to anchor
Text Markup Tags
Strong emphasis
Emphasis
Long quotation
short quotation
Abbreviation
Acronym
Address
Pre-formatted text
Definition
code
Citation
Deleted text
Inserted Text
Subscript
Superscript
Text Direction
List Tags
Ordered List
Unordered List
List Item
Definition List
Definition terms
Term description
Forms
Form
Collection of fields
Form legend
Input Label
Form Input
Drop-down box
Group of options
Drop down options
Large text input
Button
Tables
Table
Caption of table
Table header
Table body
Table footer
column group
Column
Table row
header cell
Table cell
Images and Image Maps
Image
Image Map
Area of Image Map
Common Character Entities
&#34;"Quotation mark
&#38;&Ampersand
&#60;<Less than
&#62;>Greater than
&#64;@"AT" symbol
&#128;Euro
&#149;.small Bullet
&#153;TMTrademark
&#163;£Pound
&#160; Non Breaking Space
&#169;©copyright symbol
Objects
Object
Parameter
Empty Elements
An Empty Elements
An Empty Elements
An Empty Elements
An Empty Elements
An Empty Elements
An Empty Elements
An Empty Elements
An Empty Elements
An Empty Elements
An Empty Elements
Core Attributes
classStyle
idtitle
Note:core attributes may not
be used in base ,head ,html, meta, param,
script,style or title elements
Language Attributes
dirlang
Note:Language attributes may not
be used in base head ,br,frame,frameset
hr,iframe,param or script elements.
keyboard attributes
accesskeytabindex
windows Events
onLoadonUnioad
windows Events
onLoadonUnioad
Form Events
onBluronReset
onChangeonSelect
onFocusonSubmit
Eeyboard Event
onKeydownonKeyup
onKeypress
Mouse Event
onClickonMouseout
onDblclickonMouseover
onMousedownonMouseup
onMousemove

Saturday, 19 December 2020

Create web page using table and form tags types of HTML

 Create web page using table and form tags types of HTML

creating an html web page for candidate using some tags like form  ,table tags etc.here we are creating a user form at web pages using some html tags and give some specification

 <html> tags

this tag is use to starting tag of html creating any web pages  now you can say it is a basic HTML tags in html programs.

<head> tag 

this tag use at the top of html pages it is use to connection script like java script vb script and CSS.

<title> tag 

use to description the web pages title or you say name of creating web pages.

<body> tag 

it a basic tag of HTML  programming and provided basic structure of  html programs.

<font > tag 

 this tag use to formatting any web pages like text color and text font  etc.

<table > tag 

Use a table tag to crating table for managing forms.

<form > tag 

use to creating creating an application form at the sever side user use this form submitting data

<tr> element

this element  is use to creating a row with table

<td> element 

this element use to creating a coloumn  with in table

textbox-

 use for entering text at the user form.

<select> 

element are use to creating al list

<radio>

 radio button are used to creating a some optional  value

<text area>

 text area element support a large amount  of text and it hold it in text Area.

<button>

 Button element are use to creating an events.



A good html program for user app

<html>

<head>

<title>using some tags of HTML</title>

</head>

<body bgcolor="pink">

<font size="16"  face="elephant">

<center>

<table  border="3"  height="50% " width="50%"  bordercolor="black" bgcolor="white">

<form method="get" action="this.html">

<tr><td>Enter frist name:</td><td><input type="text" placeholder="enter your frist name"/></td></tr>

<tr><td>Enter second name:</td><td><input type="text" placeholder="enter your frist name"/></td></tr><tr><td>Select your gender</td><td>Male<input type="Radio"/>Fmale<input type="Radio" /></td></tr>

<tr><td>Select your course:</td><td><select> <option>O-leve</option><option>A-leve</option><option>A-leve</option><option>c-level</option></select></td></tr><tr><td>Select your type</td><td>GEN<input type="checkbox" />OBC<input type="checkbox" />SC<input type="checkbox" />ST<input type="checkbox" /></td></tr><tr><td>seen some fee of cources</td><td><ol><li>o-level &nbsp600/-</il><li>A-level &nbsp600/-</il><li>B-level &nbsp600/-</il></ol></td></tr>

<tr><td colspan="2">type some message about your life</td></tr>

<tr><td colspan="2"><textarea id="internationalyoutacuity" name="internationalyoutacuity" rows="4" cols="100"></textarea></td></tr>

<tr><td colspan="2" align="center"><input type="button" value="submit details"/> </td></tr>

</form>

</table>

</font>

</center>

</body>

</html>

out put:






How to play different video according to Day in HTML?

 HTML5 has the most important features that support for multimedia ,In previous version you need to plug in to play video or audio.The world wide web consortium (W3C) firstly introduced the video element for the purpose of playing videos and movies at the web pages without help of any plug ins.But W3C does not responsible for videos formats developer must provide formats that are available across the web browsers.


some popular video formats that are uses

 ogg/Theora(.ogv extension)

Ogg/Theora format appears to be a format that is royalty free without patent issues and

supported by the Firefox, Chrome, and Opera browsers.


WebM/VP8 (.webm extension)

WebM/VP8 video format is supported by the Firefox, Chrome, Opera, and Android

browsers. In addition, Internet Explorer 9+ will support this format when the VP8 codec

is installed.

MPEG-4/H.264 (.mp4 extension)

 This format is supported by the Internet Explorer, Chrome, and Safari browsers, but Chrome has announced its intent to remove support for MPEG-4/H.264 in the near future.



the <video> element play video at web pages you can use it with some important attributes The following is a sample example of <video> element.<video> element.

 <video width="340" height="260" controls="controls">

<source src="movie.mp4" />

You need a new web browser that supports HTML5.

</video>


Setting the source

The <source> element is a specifies path of  video source. you need to set the src attribute to the URL of the video. and also make a setting  include more than one <source> element to provide many sources so the web browser can choose the most appropriate video codec. 

 here given some formats of videos.

<video controls="controls" height="480">

<source src="eagle.webm" type='video/webm; codecs="vorbis, vp8"' />

<source src="eagle.ogv" type='video/ogg; codecs="theora, vorbis"' />

<source src="eagle.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />

</video>


Good Configuring of  <video> element

The <video> element  provide the good behavior you need for your web web page.

Some  of the attributes you can use to configure the <video> element .

(A) auto play Specifies that video starts playing immediately.

(B)controls Specifies that the play/pause button, video cursor, and maximize be displayed.
(C)height Indicates the height in pixels of the rendered <video> element.
(d)loop Specifies that the video will repeat when it has reached the end of its stream.
(E)muted Specifies that the audio is silent.
(F)poster Specifies that the URL of an image is to be shown when the video is not playing.
(G)reload Specifies how the video should be loaded when the page loads. It can be set
to auto, metadata, or none. The auto setting starts loading the video when the page
loads. The metadata setting loads only the metadata, and the none setting doesn’t
load anything.
(H) src Specifies the URL of the video.
(I)width Indicates the width in pixels of the rendered <video> element.




some examples of html

Example 1:


<video controls>

    <source src="vid1.webm" type='video/webm;codecs="vp8, opus"'/>

    <source src="vid2.mp4" type='video/mp4;codecs="avc1.4D401E, mp4a.40.2"'/>

</video>


Example 2:

<video src="vid1.mp4"></video>

<video controls src="https://internationalyouthacuity.blogspot.com/short.mp4" preload="none"></video>



Example 3:


<video controls controlsList="nofullscreen nodownload" src="https://internationalyouthacuity.blogspot.com/short.mp4" preload="none"> </video>


Example 4:

<video controls src="https://internationalyouthacuity.blogspot.com/short.mp4#t=15,20" preload="metadata"> </video>


Example 5:


<video preload="metadata" controls src="https://internationalyouthacuity.blogspot.com/short2.webm" preload="metadata"> </video>


Example 6:



<video playsinline src="https://internationalyouthacuity.blogspot.com/short.mp4"> </video>

<video loop controls src="https://internationalyouthacuity.blogspot.com/short.mp4"></video>

<video muted controls src="https://internationalyouthacuity.blogspot.com/short.mp4"> </video>


Example 7:


<video controls="" preload="metadata" width="422" height="253">

    <source src="/static/the-web-is-always-changing.webm" type="video/webm">

    <track label="English subtitles" kind="subtitles" srclang="en" src="/static/the-web-is-always-changing.vtt" default="">

</video>



Example 8:

<video controls autoplay>

<source src="movie.mp4" type="video/mp4">

<source src="movie.ogg" type="video/ogg">

Your browser does not support the video tag.

</video>


Example 9:

 

Play videos according to time or hours or day.

function showElementAndPlayVideo(id) {

    const myElement = document.querySelector("#" + id);

    myElement.style.display = 'block'; 

    myFunctionToPlayVideo(id); 

}


function showElementAtTime(id, hour) {

    var now = new Date();

    var time = new Date(now.getFullYear(), now.getMonth(), now.getDate(), hour, 0, 0, 0) - now;

    var timeEnd = new Date(now.getFullYear(), now.getMonth(), now.getDate(), hour, 59, 59, 0) - now;


    if(now >= time && now < timeEnd) { 

        showElementAndPlayVideo(id);

    } else if(time < now) { 

        setTimeout(() => showElementAndPlayVideo(id), now - time);

    }

}