Why is the font awesome showing up three times?

Viewed 560
<div class="Contact-form">
        <div id= "form-area" class="sadaka-form">
            <h2>CONTACT FORM</h2>
            <input type="text" name="Name" placeholder="Name*">
            <input type="email" name="email" placeholder="E-mail*" >
            <textarea name="message" placeholder="Message*" cols="30" rows="10"></textarea>
            <button class= "form-control">Send message</button>
        </div>
        <div id= "contact-area" class="sadaka-contacts">
            <h3>SADAKA CONTACTS</h3>
            <p>Sadaka ipsum dolor sit amet, consectetur adipiscing elit. Ut at eros rutrum turpis viverra elementum semper quis ex. Donec lorem nulla .</p>
            <ul>
                <li><span><i class="fa fa-map-marker"></span></li>
                <li><span><i class="fa fa-phone"></span></li>
                <li><span><i class="fa fa-envelope"></span></li>
            </ul>
        </div>
    </div>

my problem is that the font awesome icon is showing up three times. i dont know where am i doing wrong ? i have included the link to the error screenshot as well.

Here is the image enter image description here

2 Answers

The correct way to use FontAwesome icons is: <i class="fas fa-map-marker"></i> (look at the final </i> tag).

In your case:

<li><span><i class="fa fa-map-marker"></i></span></li>
<li><span><i class="fa fa-phone"></i></span></li>
<li><span><i class="fa fa-envelope"></i></span></li>

The i tag should be closed.

<ul>
    <li><span><i class="fa fa-map-marker"></i></span></li>
    <li><span><i class="fa fa-phone"></i></span></li>
    <li><span><i class="fa fa-envelope"></i></span></li>
</ul>

The i tag is not an empty html tag nor a solidus tag and hence needs a closing tag

Related