WHAT IS AN HTML ELEMENT ?

 An HTML elements is defined by a star tag , some content , and an end tag .

 < tagname > content goes here ..... < /tagname >

The HTML elements is everything from the start tag to the end tag : 

 < h1 > first heading < h 1>

 < p > my first paragraph < /p >

START  TAG         ELEMENT CONTENT       END TAG

< h1 >                        my first heading                     </h1>

<p>                              my first paragraph                 </p>

<br>                            none                                        none

                         


                 

What Is HTML?

 HTML is Hyper Text Markup Language.

HTML tag,

HTML,

Body,

Title

How to check every two minute in javascript Function Using set Interval

 

setInterval(function(){
alert("Kindly save your details to avoid data lose");
}, 2000);

How to check DOB less then 18 in Javascript


Javascript Function :


 var currDate =01/03/2023

var date_birth = 04/03/1994

function isLessThan18(currDate, date_birth)

{

var currday=parseInt(currDate.substring(0,2),10);

var currMnth=parseInt(currDate.substring(3,5),10);

var currYear=parseInt(currDate.substring(6,10),10);

var dobDay=parseInt(date_birth.substring(0,2),10);

var dobMon=parseInt(date_birth.substring(3,5),10);

var dobYear=parseInt(date_birth.substring(6,10),10);

if(currYear-dobYear<18)

{

return true;

}

else if(currYear-dobYear>18)

{

return false;

}

else if(currYear-dobYear==18)

{

if(currMnth>dobMon)

{

return false;

}

else if(currMnth<dobMon)

{

return true;

}

else if(currMnth==dobMon)

{

if(currday<dobDay)

{

return true;

}

else if(currday>=dobDay)

{

return false;

}

}

}

}




Git command with explanation

𝟭.𝗴𝗶𝘁 𝗱𝗶𝗳𝗳: Show file differences not yet staged. 𝟮. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 -m "commit message": Commit all tracked changes ...

Best for you