Tutorialspoint

HTML u Tag

<!DOCTYPE html>
<html>
   <body>
      <h2>Shortcut Keys</h2>
      <p>Use the following <u>shortcut</u> keys:</p>
      <p><strong>Cut</strong>: <tt>CTRL</tt>+<tt>X</tt></p>
      <p><strong>Copy</strong>: <tt>CTRL</tt>+<tt>C</tt></p>
      <p><strong>Paste</strong>: <tt>CTRL</tt>+<tt>V</tt></p>
      <p><strong>Undo</strong>: <tt>CTRL</tt>+<tt>Z</tt></p>
   </body>
</html>

HTML tt Tag

<!DOCTYPE html>
<html>
   <body>
      <h2>Shortcut Keys</h2>
      <p>Use the following shortcut keys:</p>
      <p><strong>Cut</strong>: <tt>CTRL</tt>+<tt>X</tt></p>
      <p><strong>Copy</strong>: <tt>CTRL</tt>+<tt>C</tt></p>
      <p><strong>Paste</strong>: <tt>CTRL</tt>+<tt>V</tt></p>
      <p><strong>Undo</strong>: <tt>CTRL</tt>+<tt>Z</tt></p>
   </body>
</html>

HTML textarea placeholder Attribute

<!DOCTYPE html>
<html>
   <body>
      <h2>Interview Questions</h2>
      <p>Q1</p>
      <textarea rows="6" cols="70" placeholder="Why do you want go for the Editor Job Profile? (100 words)">
</textarea>
      <p>Q2</p>
      <textarea rows="6" cols="70" placeholder="Do you have any previous publishing experience? (100 words)">
</textarea>
   </body>
</html>

HTML canvas clearRect() Method

<!DOCTYPE html>
<html>
   <body>
      <canvas id="newCanvas" width="500" height="350" style="border:2px solid blue;"></canvas>
      <script>
         var c = document.getElementById("newCanvas");
         var ctx = c.getContext("2d");
         ctx.fillStyle = "gray";
         ctx.fillRect(0, 0, 500, 350);
         ctx.clearRect(250, 100, 50, 100);
      </script>
   </body>
</html>

HTML cancelable Event Property

<!DOCTYPE html>
<html>
   <body>
      <h2>Checking cancelable event</h2>
      <p>The below button will display whether the event is cancelable or not.</p>
      <button onclick="myFunction(event)">Click me</button>
      <p id="myid"></p>
      <script>
         function myFunction(event) {
            var val = event.cancelable;
            document.getElementById("myid").innerHTML = val;
         }
      </script>
   </body>
</html>

HTML button Tag

<!DOCTYPE html>
<html>
   <body>
      <h2>Demo Heading</h2>
      <p>We have added demo text below:
      </p>
         <textarea rows="4" cols="50">
         Here, we are learning the concepts, elements and attributes in HTML!
         </textarea><br>
         <button type="button" disabled>Previous</button>
         <button type="button">Next</button>
   </body>
</html>

HTML br Tag

<!DOCTYPE html>
<html>
   <body>
      <h2>Demo Heading</h2>
      <p>This is a demo text! The next paragraph will appear after two line breaks.</p>
      <br><br>
      <p>We have set a demo paragraph here. We have set a demo paragraph here. We have set a demo paragraph here. We have set a demo paragraph here. We have set a demo paragraph here. We have set a demo paragraph here. The next line will appear after a single line break.</p>
      <br>
      <p>This is a demo text!</p>
   </body>
</html>

HTML body Tag

<!DOCTYPE html>
<html>
   <head>
      <title>Document Title comes here</title>
   </head>
   <body>
      <h1>
         Heading comes here
      </h1>
      Content comes here
   </body>
</html>

HTML blockquote Tag

<!DOCTYPE html>
<html>
   <body>
      <h2>osCommerce</h2>
      <p>According to the official website of osCommerce:</p>
      <blockquote cite="https://www.oscommerce.com/Us">
         We have been running successfully for over 19 years and have not only created hundreds of thousands of online store owners worldwide, but have also helped kickstart other companies and projects who have based their products on our work. We've grown so much with the community and love the engagement in helping us all succeed. We're anxious to see you get involved and be part of the success!
      </blockquote>
   </body>
</html>

HTML bdo Tag

<!DOCTYPE html>
<html>
   <body>
      <h2>Demo Heading</h2>
      <p>This is a demo text!</p>
      <p><bdo dir="rtl">This is another demo text.</bdo></p>
   </body>
</html>

1 2 3 4 5 6 7 ... 745 Next
Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.