Sitemap
Web-Tips

This is the place for website tips! Everyone is welcomed but these are tips targeted to beginners learning HTML, CSS, and JavaScript. I am a web developer and I know the challenges and struggles that come from learning web design. I want to make that process for you a lot easier

HTML Tutorial For Beginners

4 min readNov 26, 2018

--

Hello everyone, this is a basic HTML tutorial for beginners. If you don’t have any coding experience or don’t know anything about HTML than this tutorial is right for you. I will start from the very beginning and by the end you will start writing you first lines of HTML. This tutorial will be covered in multiple parts. This is part one of the tutorial.

TLDR: view a summarized presentation or video below:

What is HTML?

HTML stands for Hypertext markup language. Hypertext is basically the links. Web pages are just text and graphics on a page. Just like any paper or printed document. Web pages can also have links that go to different sections of a page, those links are hypertext. HTML is a markup language used on web pages. HTML “marks” or labels the text on the page because web pages are like documents.

Press enter or click to view image in full size

HTML is not a programming language so you won’t do any critical, logic, or mathematical thinking. You are not solving problems you are just marking up the document. Anyone can write HTML. All you need for HTML is a text editor and a browser that’s it. As far as I know all computers have a text editor and a browser.

Browser and text editor

Browsers are applications or software that read HTML and displays it on the screen. If you are reading this you are using a browser. Some popular web browsers are Chrome, Firefox, Safari, and Internet Explorer. They all do the same thing. They all can display HTML on the screen. That is why you mark up the document so that the browser knows how to display it on the screen.

Many text editors can be found online. Some are free and others can be purchased. They all have different features and support different languages. Your computer probably has one installed by default.

Press enter or click to view image in full size

If you are using a PC or windows machine the text editor is called Notepad. To access it go to the bottom left corner of your screen and click on the windows logo. Now type notepad. This will open notepad.

If you are using a mac or an Apple computer the text editor is called TextEdit. To access it open Finder, click on application, click on TextEdit. Or you can go to the top right of your screen and click on the magnifying glass and type textedit. By the way to display HTML correctly you may need to go to preferences, format, then choose plain text. Then under open and save, select “display HTML files as HTML code instead of formatted text”

Starting an HTML document

Get Erick Perez’s stories in your inbox

Join Medium for free to get updates from this writer.

Now you are ready to start writing HTML. HTML is written in what we call a document, an HTML document. The text editor needs to know what type of document it is because it doesn’t know if you are writing in HTML, CSS, C#, Swift, or any other language. We do this by typing <html></html>

HTML Tags

HTML tags are like labels on a document. All tags follow the same format. They start with a less than sign, <, and they end with a greater than sign, >. In the middle, you write the name of the tag. Another way to think about this is you write the name of the thing you are labeling. We just labeled our whole document using an HTML tag.

<tagNameGoesHere>

Each tag has an opening and closing tag. The only difference is that the closing tag before the name has a forward slash, “/”. In this case, the closing HTML tag tells the text editor that it is the end of the HTML document. Everything we want on the document or page will be inside the HTML tags.

<html></html>

Adding a paragraph

Now you can start typing inside the HTML tags. Anything you type will display on a browser. Give it a try. Write a few sentences.

Now save the document by going to File, Save As, give it a name with the extension of .html

For example, you can name it website.html

This will create a new file on your computer. Open it using a browser of your choice. You should be able to see the sentences you wrote.

That’s great we have added content to our first web page; however, it is not properly labeled. We need to go back to the text editor and label it with a paragraph tab

<p>This is a paragraph tag.</p>

A paragraph tag looks like this <p></p>. You can remember it by thinking p for paragraph. Put the opening tag before your sentences and put the closing tag after your sentences. Now it’s labeled properly.

This is the end of part one of this tutorial. Part two coming soon.

If you rather read a book on learning HTML, follow this link for a review on HTML5 for web designers

--

--

Web-Tips
Web-Tips

This is the place for website tips! Everyone is welcomed but these are tips targeted to beginners learning HTML, CSS, and JavaScript. I am a web developer and I know the challenges and struggles that come from learning web design. I want to make that process for you a lot easier