this text is inside the paragraph
")),n.createElement("em",null,"an HTML element for an image, which does not need a closing tag and cannot end, but should end in ",n.createElement("code",null,"/>"),":"),n.createElement("div",{className:"mr-3"},n.createElement(r.Z,{language:"html",style:o.Z},'i will be red!
')))),n.createElement("tr",{className:"border-b border-longan"},n.createElement("td",{className:"px-3 text-lg font-semibold",colSpan:2},"combining markdown and HTML")),n.createElement("tr",{className:"border-b border-longan"},n.createElement("td",{className:"px-3",colSpan:2},"in most cases, once you open an HTML tag, anything inside that tag will be processed like HTML. you can write text inside no problem, or nest other HTML elements, but"," ",n.createElement("em",null,"you cannot use markdown inside an HTML element."),"it won’t cause a bug, but the text inside the HTML element will not be rendered as markdown.",n.createElement("br",null),n.createElement("br",null),"you ",n.createElement("em",null,"can")," use markdown in the same post that you use HTML tags, as long as the markdown is outside of any HTML tag.",n.createElement("br",null),n.createElement("strong",null,"note:")," one bug in embedded HTML handling is how we handle line breaks. if the starting tag of an HTML block is on the same line as text contained in it, line breaks inside the block will be preserved, instead of collapsed.")))),n.createElement("table",{className:"cohost-shadow-light dark:cohost-shadow-dark w-prose table-auto overflow-hidden rounded-lg bg-notWhite"},n.createElement("thead",{className:"mx-auto bg-longan font-league"},n.createElement("tr",null,n.createElement("th",{className:"p-3 font-league text-xl font-semibold leading-6 tracking-tighter",colSpan:2},"CSS"))),n.createElement("tbody",{className:"bg-notWhite"},n.createElement("tr",{className:"border-b border-longan"},n.createElement("td",{className:"max-w-prose px-3",colSpan:2},"most formatting of HTML elements is done with a different language known as CSS. CSS consists primarily of “properties”, which specify what type of formatting you are trying to change, and “property values”, which let you specify how that formatting will appear. for example, to get red text, you would set the ",n.createElement("code",null,"color")," property to the property value ",n.createElement("code",null,"red"),". we will see the syntax for setting properties below. when making your own website, you will often make a separate CSS file, known as a “stylesheet”, then apply the styles in that sheet to matching HTML elements.",n.createElement("br",null),n.createElement("br",null),n.createElement("b",null,"however, as a cohost user,"," ",n.createElement("em",null,"you cannot make your own stylesheets"),", and must write all CSS via",n.createElement("em",null,"“inline CSS.”")," this is a common source of confusion when trying to read CSS tutorials in order to format your coposts."),n.createElement("br",null),n.createElement("br",null),"to write inline CSS, put all of your CSS code within the ",n.createElement("code",null,"style")," attribute of the HTML element you want to format. it's good practice to end each property/value pair with ",n.createElement("code",null,";")," and it's required to do so to put multiple properties in one HTML ",n.createElement("code",null,"style")," attribute.",n.createElement("br",null),n.createElement("br",null),n.createElement("em",null,"for example:"),n.createElement("div",{className:"mr-3"},n.createElement(r.Z,{language:"html",style:o.Z},'this text will be red
\n\n\n\tthis text will be blue, 16px large, and bold\n
')))))),n.createElement("table",{id:"snippets",className:"cohost-shadow-light dark:cohost-shadow-dark w-prose table-auto overflow-hidden rounded-lg bg-notWhite"},n.createElement("thead",{className:"mx-auto bg-longan font-league"},n.createElement("tr",null,n.createElement("th",{className:"p-3 font-league text-xl font-semibold leading-6 tracking-tighter",colSpan:2},"common formatting & code snippets"))),n.createElement("tbody",{className:"bg-notWhite"},n.createElement("tr",{className:"border-b border-longan"},n.createElement("td",{className:"max-w-prose px-3",colSpan:2},"below are common formatting tasks that you might use HTML and CSS for, and simple code snippets that you can copy and paste to achieve this formatting.")),n.createElement("tr",{className:"border-b border-longan"},n.createElement("td",{className:"px-3 font-bold"},n.createElement("b",null,"centering or aligning text")),n.createElement("td",{className:"max-w-prose"},"to align text, create an HTML element by wrapping it in a ",n.createElement("code",null,""),", or another similar tag, and add the"," ",n.createElement("code",null,"style")," attribute to that element (which allows you to add inline CSS) and make sure that attribute sets the CSS property"," ",n.createElement("code",null,"text-align"),". use"," ",n.createElement("code",null,"text-align: center")," to horizontally center text, and ",n.createElement("code",null,"text-align: right")," to right-align it. by default, text will be left-aligned.",n.createElement("br",null),n.createElement("br",null),n.createElement("em",null,"you can copy and paste this code and replace “eggbug” with the text you want to center:"),n.createElement("div",{className:"mr-3"},n.createElement(r.Z,{language:"html",style:o.Z},'