HTML Basics

Erstellt am 1 April, 2022Help • 38,682 Aufrufe • 4 Minuten lesen

HTML Tutorial

HTML Tutorial




Beautiful colorful buttons


Custom HTML



<style>


body {

 font: 13px/20px 'Lucida Grande', Verdana, sans-serif;

 color: #404040;

 background: white;

}


.container > .button {

 margin: 12px;

}


.button {

 position: relative;

 display: inline-block;

 vertical-align: top;

 height: 36px;

 line-height: 35px;

 padding: 0 20px;

 font-size: 16px;

 color: white;

 text-align: center;

 text-decoration: none;

 text-shadow: 0 -1px rgba(0, 0, 0, 0.4);

 background-clip: padding-box;

 border: 1px solid;

 border-radius: 2px;

 cursor: pointer;

 -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.25);

 box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.25);

}


.button-green {

 background: #5ca934;

 border-color: #478228 #478228 #3c6f22;

 background-image: -webkit-linear-gradient(top, #69c03b, #5ca934 66%, #54992f);

 background-image: -moz-linear-gradient(top, #69c03b, #5ca934 66%, #54992f);

 background-image: -o-linear-gradient(top, #69c03b, #5ca934 66%, #54992f);

 background-image: linear-gradient(to bottom, #69c03b, #5ca934 66%, #54992f);

}

.button-green:active {

 background: #5ca934;

 border-color: #3c6f22 #478228 #478228;

}


.button-red {

 background: #d5452f;

 border-color: #ae3623 #ae3623 #992f1f;

 background-image: -webkit-linear-gradient(top, #da5c48, #d5452f 66%, #c73d28);

 background-image: -moz-linear-gradient(top, #da5c48, #d5452f 66%, #c73d28);

 background-image: -o-linear-gradient(top, #da5c48, #d5452f 66%, #c73d28);

 background-image: linear-gradient(to bottom, #da5c48, #d5452f 66%, #c73d28);

}

.button-red:active {

 background: #d5452f;

 border-color: #992f1f #ae3623 #ae3623;

}


.button-blue {

 background: #1097e6;

 border-color: #0d78b6 #0d78b6 #0b689e;

 background-image: -webkit-linear-gradient(top, #25a5f0, #1097e6 66%, #0f8ad3);

 background-image: -moz-linear-gradient(top, #25a5f0, #1097e6 66%, #0f8ad3);

 background-image: -o-linear-gradient(top, #25a5f0, #1097e6 66%, #0f8ad3);

 background-image: linear-gradient(to bottom, #25a5f0, #1097e6 66%, #0f8ad3);

}

.button-blue:active {

 background: #1097e6;

 border-color: #0b689e #0d78b6 #0d78b6;

}


.button-orange {

 background: #f4902a;

 border-color: #df770c #df770c #c76a0a;

 background-image: -webkit-linear-gradient(top, #f69f47, #f4902a 66%, #f38617);

 background-image: -moz-linear-gradient(top, #f69f47, #f4902a 66%, #f38617);

 background-image: -o-linear-gradient(top, #f69f47, #f4902a 66%, #f38617);

 background-image: linear-gradient(to bottom, #f69f47, #f4902a 66%, #f38617);

}

.button-orange:active {

 background: #f4902a;

 border-color: #c76a0a #df770c #df770c;

}


.button-pink {

 background: #e8367f;

 border-color: #d31865 #d31865 #bc165a;

 background-image: -webkit-linear-gradient(top, #eb5190, #e8367f 66%, #e62473);

 background-image: -moz-linear-gradient(top, #eb5190, #e8367f 66%, #e62473);

 background-image: -o-linear-gradient(top, #eb5190, #e8367f 66%, #e62473);

 background-image: linear-gradient(to bottom, #eb5190, #e8367f 66%, #e62473);

}

.button-pink:active {

 background: #e8367f;

 border-color: #bc165a #d31865 #d31865;

}


.button-gray {

 background: #47494f;

 border-color: #2f3034 #2f3034 #232427;

 background-image: -webkit-linear-gradient(top, #55585f, #47494f 66%, #3d3f44);

 background-image: -moz-linear-gradient(top, #55585f, #47494f 66%, #3d3f44);

 background-image: -o-linear-gradient(top, #55585f, #47494f 66%, #3d3f44);

 background-image: linear-gradient(to bottom, #55585f, #47494f 66%, #3d3f44);

}

.button-gray:active {

 background: #47494f;

 border-color: #232427 #2f3034 #2f3034;

}


.button-darkblue {

 background: #3b5ca0;

 border-color: #2d477b #2d477b #263c68;

 background-image: -webkit-linear-gradient(top, #4369b6, #3b5ca0 66%, #365391);

 background-image: -moz-linear-gradient(top, #4369b6, #3b5ca0 66%, #365391);

 background-image: -o-linear-gradient(top, #4369b6, #3b5ca0 66%, #365391);

 background-image: linear-gradient(to bottom, #4369b6, #3b5ca0 66%, #365391);

}

.button-darkblue:active {

 background: #3b5ca0;

 border-color: #263c68 #2d477b #2d477b;

}


.button-purple {

 background: #9966cb;

 border-color: #8040be #8040be #733aab;

 background-image: -webkit-linear-gradient(top, #a87dd3, #9966cb 66%, #8f57c6);

 background-image: -moz-linear-gradient(top, #a87dd3, #9966cb 66%, #8f57c6);

 background-image: -o-linear-gradient(top, #a87dd3, #9966cb 66%, #8f57c6);

 background-image: linear-gradient(to bottom, #a87dd3, #9966cb 66%, #8f57c6);

}

.button-purple:active {

 background: #9966cb;

 border-color: #733aab #8040be #8040be;

}



</style>


<div class="container">

  <a href="#" class="button button-green">Download</a>

  <a href="#" class="button button-red">Download</a>

  <a href="#" class="button button-blue">Download</a>

  <a href="#" class="button button-orange">Download</a>

<br><a href="#" class="button button-pink">Download</a>

  <a href="#" class="button button-purple">Download</a>

  <a href="#" class="button button-darkblue">Download</a>

  <a href="#" class="button button-gray">Download</a>

 </div>




Custom HTML


HTML Audio



<audio controls >

 <source src="horse.ogg" type="audio/ogg">

 <source src="https://cdn.pixabay.com/download/audio/2022/02/18/audio_4438883ca6.mp3?filename=electric-hiphop-movie-confident-action-intense-uplifting-music-21225.mp3" type="audio/mpeg">

Your browser does not support the audio element.

</audio>




Custom HTML



<h4 style="color:white;">Content creators love to hear from you and see. Show your appreciation by donating, tweeting, and following!</h4>




Custom HTML

HTML Color Names



<h1 style="color:blue;">A Blue Heading</h1>





HTML Images + Links




<a href="https://harmash.com/tutorials/html"><img src="https://linktrle.com/uploads/logo/98cf1ab4d1777555423c0d49ed006834.png"></a>





Custom HTML


Moving text from left to right


<marquee direction="right" behavior="alternate" style="border:RED 2px SOLID" >  

<font face="Andalus" size="9" color=White>💞welcome👋</font>  

</marquee>



HTML Text with beautiful words


<div class="jumbotron text-center">

<h1>We stand with Ukraine <img src="https://assets.hostinger.com/images/flags/ua-flag-723e5b9de9.png" alt="" /></h1>

<p>The Russian government’s attack on Ukraine has put millions of innocent lives in danger. We stand with Ukraine to support their freedom</p>

<p>and to defend democracy. If you wish to support Ukraine and its people in their time of need, please consider<span style="color: #ff6600;"><strong><a style="color: #ff6600;" href="https://www.icrc.org/en/donate/ukraine" target="_blank" rel="noopener"> donating to the Red Cross</a>.</strong></span></p>

</div>