module Phlex::HTML::VoidElements
Void HTML elements donβt accept content and never have a closing tag.
Public Instance Methods
Source
# File lib/phlex/html/void_elements.rb, line 10 def area(**attributes) = nil # Outputs a `<base>` tag. # [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base) # [Spec](https://html.spec.whatwg.org/#the-base-element) __register_void_element__ def base(**attributes) = nil # Outputs a `<br>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/br) # [Spec](https://html.spec.whatwg.org/#the-br-element) __register_void_element__ def br(**attributes) = nil # Outputs a `<col>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/col) # [Spec](https://html.spec.whatwg.org/#the-col-element) __register_void_element__ def col(**attributes) = nil # Outputs an `<embed>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/embed) # [Spec](https://html.spec.whatwg.org/#the-embed-element) __register_void_element__ def embed(**attributes) = nil # Outputs an `<hr>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/hr) # [Spec](https://html.spec.whatwg.org/#the-hr-element) __register_void_element__ def hr(**attributes) = nil # Outputs an `<img>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/img) # [Spec](https://html.spec.whatwg.org/#the-img-element) __register_void_element__ def img(**attributes) = nil # Outputs an `<input>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/input) # [Spec](https://html.spec.whatwg.org/#the-input-element) __register_void_element__ def input(**attributes) = nil # Outputs a `<link>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/link) # [Spec](https://html.spec.whatwg.org/#the-link-element) __register_void_element__ def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil
Source
# File lib/phlex/html/void_elements.rb, line 15 def base(**attributes) = nil # Outputs a `<br>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/br) # [Spec](https://html.spec.whatwg.org/#the-br-element) __register_void_element__ def br(**attributes) = nil # Outputs a `<col>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/col) # [Spec](https://html.spec.whatwg.org/#the-col-element) __register_void_element__ def col(**attributes) = nil # Outputs an `<embed>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/embed) # [Spec](https://html.spec.whatwg.org/#the-embed-element) __register_void_element__ def embed(**attributes) = nil # Outputs an `<hr>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/hr) # [Spec](https://html.spec.whatwg.org/#the-hr-element) __register_void_element__ def hr(**attributes) = nil # Outputs an `<img>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/img) # [Spec](https://html.spec.whatwg.org/#the-img-element) __register_void_element__ def img(**attributes) = nil # Outputs an `<input>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/input) # [Spec](https://html.spec.whatwg.org/#the-input-element) __register_void_element__ def input(**attributes) = nil # Outputs a `<link>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/link) # [Spec](https://html.spec.whatwg.org/#the-link-element) __register_void_element__ def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag.
Source
# File lib/phlex/html/void_elements.rb, line 20 def br(**attributes) = nil # Outputs a `<col>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/col) # [Spec](https://html.spec.whatwg.org/#the-col-element) __register_void_element__ def col(**attributes) = nil # Outputs an `<embed>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/embed) # [Spec](https://html.spec.whatwg.org/#the-embed-element) __register_void_element__ def embed(**attributes) = nil # Outputs an `<hr>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/hr) # [Spec](https://html.spec.whatwg.org/#the-hr-element) __register_void_element__ def hr(**attributes) = nil # Outputs an `<img>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/img) # [Spec](https://html.spec.whatwg.org/#the-img-element) __register_void_element__ def img(**attributes) = nil # Outputs an `<input>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/input) # [Spec](https://html.spec.whatwg.org/#the-input-element) __register_void_element__ def input(**attributes) = nil # Outputs a `<link>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/link) # [Spec](https://html.spec.whatwg.org/#the-link-element) __register_void_element__ def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track)
Source
# File lib/phlex/html/void_elements.rb, line 25 def col(**attributes) = nil # Outputs an `<embed>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/embed) # [Spec](https://html.spec.whatwg.org/#the-embed-element) __register_void_element__ def embed(**attributes) = nil # Outputs an `<hr>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/hr) # [Spec](https://html.spec.whatwg.org/#the-hr-element) __register_void_element__ def hr(**attributes) = nil # Outputs an `<img>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/img) # [Spec](https://html.spec.whatwg.org/#the-img-element) __register_void_element__ def img(**attributes) = nil # Outputs an `<input>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/input) # [Spec](https://html.spec.whatwg.org/#the-input-element) __register_void_element__ def input(**attributes) = nil # Outputs a `<link>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/link) # [Spec](https://html.spec.whatwg.org/#the-link-element) __register_void_element__ def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track) # [Spec](https://html.spec.whatwg.org/#the-track-element)
Source
# File lib/phlex/html/void_elements.rb, line 30 def embed(**attributes) = nil # Outputs an `<hr>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/hr) # [Spec](https://html.spec.whatwg.org/#the-hr-element) __register_void_element__ def hr(**attributes) = nil # Outputs an `<img>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/img) # [Spec](https://html.spec.whatwg.org/#the-img-element) __register_void_element__ def img(**attributes) = nil # Outputs an `<input>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/input) # [Spec](https://html.spec.whatwg.org/#the-input-element) __register_void_element__ def input(**attributes) = nil # Outputs a `<link>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/link) # [Spec](https://html.spec.whatwg.org/#the-link-element) __register_void_element__ def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track) # [Spec](https://html.spec.whatwg.org/#the-track-element) __register_void_element__
Source
# File lib/phlex/html/void_elements.rb, line 35 def hr(**attributes) = nil # Outputs an `<img>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/img) # [Spec](https://html.spec.whatwg.org/#the-img-element) __register_void_element__ def img(**attributes) = nil # Outputs an `<input>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/input) # [Spec](https://html.spec.whatwg.org/#the-input-element) __register_void_element__ def input(**attributes) = nil # Outputs a `<link>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/link) # [Spec](https://html.spec.whatwg.org/#the-link-element) __register_void_element__ def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track) # [Spec](https://html.spec.whatwg.org/#the-track-element) __register_void_element__ def
Source
# File lib/phlex/html/void_elements.rb, line 40 def img(**attributes) = nil # Outputs an `<input>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/input) # [Spec](https://html.spec.whatwg.org/#the-input-element) __register_void_element__ def input(**attributes) = nil # Outputs a `<link>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/link) # [Spec](https://html.spec.whatwg.org/#the-link-element) __register_void_element__ def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track) # [Spec](https://html.spec.whatwg.org/#the-track-element) __register_void_element__ def track
Source
# File lib/phlex/html/void_elements.rb, line 45 def input(**attributes) = nil # Outputs a `<link>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/link) # [Spec](https://html.spec.whatwg.org/#the-link-element) __register_void_element__ def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track) # [Spec](https://html.spec.whatwg.org/#the-track-element) __register_void_element__ def track(**
Source
# File lib/phlex/html/void_elements.rb, line 50 def link(**attributes) = nil # Outputs a `<meta>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meta) # [Spec](https://html.spec.whatwg.org/#the-meta-element) __register_void_element__ def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track) # [Spec](https://html.spec.whatwg.org/#the-track-element) __register_void_element__ def track(**attributes)
Source
# File lib/phlex/html/void_elements.rb, line 55 def meta(**attributes) = nil # Outputs a `<source>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/source) # [Spec](https://html.spec.whatwg.org/#the-source-element) __register_void_element__ def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track) # [Spec](https://html.spec.whatwg.org/#the-track-element) __register_void_element__ def track(**attributes) =
Source
# File lib/phlex/html/void_elements.rb, line 60 def source(**attributes) = nil # Outputs a `<track>` tag. # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/track) # [Spec](https://html.spec.whatwg.org/#the-track-element) __register_void_element__ def track(**attributes) = nil
Source
# File lib/phlex/html/void_elements.rb, line 65 def track(**attributes) = nil end