bs4.Declaration.title

Declaration.title() → unicode

Return a titlecased version of S, i.e. words start with title case characters, all remaining cased characters have lower case.