ads
LEARN ABOUT HTML IN ONLY 10 MINUTES.
ads
A short tutorial to help you get started creating your website.
HTML is the markup language used to structure and present content on the World Wide Web. By combining CSS and JavaScript, you can create beautiful, interactive websites.
HTML is the foundation of the web, so it is also the most important language for the web development career path. This simple tutorial will teach you the basics.
And by the time you're done, we're launching a free 14-part HTML5 course on Scrimba.com. It's an interactive platform that allows you to jump into the code of a running screencast at any time.
You can watch the first talk here:
Now, before we get into HTML, let's talk a little bit about the architecture of the Web. This clarifies the role of HTML.
Basic Web Architecture
Once you have developed your website, you need to host it on a server so that it can be accessed on the World Wide Web. Every server has an IP address (eg 149.56.240.169) that can be thought of as a phone number.
We usually give this IP address a domain name (eg scrimba.com) to make it easier to remember.
Typing this domain name into your browser invokes the server. The server then sends a series of HTML, CSS, and JavaScript files as follows:
The browser starts loading her main HTML file, then continues with CSS and JavaScript. These files allow your browser to display attractive, interactive websites.
Let's take a closer look at the role of these three languages.
What is HTML?
Let's compare a website to a person. Use this analogy to understand his website for our company. HTML is best described as a skeleton:
What is CSS?
But a plain HTML website doesn't look good, so you need to style it with CSS. It can be seen as skin and clothes on site.
What is JavaScript?
Once you've mastered CSS, you need to move on to JavaScript. As an analogy, this is like the brains and brawn of our website:
Write your first HTML file
To write HTML, you need an HTML I need documentation.
You can use any text editor, but the most popular these days are Sublime Text, VS Code, and Atom. You can also use Scrimba as an in-browser editor.
Let's create a new file, name it index.html and write Hello world! inside.
Hello World!
If you drag this file to your browser or point your browser to the address of this file, you will get:
How it looks in Scrimba when you open the index.html file in a browser window.
Congratulations. You have created your first website.
Your First HTML Tag
However, you haven't created any HTML tags yet. For that, let's use Hello world! Text inside the
tag like this:
ads
Hello World!
The first
is the opening tag and the second
is the closing tag. As you can see the only difference is the backslash in the closing tag. This will display the following page.
You have now told the browser that you are using Hello world! Text as heading. So the browser applies a style, essentially increasing the size of the text.
Getting started writing HTML is pretty easy.
But this is not actually a valid HTML document. Because it must follow a well-defined structure. For the purposes of this tutorial, I'll give you a quick rundown and then get down to the fun stuff.
A short tutorial to help you get started creating your website.
HTML is the markup language used to structure and present content on the World Wide Web. By combining CSS and JavaScript, you can create beautiful, interactive websites.
HTML is the foundation of the web, so it is also the most important language for the web development career path. This simple tutorial will teach you the basics.
And by the time you're done, we're launching a free 14-part HTML5 course on Scrimba.com. It's an interactive platform that allows you to jump into the code of a running screencast at any time.
You can watch the first talk here:
Now, before we get into HTML, let's talk a little bit about the architecture of the Web. This clarifies the role of HTML.
Basic Web Architecture
Once you have developed your website, you need to host it on a server so that it can be accessed on the World Wide Web. Every server has an IP address (eg 149.56.240.169) that can be thought of as a phone number.
We usually give this IP address a domain name (eg scrimba.com) to make it easier to remember.
Typing this domain name into your browser invokes the server. The server then sends a series of HTML, CSS, and JavaScript files as follows:
The browser starts loading her main HTML file, then continues with CSS and JavaScript. These files allow your browser to display attractive, interactive websites.
Let's take a closer look at the role of these three languages.
What is HTML?
Let's compare a website to a person. Use this analogy to understand his website for our company. HTML is best described as a skeleton:
What is CSS?
But a plain HTML website doesn't look good, so you need to style it with CSS. It can be seen as skin and clothes on site.
What is JavaScript?
Once you've mastered CSS, you need to move on to JavaScript. As an analogy, this is like the brains and brawn of our website:
Write your first HTML file
To write HTML, you need an HTML I need documentation.
You can use any text editor, but the most popular these days are Sublime Text, VS Code, and Atom. You can also use Scrimba as an in-browser editor.
Let's create a new file, name it index.html and write Hello world! inside.
Hello World!
If you drag this file to your browser or point your browser to the address of this file, you will get:
How it looks in Scrimba when you open the index.html file in a browser window.
Congratulations. You have created your first website.
Your First HTML Tag
However, you haven't created any HTML tags yet. For that, let's use Hello world! Text inside the
tag like this:
ads
Hello World!
The first
is the opening tag and the second
is the closing tag. As you can see the only difference is the backslash in the closing tag. This will display the following page.
You have now told the browser that you are using Hello world! Text as heading. So the browser applies a style, essentially increasing the size of the text.
Getting started writing HTML is pretty easy.
But this is not actually a valid HTML document. Because it must follow a well-defined structure. For the purposes of this tutorial, I'll give you a quick rundown and then get down to the fun stuff.

0 Comments