Kotlinlearncs.online LogoJava
Return to List

Solve: Make Tags

Imported By: Geoffrey Challen
/ Version: 2021.6.0

HTML is a markup language that is used by web documents. HTML uses tags to control how text is formatted: like "<i>Yay</i>" which renders "Yay" in italics. In this example, the "i" tag makes <i></i> which surround the word "Yay". Given a tag and word Strings, create the HTML string with tags around the word: such as "<i>Yay</i>".

String makeTags(String tag, String word) {
return ""; // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: