123456789_123456789_123456789_123456789_123456789_

Module: CGI::Html5

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, TagMaker
Defined in: lib/cgi/html.rb

Overview

Mixin module for HTML version 5 generation methods.

Instance Method Summary

  • #doctype

    The DOCTYPE declaration for this version of HTML.

TagMaker - Included

#nn_element

Generate code for an element with required start and end tags.

#nn_element_def,
#nO_element

Generate code for an element for which the end (and possibly the start) tag is optional.

#nO_element_def,
#nOE_element

Generate code for an empty element.

#nOE_element_def

Instance Method Details

#doctype

The DOCTYPE declaration for this version of HTML

[ GitHub ]

  
# File 'lib/cgi/html.rb', line 972

def doctype
  %|<!DOCTYPE HTML>|
end