Setting attributes

Report a typo

How can we create an image?

1)

img {
    attrs["class"] = "myImage"
    attrs["src"] = "https://example.com/image.png"
}

2)

img {
    attributes["class"] = "myImage"
    attributes["src"] = "https://example.com/image.png"
}

3)

img {
    "class" = "myImage"
    "src" = "https://example.com/image.png"
}

4)

img(classes = "myImage", src = "https://example.com/image.png") {
}

5)

img {
    class: "myImage"
    src: "https://example.com/image.png"
}
Select one or more options from the list
___

Create a free account to access the full topic