• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / JavaScript / How to make the font-weight bold of the first word with JS?

How to make the font-weight bold of the first word with JS?

first-word-bold
View Demo

1) Add the class firstWord to your heading or paragraph

2) You can select the first word of the text by adding a span class to it with jQuery

Filed Under: JavaScript Tagged With: jQuery

About Gabor Flamich

I'm a web developer and designer based in Budapest, Hungary. In recent years, I've documented hundreds of solutions I came across during development. This site is an archive for useful code snippets on WordPress, Genesis Framework and WooCommerce. If You have any questions related to WordPress development, get in touch!

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved