Website Moodle Site designed built and hosted by Enterprise Solutions

HTML and CSS playground

type what you see below into the HTML editor, then look at the preview windw:

The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the tag.
The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.
exmample of Doctype:

<!DOCTYPE html>
<html>
<head>

<title>Your first website</title>

</head>
<body> <div style="background-color: #00f; color:red" >
<h1> This is a heading </ h1>

this is a p tag it stands for paragraph
<p> this is a paragraph </p>
</div>
<body>
<html>

If you type the above code into the HTML editor and look at the preview window you will see a blue box with hello world written in red.

HTML editor

preview