Posts

Showing posts from October, 2020

Website Event Handling (JavaScript)

  JavaScript : It is used for EVENT HANDLING There are two ways to use it. 1) Write function in HTML file itself. For example <html>   <head>   <script type="text/javascript" src="message.js"> function msg(){   alert("Hello Javatpoint");   }   </script>   </head>   <body>   <p>Welcome to JavaScript</p>   <form>   <input type="button" value="click" onclick="msg()"/>   </form>   </body>   </html>   2) Write JavaScript code in separate file and import it into HTML. For example aleena.js ---------- function msg(){    alert("Hello Javatpoint");   }   aleena.html ----------- <html>   <head>   <script type="text/javascript" src="aleena.js"></script>   </head>   <body>   <p>Welcome to JavaScript</p>   <form>   <input type="button" value="click" onclic

Website Coloring & Layout (CSS)

CSS (Cascading Style Sheets) : It is used to control the style of a web document in a simple and easy way. There are three ways you can add CSS to your TAG, 1) Using Style attribute. For example <html>   <body>   <h1 style="color: white; background-color: red; padding:5px; text-align: center">Aleena Bagwan</h1>   <p style="color: blue;">I am aleena bagwan.</p>   </body>   </html>   2) Using <style> tag in your <head> tag. For example <html>   <head>   <style>   h1{   text-align:center; color:white;   background-color:green;   padding:5px;   }   p{   color:blue;   }   </style>   </head>   <body>   <h1>Aleena Bagwan</h1>   <p>I am aleena bagwan.</p>   </body>   </html>   3) Using a separate CSS file (It is recommended technique). For example aleena.css ---------- h

Website Development (HTML)

Image
Types of application 1) web application (website) -It run inside the browser. For example www.google.com , www.facebook.com 2) desktop application (standalone application) -It run standalone and outside of browser. For example notepad, powerpoint 3) mobile application -It run inside mobile For example whatsapp, instagram HTML : It is used to create web application (or say to create website) HTML is based on tags. Example 1:- <html>  <header><title>Aleena's website</title></header> <body> <h1>Aleena Bagwan</h1> <h2>About</h2> <p>I am Aleena.</p> <h2>Education</h2> <p> I am in 7 grade.I study in Podar International School.</p> <h2>Family</h2> <p>My father is civil engineerr.</p> <h2>Address</h2> <p>I live in Navi Mumbai, Nerul.</p> </body> </html> What is ATTRIBUTE : It is used to avail extra