HTML code guidelines and tips
Sandvox has many ways of allowing you to use your own custom HTML code:
- Raw HTML object
- Code Injection
- Raw HTML/Text page
Below are some tips and guidelines to help you get the most out of these features and avoid some possible pitfalls.
The ability to insert custom HTML code is an advanced ability of Sandvox. Because of the extent of HTML and the many ways in which HTML can be incorporated into a Sandvox site, Karelia does not attempt to provide its own HTML tutorial, nor can it provide specific troubleshooting advice related to an individual user's HTML code.
If you would like to explore the possibilities that using HTML in your Sandvox site presents and need some assistance, we encourage you to visit the following third party sites that specifically address HTML issues:
Validate your HTML
After finishing your HTML code, please use Sandvox's built-in validation to check it.
HTML Type
Please try to use valid HTML5, closing all tags and using lowercase tag names, etc.
Image Tags
Avoid using <img> tags pointing to the _Media directory, which is used internally by Sandvox.
Page tags
When using custom HTML code within a Sandvox site, it only forms part of a page. Therefore you should only use snippets of code. In particular, do not use the <html>, <head> and <body> tags.
The exception to this is if you are using a Raw HTML/Text page. In this case, you really are writing the HTML code for an entire webpage and need to provide all tags, including <html>, <head> and <body>.
Heading tags
Please avoid use of the <h1> and <h2> tags and be cautious with <h3> and <h4>, since these are already defined and used by Sandvox designs.
JavaScript
JavaScript can be used anywhere HTML code can be inserted. Note that if you have the "Load Data from the Internet" preference turned off, scripts will not load while editing a site. Please see the "JavaScript" article for more information.
What if I can't provide valid HTML?
Sometimes you may be unable to provide proper valid HTML code. Although it is less problematic to have valid HTML, your site will probably function perfectly well anyway. However, we would strongly recommend that you test the site out on a range of different web browsers first before publishing it.
Keywords: raw, html, xhtml, code, coding, codes, markup, mark, up, rule, rules, tag, tags, guideline, guidelines, syntax, page, pages, object, objects, sandvox, head, body, external, editor, fill, entire, validate, validation, validating, type, transitional, transition, strict, file, page, prelude, preludes, custom, head, <head>, element, elements