Writing HTML Code In A Simple Online Code Editor
If you are using a simple online code editor like JS Bin, JSFiddle, CodePen then you don't need to create a new file. These editors provide a text area where you can type in HTML code and a white background where your previewed website will display.
- A good first example to try for you is to type a heading tag inside the HTML text area (in theory you don't need to add a
<html>
, <head>
, <body>
tag etc., but I would still recommend to add a HTML skeleton):
<h1>Hello World</h1>
-
For some editors you need to press a 'Run ā¶' button, so that your code is analyzed and the results displayed, for other editors this happens automatically after a short moment.
-
If you wrote everything correctly a big black 'Hello World' text should display on the white background! š„³š
I recommend that you type all the code by yourself without using copy and paste. This will force you to recall programming keywords from memory and thereby strengthen your memory.
Next, you could add one or two paragraphs or add an ordered or unordered list...