Menu icon Foundation
font class : obsolete for W3C

Hello,

The labels use the `font class`, which seems to be considered as obsolete by W3C Validator. Is it a way to fix it? (for example, is it possible to use `div class` instead `font class`?

Thank you

Yves

<div class="icon-bar five-up nav-bis">
    <a href="#titre-menu" class="item-nav">
	<label><font class='font-nav-bis'>About</font></label>
	</a>
</div>
            

         

font class

Hello,

The labels use the `font class`, which seems to be considered as obsolete by W3C Validator. Is it a way to fix it? (for example, is it possible to use `div class` instead `font class`?

Thank you

Yves

<div class="icon-bar five-up nav-bis">
    <a href="#titre-menu" class="item-nav">
	<label><font class='font-nav-bis'>About</font></label>
	</a>
</div>
            

         

This post has been closed. No new replies can be added.

Rafi Benkual over 4 years ago

I'm not seeing a font tag being used in the markup:

<a class="item">
    <img src="../assets/img/images/fi-home.svg" >
    <label>Home</label>
  </a>

Also you can add any markup you like in label tag like
<strong> ,

<small> , etc

Andrew Butler over 4 years ago

Does the below code not work for you? I don't recognize the font class in Foundation.

<div class="icon-bar five-up nav-bis">
  <a class="item">
    <img src="../assets/img/images/fi-home.svg" >
    <label>About</label>
  </a>
</div>

Raffner over 4 years ago

Thank you!

Raffner over 4 years ago

Thank you!