Code HTMLFormat text using code or code block in Google Sites through the WYSIWYG Format HTML menu.
|
BlockQoute Code Example
<code>Code Example</code>
There is no standard HTML for code text. The Google Sites style can be recreated using the Inline CSS - style attribute. <div style="color:#006000;font-family:monospace;border:1px solid lightGrey; padding:0.5em">Recreated Code Style</div>
Google Sites Code HTML CodeGoogle Sites creates the following for BlockQoute Code HTML, which will only render within Google Sites as it uses an internal class <div class="sites-codeblock sites-codesnippet-block"><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " class="sites-codesnippet-block"></p><code>Block Code Example</code></div>
The Inline CSS style attribute used within the Paragraph text can also be edited, by clicking the <HTML> button in the Menu Bar. <p style="" >Inline CSS </p>
|
Google Sites HTML > WYSIWYG HTML Editors >