Skip to main content

Arcadis is Hiring!!!

 ARCADIS IS HIRING!!! Company : Arcadia Position : Software Engineer Experience : Bs/Ms Degree : BS in CS Apply Link: Apply Here

7 Cool HTML effects for your website

 

7 Cool HTML Effects that can make your Website Cool!!!

The "HTML" effects are used to create an attractive website with the help of new latest effects which are available in HTML5



1. Parallax Effect using HTML:

     Parallax effect is an extremely popular design feature that is commonly used on WordPress                    websites. This special effect has featured in the gaming world for years but has more recently                  crossed over into web design. And so far this major trend doesn’t seem to be going anywhere, if              anything it is being more widely used than ever. 

      In this Blog, we will consider what a parallax effect is and the benefits it can bring to your site and       business. We will then discuss how to quickly and easily add a parallax effect to any WordPress              website, page, or post, with a theme or a plugin.

      CODE:

       <style>
.parallax {
  background-image: url("img.jpg");
  min-height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
</style>
<div class="parallax"></div>




2. Scrollable HTML Comment Box Code:
     Scrolling effects are the ones that we have seen a lot on interactive websites. With libraries     of animations triggered by scroll action, it’s become much easier to create dynamic scrolling     web experiences.

    You might have seen some interactive websites that bring delightful experience as users        scroll down for more content. Or you might even have built one yourself using some scroll        techniques to enrich the user experience. Having done some research and worked on a        few websites using scroll effects, I decided to compile what I found and learned to share        with you.
     


    CODE:

        Html code:
                           <div class="scrollmenu">
              <a href="#home">Home</a>
              <a href="#news">News</a>
              <a href="#contact">Contact</a>
              <a href="#about">About</a>
              </div>
        
        Css code:
                        div.scrollmenu {
             background-color: #333;
             overflow: auto;
             white-space: nowrap;
             }

             div.scrollmenu a {
             display: inline-block;
             color: white;
             text-align: center;
             padding: 14px;
             text-decoration: none;
             }

             div.scrollmenu a:hover {
             background-color: #777;
             }

3. Highlighted Text:

        With a simple <span> HTML tag you can add a ton of cool effects to your text or images. Note         that not all of them work across browsers. The ones mentioned here work in Google Chrome,         Microsoft Edge, and Mozilla Firefox.

        This HTML text effect highlights the text between the <span> tags.

  CODE:

                <p>how to make text <mark>Highlighted</mark> today.</p>

4. Add Background Image to Text:
        To insert an image in HTML, use the image tag and include a source and alt attribute.            Like any other HTML element, you’ll add images to the body section of your HTML file.
        The syntax looks like this: <img src="URL" alt="descriptive text">.
        An image is known as an “empty element” in HTML. While elements like a paragraph                
contain content between their opening and closing tags, an image has no content or                closing tag. Instead, it contains attributes only. Compare the following lines of code to            see the difference between a paragraph and an image.

     CODE:

                    body {
          background-image: url("paper.gif");
          background-color: #cccccc;
          }

5. Add a Title Tooltip:
   A title tooltip comes up when you scroll with the mouse over a piece of "manipulated" text       or image. You'll have seen these used on websites on images, linked text, or even menu          items in desktop apps. Use this HTML code to add a tooltip to plain text on your webpage.

    CODE:

    Html Code:
                    <a href="#" data-toggle="tooltip" title="Hooray!">Title tooltip</a>
  
  Script Code:

              <script>
              $(document).ready(function(){
              $('[data-toggle="tooltip"]').tooltip();
              });
              
              </script>

6. Scrolling or Falling Text:
    When you search for "marquee html" on Google, you'll discover a little Easter Egg. See           the scrolling search result count at the top? That's an effect created by the now obsolete           marquee tag. While this once-cool HTML text effect has been deprecated, most browsers        still support it.
    

    CODE:

            <marquee behavior="scroll" direction="left">HTML scrolling text... </marquee>

7. Build a Cool Switchmenu With HTML:
    The coolest HTML tricks are dynamic HTML effects. However, they are often script                based. Here is one effect for menus that you'll agree looks very slick.

        It's a little more complicated than your average HTML tag because it works with a style         sheet and scripts. The advantage is that you don't have to upload a CSS or script file to            make it work. Instead, simply paste the following code into the <head> section of your            website.

    CODE:

  <style type="text/css">.menutitle{
cursor:pointer;
margin-bottom: 5px;
background-color:#ECECFF;
color:#000000;
width:140px;
padding:2px;
text-align:center;
font-weight:bold;
/*/*/border:1px solid #000000;/* */
}.submenu{
margin-bottom: 0.5em;
}
</style><script type="text/javascript">var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page onlyif (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">n')
document.write('.submenu{display: none;}n')
document.write('</style>n')
}function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunctionif (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate</script>
And this code goes wherever you want the dynamic menu to appear.
<!-- Keep all menus within masterdiv-->
<div id="masterdiv"><div onclick="SwitchMenu('sub1')">Topics</div>
<span id="sub1">
- <a href="https://www.makeuseof.com/service/browser">Browsers/Addons</a><br>
- <a href="https://www.makeuseof.com/service/web_based">Web Apps</a><br>
- <a href="https://www.makeuseof.com/service/how-to">How-To Tips</a><br>
- <a href="https://www.makeuseof.com/service/applications">Cool Software</a><br>
...and more!
</span><div onclick="SwitchMenu('sub2')">Staff Writers</div>
<span id="sub2">
- <a href="https://www.makeuseof.com/tag/author/karl-l-gechlik/">Karl Gechlik</a><br>
- <a href="https://www.makeuseof.com/tag/author/tinsie/">Tina</a><br>
- <a href="https://www.makeuseof.com/tag/author/varunkashyap/">Varun Kashyap</a><br>
...and more!
</span><div onclick="SwitchMenu('sub3')">Miscellaneous</div>
<span id="sub3">
- <a href="https://www.makeuseof.com/about/">About</a><br>
- <a href="https://www.makeuseof.com/contact">Contact</a><br>
- <a href="https://www.makeuseof.com/archives-2">Archives</a><br>
- <a href="https://www.makeuseof.com/disclaimer">Disclaimer</a><br>
</span></div>



Comments

Popular posts from this blog

Let's Start with the Internet Marketing | Affiliate Marketing

Digital Marketing is  that the act of promoting and mercantilism merchandise and services by leverage online selling ways like social media selling, search selling, and email marketing. At a high level, digital marketing refers to advertising delivered through digital channels like search engines, websites, social media, email, and mobile apps. Using these online media channels, digital marketing is that the method by which companies endorse goods, services, and brands. Consumers heavily depend upon digital means to research products. as an example, Think with Google marketing insights found that 48% of consumers start their inquiries on search engines, while 33% look to brand websites and 26% search within mobile applications. While modern-day digital marketing is an unlimited system of channels to which marketers simply must onboard their brands, advertising online is way more complex than the channels alone....

Hewlett Packard Enterprise

CMS INTERN JOB   At Hewlett Packard Enterprise, we bring together the brightest minds to create breakthrough technology solutions that advance the way people live and work. What sets us apart? Our people and our relentless dedication to helping our customers make their mark on the world. We are a team of doers, dreamers and visionaries; inspired by our purpose and driven by our strategy. We live by our three values: partner, innovate and act. Our legacy inspires us as we forge ahead, always pushing to discover what’s next. Every day is a new opportunity to advance and grow ourselves, our company and the industry. Some people call it an obsession, we call it a way of life. SOME INFORMATIONS AND BASIC REQUIREMENTS REGARDING THE JOB: Job ID: 1104914 Date Posted: 10/26/2021 Primary Location: Bangalore, Karnataka Other Locations: Bangalore, Karnataka, India,Chennai,TAMILNADU, India Job Category: Graduate Program and Internships Schedule: Full time Shift: No shift premium (India) Respons...