Test Your Knowledge!

Take this quiz to test what we've learned in this chapter.

Quiz on HTML Domain-Specific Language.

1

What will be the output of the following Elixir DSL for HTML?

markup do
  tag :div, class: "row" do
    tag :h2 do 
      text "DSL"
    end
    tag :article do
      tag :p, do: text "Welcome!" 
    end
  end
end
A)
<div class\"row\"><h1> DSL </h1><article>Welcome!</article>
</div>
B)
<div class\"row\"><h1> DSL </h1><article><p>Welcome!</p></article>
</div>
C)
<div><h1> DSL </h1><article><p>Welcome!</p></article>
</div>
Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.