Basic of the html and also the Doctype in HTML 5

4 minutes
Share the link to this page
Copied
  Completed

Transcript

Hi guys, I am Shahzad and welcome to lesson number 30. We are going to learn some basics things like doctype. And also how can you create your html5 file creating html5 file is similar to the while working on HTML four. Okay, let me create it. Okay, now, I am going to create a folder in the exam. And this is the issue dogs.

I'm going to create html5 HTML five. So this is the html5 folder I have just created we, we are going to create or keep all our files in these folders. Okay, now, I'm going to create a new file Ctrl S. Now, I have just, I'm going to select the C drive because we have just created the html5 folder in the shadows. So this is them, and as you dogs so as you can see, this is HTML. This is html5. Okay, now here I am saying index dot HTML, make sure you have to use the dot extension.

Html file. It's similar to that HTML four. You can also check from here. So this is the HTML five. Let me find, okay. I'm just writing here html5.

Okay, save it. Now as you can see, this is the html5 syntax Centex if I'm writing this HTML, and I'm closing this. Now, if I start the head tag, and I enclosing the head tag, and this is the body you know very well Oh, Okay, now if I write f1 here, and I'm saying, welcome in html5, okay, now how can you run this, so go to your folder, you have just created this index dot HTML file, double click this, we can see it's showing you the welcome message. So in this way you can create your HTML file. Make sure I consider that you have a basic knowledge of HTML, if you are learning HTML five, if you are not familiar with with HTML, go to the Google and just find HTML course. Because we have designed the basic HTML course with CSS and also available on the internet.

Okay, now, this is the way to create the file. But you have to write at the top of the chord. So how can you write the doctype so I'm saying this sign and now doctype now I'm saying HTML. Okay. Another thing is you have to write the meta character set. Okay, in the header section you have to write the meta.

And here characters set equals to make sure UTF capitals and now it Okay, so here in the header tag, you always embed your meta tags. So this is a meta tag. We also have the meta keyword meta descriptions and also the meta title. We'll discuss about In every lesson, but for now, this is a matter. And this is the dog tie, make sure this is not the tag. This is for the browser.

Okay, now go to the page, refresh the page. So you can see it's now working fine. So you write k up source. So this is the doctype. And once you execute this file on the server or on the browser, your browser knows that this is the HTML five syntax. So I think this is enough for today.

Next, we are going to cover some other things. So thank you for watching.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.