Posts

Date and Time Calculator

Date and Time Calculator Date and Time Calculator Start Date: Start Time: End Date: End Time: Calculate Duration Result:
Password Generator Password Generator Password Length: Generate Password Copy Password

How to add Amazon website inside iframe?

 How to add Amazon website inside iframe? <!DOCTYPE html> <html> <body> <h1>HTML Iframes</h1> <p>You can use the height and width attributes to specify the size of the iframe:</p> <iframe src="https://www.amazon.com/" height="220" width="320" title="Iframe Example"></iframe> </body> </html>

Tag is used to create inline frame ?

 Tag is used to create inline frame ? The <iframe> creates an inline frame, which embeds an  independent HTML document into the current document. <html> <iframe width="720" height="420"  src="https://www.thinkforu.org"  frameborder="0" allowfullscreen> </iframe> </html>

Which HTML tag is used to give strikethrough effect to text?

Which HTML tag is used to give strikethrough effect to text?  Not Supported in HTML5. The <strike> tag was used in HTML 4 to define strikethrough text. if want to write strikethrough effect to text in HTML 4 then you can write  <html> <head> <title> Which HTML tag is used to give strikethrough effect to text? </title> </head> <body> <p>This is <strike>only support HTML 4 </strike>  not HTML 5 strikethrough effect to text </p> </body> </html>

Write a program in HTML to create a Web page insert and image background ?

Write a program in HTML to create a Web page insert and image background ?  background-image:   linear-gradient(to bottom, rgba(255,255,0,0.5), rgba(0,0,255,0.5)),   url('thinkforu.png'); or <!DOCTYPE html> <html> <head> <style> p {   background-image: url('thinkforudotorg.jpg'); } </style> </head> <body> <h2>Background Image</h2> <p>You can specify background images<br> for any visible HTML element.<br> In this example, the background image<br> is specified for a div element.<br> By default, the background-image<br> will repeat itself in the direction(s)<br> where it is smaller than the element<br> where it is specified. (Try resizing the<br> browser window to see how the<br> background image behaves.</p> </body> </html>

How to use enum in Solidity programming langauge ?

How to use enum in Solidity programming langauge ? pragma solidity ^0.5.0; contract test {    enum FreshJuiceSize{ SMALL, MEDIUM, LARGE }    FreshJuiceSize choice;    FreshJuiceSize constant defaultChoice = FreshJuiceSize.MEDIUM;    function setLarge() public {       choice = FreshJuiceSize.LARGE;    }    function getChoice() public view returns (FreshJuiceSize) {       return choice;    }    function getDefaultChoice() public pure returns (uint) {       return uint(defaultChoice);    } }

How to use arrays in Solidity programming language ?

How to use arrays in Solidity programming language ?  How to use arrays i.e  static array,dynamic array  in Solidity programming language   pragma solidity ^0.5.0; contract test {    function testArray() public pure{       uint len = 7;               //dynamic array       uint[] memory a = new uint[](7);              //bytes is same as byte[]       bytes memory b = new bytes(len);              assert(a.length == 7);       assert(b.length == len);              //access array variable       a[6] = 8;              //test array variable       assert(a[6] == 8);              //static array       uint[3] memory c = [uint(1) , 2, 3];   ...

How to use string in Solidity programming language ?

How to use string in Solidity programming language ?  pragma solidity ^0.5.0; contract SolidityTest {       constructor() public{           }    function getResult() public view returns(string memory){       uint a = 1;        uint b = 2;       uint result = a + b;       return integerToString(result);     }    function integerToString(uint _i) internal pure        returns (string memory) {              if (_i == 0) {          return "0";       }       uint j = _i;       uint len;              while (j != 0) {          len++;          j /= 10;       }       bytes memory bstr = new bytes(len);  ...

Difference between Public vs Internal vs Private state variables in solidity programming langauge with example ?

 Difference between Public vs Internal vs Private state variables in solidity programming langauge with example ? Public state variables can be accessed internally as well as via messages. For a public state variable, an automatic getter function is generated.  Internal state variables can be accessed only internally from the current contract or contract deriving from it without using this.  Private state variables can be accessed only internally from the current contract they are defined not in the derived contract from it. Example of   Public vs Internal vs Private state variables pragma solidity ^0.5.0; contract C {    uint public data = 30;    uint internal iData= 10;        function x() public returns (uint) {       data = 3; // internal access       return data;    } } contract Caller {    C c = new C();    function f() public view returns (uint) {  ...

How to use Local Variable for whose values are present till function is executing in solidity ?

  How to use Local Variable for whose values are present till function is executing in solidity ? pragma solidity ^0.5.0; contract SolidityTest {    uint storedData; // State variable    constructor() public  {       storedData = 10;       }    function getResult() public view returns(uint) {       uint a = 1; // local variable       uint b = 2;       uint result = a + b;       return result; //access the local variable    } }

How to use state Variable for stored values permanently in a contract storage in solidity ?

  How to use state Variable for stored values permanently in a contract storage in solidity ? pragma solidity ^0.5.0; contract SolidityTest {    uint storedData;      // State variable    constructor() public  {       storedData = 10;   // Using State variable    } }

How to use comments in Solidity programming language ?

 How to use comments in Solidity programming language ?  function getResult() public view returns(uint) {    // This is a comment. It is similar to comments in C++    /*       * This is a multi-line comment in solidity       * It is very similar to comments in C Programming    */    uint a = 1;    uint b = 2;    uint result = a + b;    return result; }

Write your first Application in Remix IDE to Compile and Run our Solidity programming language ?

 Write your first Application in Remix IDE to Compile and Run our Solidity programming language ? pragma solidity ^0.5.0; contract SolidityTest {    constructor() public{    }    function getResult() public view returns(uint){       uint a = 1;       uint b = 2;       uint result = a + b;       return result;    } }

Write html code for student registration form ?

 Write html code for student registration form ? <html> <head> <title>Student Registration Form</title> <style> h3{   font-family: Calibri;    font-size: 25pt;            font-style: normal;    font-weight: bold;    color:SlateBlue;   text-align: center;    text-decoration: underline } table{   font-family: Calibri;    color:white;    font-size: 11pt;    font-style: normal;   font-weight: bold;   text-align:;    background-color: SlateBlue;    border-collapse: collapse;    border: 2px solid navy } table.inner{   border: 0px } </style> </head> </style> <body> <h3>STUDENT REGISTRATION FORM</h3>   <table align="center" cellpadding = "10">   <!----- First Name ----------------------------------------------------------> <tr> <td>FI...

How to write html code for email signature ?

 How to write html code for email signature ? <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head>     <meta charset="utf-8"> <!-- utf-8 works for most cases -->     <meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->     <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->     <meta name="x-apple-disable-message-reformatting">  <!-- Disable auto-scale in iOS 10 Mail entirely -->     <title></title> <!-- The title tag shows in email notifications, like Android 4.4. -->     <!-- Web Font / @font-face : BEGIN -->     <!-- NOTE: If web fonts are not required, lines 10 - 27 can be safely rem...