ActionView::Helpers::TagHelper
content_tag
API docs (Rails 8.1.4.1) ↗def content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, &block)
Description
Creates an element with the given name.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params