HTML Basics

You can copy (Ctrl C) and paste (Ctrl V) this into Notepad for Windows or any other equivalent:

<!DOCTYPE html>
<html>
	<head>
		<title>This is the title</title>
	</head>
	<body>
		This is the content
	</body>
</html>

Don’t type this in, this should be your output when you save it as an html doc and open it:

This is the title
	
	
		This is the content

This is how html input looks like on Notepad ++:

To get the output, click save as on Notepad or Notepad ++ and save the document as an html file. For Notepad, when typing the name of the file, add .html at the end of it. Ex : HTMLdocs.html . For Notepad ++ scroll threw the options till you find HypertextMarkupLanguage or html doc.

Every HTML document starts with <!DOCTYPE html>. The <> is called a tag. Each starting tag <> must have an ending tag </>.

For example, if you make the starting tag <html>, you must close the tag in the end with </html>.

This document is split into the two main categories, <head> and <body>.

In the head tag, we can write the title using the <title> and write the name of the title, which is “This is the title”. In the body tag, we can write content.

Design a site like this with WordPress.com
Get started