Section
The HTML <section>
tag, implemented in Ruby.
Parameters
This component accepts all the canonical HTML global attributes like id
or class
.
Examples
Example 1: Basic usage
section id: "foo", class: "bar" do
plain 'Hello World' # optional content
end
returns
<section id="foo" class="bar">
Hello World
</section>
Last updated
Was this helpful?