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>".

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

Related Lessons

Stuck? You may find these lessons helpful: