lilypond-usage: HTML

 
 3.2.3 HTML
 ----------
 
 ‘lilypond-book’ provides the following commands and environments to
 include music in HTML files:
 
    • the ‘<lilypond ... />’ command, where you can directly enter short
      lilypond code
 
    • the ‘<lilyond>...</lilypond>’ environment, where you can directly
      enter longer lilypond code
 
    • the ‘<lilypondfile>...</lilypondfile>’ command to insert a lilypond
      file
 
    • the ‘<musicxmlfile>...</musicxmlfile>’ command to insert a MusicXML
      file, which will be processed by ‘musicxml2ly’ and ‘lilypond’.
 
    In the input file, music is specified with any of the following
 commands:
 
      <lilypond options go here>
        YOUR LILYPOND CODE
      </lilypond>
 
      <lilypond options go here: YOUR LILYPOND CODE />
 
      <lilypondfile options go here>FILENAME</lilypondfile>
 
      <musicxmlfile options go here>FILENAME</musicxmlfile>
 
    For example, you can write
      <lilypond fragment relative=2>
      \key c \minor c4 es g2
      </lilypond>
 
 ‘lilypond-book’ then produces an HTML file with appropriate image tags
 for the music fragments:
 
 [image src="" alt="[image of music]" text="image of music"]
    For inline pictures, use ‘<lilypond ... />’, where the options are
 separated by a colon from the music, for example
 
      Some music in <lilypond relative=2: a b c/> a line of text.
 
    To include separate files, say
 
      <lilypondfile OPTION1 OPTION2 ...>FILENAME</lilypondfile>
 
    ‘<musicxmlfile>’ uses the same syntax as ‘<lilypondfile>’, but simply
 references a MusicXML file rather than a LilyPond file.
 
    For a list of options to use with the ‘lilypond’ or ‘lilypondfile’
 tags, see SeeMusic fragment options.
 
    Additionally, ‘<lilypondversion/>’ displays the current version of
 lilypond.