User:Togepicha/sandbox

HTML and CSS
HTML is a programming language for webpages. HTML stands for Hypertext Markup Language. Creating a paragraph is simple, but understanding languages that are used with HTML is more challenging. The syntax for a paragraph is shown below: Headings in HTML are slightly more advanced than paragraphs. is the largest heading, is second largest and so on. The smallest heading is. The syntax for is shown below:

CSS is a language that is used with HTML. Is is used for styling webpages. CSS is defined using the tag. If you only want to style one item, use the style keyword, without the enclosing it.

Styling for all items: This will syle headings to be green. Paragraphs are changed as well. The spacing between the letters has increased due to the piece of code above. (If you already have styling for all items, the code below will overwrite the code above, only for that item).

Styling for one item: With HTML, you can not only code text, but lots more! Here is an example of how to code an image:

IDLE Python
IDLE stands for Integrated DeveLopment Environment. It also has built-in functions such as print. The print function tells Python to write something in the Shell. The syntax for writing in the Shell is:

Skip a line in the Shell using print
A print function with no parameters will skip a line in the Shell.

Shell >>>
At the beginning of each new line you take in the Shell, >>> will appear at the beginning. If you copy and paste into the Shell, then the code won't work because >>> won't appear at the beginning of every line.

This will appear at the beginning of each line: The problem if one line of code is copied: If you copy more than one line of code, this will happen:

This is the correct code:

Python: Common coding mistakes
Sometimes you will receive error messages such as 'invalid syntax'. Python will highlight the error code in red, but not always.

In the Shell, it will probably do this: If you were coding a window, you may make a mistake like this: Accidental double letters can be common mistakes made when coding in Python. This is one of the most common mistakes.