TiraULTI TiraULTI - 1 month ago 5
CSS Question

Set a single word many times to bold

Grettings,

I am making a simple webpage project with 4 HTML5 pages, and 2 CSS stylesheets.

I need the specific word "Arduino", that is repeated many times along all the pages, to be always showed in bold.

Is there any practical way to do it other than:

<strong>Arduino</strong>


Thanks!

Answer

Very simply way you can solve it. Just add this jQuery code:

Live view

$(document).ready(function(){
   // we define and invoke a function
    $("div").text(function () {
      $("body").html($("body").html().replace(/Arduino/g,'<b>Arduino</b>'));
    });

});
Comments