Hello css

Report a typo

We have the simple HTML page:

call.respondHtml(HttpStatusCode.OK) {
    head {
        link(rel = "stylesheet", href = "/style.css")
    }
    body {
        h1("greeting1") {
            +"Hello css1"
        }
        h2("greeting2") {
            +"Hello css2"
        }
    }
}
}

Write the /style.css handler code which sets the following styles:

html page with green header one and strikethrough header two

Reorder lines using drag or arrows. Adjust indentation with left buttons
                rule(".greeting1") {
              
                color = Color("#00FF00")
              
                }
              
                call.respondCss {
              
                rule(".greeting2") {
              
                textDecoration = TextDecoration(setOf(TextDecorationLine.lineThrough))
              
                }
              
                }
              
___

Create a free account to access the full topic