pesde primiti_ve / luau_html

paragraph

these are the equivalent of the <p> tag in HTML.

to create a paragraph, use lib.body.paragraph.new(text, arguments). it can then be appended to a page aslong as the destination is body!

functions

paragraph.new(text, arguments)

  • text is a string, and will be the text that is used in the paragraph (e.g <p>text</p>).
  • arguments is an optional list of arguments to use (e.g <p arguments>text</p>).
  • this returns a paragraph object.

Examples

Normal paragraph

local text = paragraph.new(`normal text!`)

Example 2

Right-aligned paragraph

local text = paragraph.new(`right aligned text.`, {
	style = "text-align:right",
})