Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Sheet Author Guide: Using HTML

1650639625

Edited 1650656876
GiGs
Pro
Sheet Author
API Scripter
I've been hard at work creating a reference guide for sheet authors making their first character sheets. The last month I've been hard at work producing the HTML part of the guide, and you can read the posts on my blog . One post will go up tonight and daily next week. If anyone spots typos or has suggestions, feel free to send them my way. Here's the introduction to this part of the guide, from this page:&nbsp; <a href="https://cybersphere.me/html-building-blocks/" rel="nofollow">https://cybersphere.me/html-building-blocks/</a> This chapter is a reference guide to using HTML in character sheet design. Covering the entirety of HTML is way too big of a task – there are whole websites devoted to that. Instead, this guide gives you the specific information you need to do the HTML part of a Roll20 character sheet. This section of the Guide could be huge, so it is broken up into several posts: Headings and Line Breaks : these most basic HTML elements are great for showing what HTML elements look like. Attributes and Inputs : In Roll20, attributes are the most important things on a character sheet, and the most common way to create them is with the Input element. Displaying Text : You need to create decorative text all over the sheet – stat labels, tab headings, and so on. You’ll often need to use the span and textarea elements. Containers and DIVs : Being able to group related elements together is handy – you might want to create a stat block, a bio section, an encumbrance section and so on. You’ll learn about the div , section , and details elements. Choosing from a List: It’s very handy to be able to choose things from a list – what race are you, which spell are you using, and so on. If the list is entirely predefined, use the select element, but if players can add to the list, use datalists . Conditional Inputs: Sometimes its handy to be able to tick whether something is on or off, or define a setting from a small group. You’ll learn about checkboxes and radio buttons, and the labels for them. Buttons For Making Rolls: If you want to build rolls into the sheet, you’ll need to learn about roll buttons . These use Roll20’s dice macro system, and so are unique to Roll20 and general HTML sites will be no help on figuring out how they work. Images: You will often want to decorate your sheet with images. You’ll learn better ways to do this in the next chapter of the guide, on CSS, but HTML has a way to do this and we’ll cover this here. HTML Fundamentals :This post describes other things about using HTML, like good practices and how to add comments. Character Sheet – HTML Example: Here’s a simple sheet you can test out yourself, and see some of the HTML elements described here in use. There’s a HTML file for you to download and try yourself. Together these posts make up everything you need to make a functional sheet. It won’t be pretty – for that, you’ll need chapter 2: CSS.
1650656465

Edited 1650656636
Andreas J.
Forum Champion
Sheet Author
Translator
GiGs said: Here's the introduction to this part of the guide, from this page: <a href="https://cybersphere.me/html-building-blocks/" rel="nofollow">https://cybersphere.me/html-building-blocks/</a> Link is broken, has an extra : at the end this links correctly: <a href="https://cybersphere.me/html-building-blocks/" rel="nofollow">https://cybersphere.me/html-building-blocks/</a> On <a href="https://cybersphere.me/html-basics-4/" rel="nofollow">https://cybersphere.me/html-basics-4/</a> "Sections"-header, you kept talking about "HTML tags", but the correct therm is "HTML elements". Bet it's partially a mistake carrying over from the wiki, where I started of using "tags" incorrectly, and there probably still bunch of places I haven't managed to correct since. Nice, these guides will help a lot of folks, and explains things better than the wiki. added to <a href="https://wiki.roll20.net/Character_Sheet_Development/Tutorials" rel="nofollow">https://wiki.roll20.net/Character_Sheet_Development/Tutorials</a>
1650657189

Edited 1650657363
GiGs
Pro
Sheet Author
API Scripter
I wonder how that first link got malformed. Thanks for your comments. The terms tag and element have a bit of confusion. I believe both are correct in this context. For example, you can refer to an input tag when talking about inputs, but when you refer to an input element, you are referring to the whole construct. This is an element: &lt;input type="text" name="attr_example" value="0"&gt; This is a tag: input . That said, this is an area that can cause confusion, and I probably need to explain it somewhere. PS: you found the one page that still had the old URL structure. Oops! Anyone else viewing that page will now find it at: <a href="https://cybersphere.me/containers-div-section-details/" rel="nofollow">https://cybersphere.me/containers-div-section-details/</a>