Valdas S
Valdas S

Reputation: 455

How to make one word bold in string using strong tag

For my recent project I have been using Typelt jQuery plugin. I used a function called tiType() and inside brackets I've added text. Since I am a jQuery begginer, I would like to ask why tag called strong does not work for me? Maybe there is other way to make word bold?

$('#example1').typeIt({
        speed: 60,
        autoStart: false
    })
    .tiPause(1000)
    .tiType('Hello, I want to bold <strong>this</strong> word.')

Upvotes: 0

Views: 2177

Answers (1)

Monkey_Dev1400
Monkey_Dev1400

Reputation: 944

you can use <b>this</b> as well

$('#example1').typeIt({
        speed: 60,
        autoStart: false
    })
    .tiPause(1000)
    .tiType('Hello, I want to bold <strong>this</strong> word.')
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/typeit/4.4.0/typeit.min.js"></script>
<div id="example1" class="type-it"></div>

Upvotes: 1

Related Questions