Procrastination and Coding (Lab)

RESOURCES-UC
(Let me know if I got anything wrong, I’m not an expert but I do this for fun)

THREADS IN FORUMS


NOTES THAT MAY BE IMPORTANT

Differences Between Markdown, BBCode, HTML

Markdown
image

  • Uses this ‘toolbar’: highlight text and click an option to change text OR click an option which gives an outline like this…
    image
    Then, replace highlighted part with your text
  • Markdown is great for quickly making lists, polls, summaries, blurring words/sentences, getting preformatted text, hyperlinking, underlining, italicizing, etc…
    Yet it has many limitations. BBCode and HTML can do many more things.

BBCode

  • Uses square brackets

Example: [color=red]Text Here[/color]


HTML

  • Uses <>

Example: <h1>Heading</h>

  • HTML is great for coding with CSS to make what everyone likes: span.
Mixing Code (BBCode and HTML)
  1. Be careful with how each string is coded. Sometimes, you may need to skip a line for the code to work.
  2. Mixing Markdown with BBCode or HTML is fairly simple.
Properties Vs. Values

Say we are creating a post and somewhere in the code is this: border: 6px red dotted; width: 40px; height: 30px

  1. Properties in the example: border, width
  2. Values of border: whatever is after the colon and before the semicolon
  3. Use the right punctuation (colons and semicolons) in the right places or a part of the possible whole code will not work

To put it simply because I am not familiar with coding jargon, a property can be seen as a post’s characteristics and the values given to property are finer details.

Mobile Responsiveness

This one is a doozy but when one codes a span post, there will be times other users on other devices will say the beautiful image that was coded seems cut off. Do not worry, there are ways to fix this. I still struggle with this so if anyone knows a foolproof way, please post or tell me.

1-Code within a width of 300px (I did this for the first time to improvise dealing with a smaller screen but…it looked so narrow and just ugly so what else is there to do?)
2-px is used for fixed sizes so if your size goes over 300px, use a responsive unit. I used rem and vw. They should work

How do you check? Simple!
Inspect Element and find Responsive Design Mode (also Ctrl+Shift+M if I am not wrong). Then, there will be a portion of the thread that pops up. Pick a device you want to see ‘from’, adjust the height if needed, maybe scroll down a bit and if the post is not cut off, users using the device should not have problems viewing your creation. If the post is still cut off, try to figure out what went wrong whether it is the web unit being used or width length.


FONTS

Web Safe Fonts

W3schools’ List of Web Safe Fonts
Google Fonts List

Example

This is times new roman

Code for Example
[font="times new roman"]This is times new roman[/font]

Removing the quotation marks is fine too I do it and have not run into any issues yet


W3SCHOOLS (WEBSITE HOMEPAGE)

Notes for HTML
  • HTML elements are defined by start tags, content and an end tag. Tagnames will be identified in the example along with these things.
  • Usage of end tags are recommended even when code works without them.

Example
<i>This is content</i>
In this example, is the start tag, This is content is content and is the end tag.
Note that the code will run until there is an end tag and despite looking the same, there is a slash in the end tag. Also, the tagname here is “i” which means italics.

HTML

Headings

Examples

Heading 1

Heading 3

Heading 6
Code for first example
<h1>Heading 1</h1>

Styles (Font, size, colour)

Examples

The font size of this text is 6
The font color of this text is PLUM
This is red

Code for examples
<font size=6>The font size of this text is 6</font>
<font color=plum>The font color of this text is PLUM</font>
<font size=1><font color=red>This is red</font></font>

Formatting (Italics, bold, subscript, superscript, etc.)

Examples

Font size is 6
This is italicized
This is bold
This is smaller text
This is deleted text
Inserted text
H2O (Subscript)
n2 (Superscript)
Mix of bold and italics
WellHelloThere (Mix of italics and superscript)

Code for examples
<font size=6>Font size is 6</font>
<i>This is italicized</i>
<b>This is bold</b>
<small>This is smaller text</small>
<del>This is deleted text</del>
<ins>Inserted text</ins>
H<sub>2</sub>O (Subscript)
n<sup>2</sup> (Superscript)
<b><i>Mix of bold and italics</b></i>
Well<i><sup>Hello</i></sup>There (Mix of italics and superscript)

Blockquoting

Example
This is a blockquote. On the forums, you can quote a user by highlighting their words and clicking "QUOTE when it pops up. However, one use for this in threads is quoting or identifying text from sources outside of the forums such as websites
Code for example

<blockquote>This is a blockquote. On the forums, you can quote a user by highlighting their words and clicking "QUOTE when it pops up. However, one use for this in threads is quoting or identifying text from sources <i>outside of the forums</i> such as websites</blockquote>

For quoting comments on forums…
image
OR
> words here


COLOUR

Colour Wheels

Colour Pickers

Colour Palettes

Other colour stuff


Below in posts will be:

  1. Suggestion Wiki
  2. Basic Coding Rules
  3. Linking
  4. List of Properties + Values, and Usage
  5. Images/gifs
  6. All About Spans
  7. Creating Tables
  8. Some additional spots reserved for any topic that does not fit in these categories/original post
1 Like