Module: Phlex::HTML::VoidElements

Extended by:
Elements
Included in:
Phlex::HTML
Defined in:
lib/phlex/html/void_elements.rb

Overview

Void HTML elements don’t accept content and never have a closing tag.

Instance Method Summary collapse

Methods included from Elements

register_element, register_void_element, registered_elements

Instance Method Details

#area(**attributes, &content) ⇒ nil

Outputs an ‘<area>` tag.



11
# File 'lib/phlex/html/void_elements.rb', line 11

register_void_element :area

#br(**attributes, &content) ⇒ nil

Outputs a ‘
` tag.



17
# File 'lib/phlex/html/void_elements.rb', line 17

register_void_element :br

#col(**attributes, &content) ⇒ nil

Outputs a ‘<col>` tag.



23
# File 'lib/phlex/html/void_elements.rb', line 23

register_void_element :col

#embed(**attributes, &content) ⇒ nil

Outputs an ‘<embed>` tag.



29
# File 'lib/phlex/html/void_elements.rb', line 29

register_void_element :embed

#hr(**attributes, &content) ⇒ nil

Outputs an ‘<hr>` tag.



35
# File 'lib/phlex/html/void_elements.rb', line 35

register_void_element :hr

#img(**attributes, &content) ⇒ nil

Outputs an ‘<img>` tag.



41
# File 'lib/phlex/html/void_elements.rb', line 41

register_void_element :img

#input(**attributes, &content) ⇒ nil

Outputs an ‘<input>` tag.



47
# File 'lib/phlex/html/void_elements.rb', line 47

register_void_element :input

Outputs a ‘<link>` tag.



53
# File 'lib/phlex/html/void_elements.rb', line 53

register_void_element :link

#meta(**attributes, &content) ⇒ nil

Outputs a ‘<meta>` tag.



59
# File 'lib/phlex/html/void_elements.rb', line 59

register_void_element :meta

#param(**attributes, &content) ⇒ nil

Outputs a ‘<param>` tag.



65
# File 'lib/phlex/html/void_elements.rb', line 65

register_void_element :param, deprecated: "⚠️ [DEPRECATION] The <param> tag is deprecated. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param"

#source(**attributes, &content) ⇒ nil

Outputs a ‘<source>` tag.



71
# File 'lib/phlex/html/void_elements.rb', line 71

register_void_element :source

#track(**attributes, &content) ⇒ nil

Outputs a ‘<track>` tag.



77
# File 'lib/phlex/html/void_elements.rb', line 77

register_void_element :track