Defining HTML5 Pages - DOCTYPE
A brief history of HTML. By the end of this video you will get the basics of how html works and know how to work with the DOCTYPE.
Video Transcript
00:00Welcome back, in this video we're going to start talking about a little bit more geeky stuff,
00:06now you're a little bit more familiar with HTML,
00:09Let me tell you a little bit about the history of HTML
00:12Not too much history, because I'm not a big history buff
00:15HTML had a lot of different versions,
00:17When the Internet first started, no one knew that's gonna be so succseful as it is.
00:21Every 7-8 years HTML was updated to try to catch up with what was actually happening out there
00:33HTML 4 was the thing of today for the past 15 years,
00:38and in the last couple of years HTML5 started peaking in with its new features and capabilities,
00:43We're teaching you the tags that were available in HTML4, they're also available in HTML5
00:50We're not teaching anything that is illegal HTML5 code
00:55Everything you're doing here is you're getting yourself ready
00:57for that HTML5 so you don't have to worry about
01:00going to more advanced course
01:02We're starting from the basics, you're going to get everything you need in this HTML session
01:07Although we're going to be focusing on the HTML4 attributes
01:09that were included into the HTML5 specification.
01:14Now, I want to ask you mom, you tell me what you think, before we move on,
01:21There's a lots of different versions of HTML and there's a lot of history, we're talking about 20 years of Internet,
01:26if not more, 23,24 years where there's a lot of different browsers,
01:31a lot of different versions, now all these browsers need to know
01:34how to display the content that's in the page
01:38the question is: -How will HTML know or how will your browser know that the page we're building now
01:43is the HTML5 page ?
01:46- It need a tag ? - Bingo !
01:48So we have to add a tag that tells the browser: this is the HTML5 document.
01:56Now, to do that it's really simple, it looks kind of weird,
02:00that's why we left it to do this now, not in the early stage,
02:04I want to show you a live example before we do it ourselves,
02:07I'm just going to go into our blog and I'm going to: right click and randomly look at the page source files,
02:15We're going to see all the way in the top here,
02:20Doc. type HTML which basically is the way you define the page in HTML5
02:25and actually from HTML5 and up, we don't have to tell the browser what version of page it is,
02:30we just tell: this is HTML, and from now all the browsers are supposed to know on their own
02:35what version of html it is,
02:36at least that's what the specification decided.
02:39But if we go to a different page, let's say that doesn't have HTML5 specification,
02:44I'm trying to think what site could be that outdated,
02:50Would udemy.com be that outdated ? Let's find out,
02:53We're going into udemy, I'm going to right click on the page, view source page and let's see.
02:59-NO, HTML5 as well, so you see, also udemy i already set up for HTML5
03:04We probably have to be in older site that... what is this ?
03:11umm, Miscrosoft, let's see if miscrosoft are being...
03:15-Nice! Even microsoft are being HTML5, cool!
03:18We're not even going to talk about what's not, because it doesn't really matter,
03:21if all the main sites already moved to the HTML5 specification,
03:25Not point in talking about something that's not
03:27Let's go and check code, just add this doc. type information
03:30and that's really all you need to know about it,
03:33that the doc. type basically tells the browser: this is an HTML5 page, do your HTML5 rendering,
03:40don't even worry about all the versions because we didn't build in older version page.
03:46We're going to go all the way to the top of our page
03:49and I'm going to start typing it
03:52Although usually we type in lower case, for the doc. type we tend to type in the upper case,
03:59and then right HTML lower case, and the we close is up.
04:05We actually don't even need that, so it's basically HTML doc. type save
04:09Because this is outside of our html information,
04:11this is like background information for our browser,
04:13That's it, we just defined our page to be HTML5 page
04:17and congratulations you now have HTML5 page
04:21Although, there is a lot of thing we're going to learn about HTML in the future,
04:26Everything we're doing from now on, is legal HTML5 applications,
04:32In our next video, now that we have HTML5 applications,
04:35we're going to start learning how to work with links,
04:37and how links work, are you ready ?
04:39We'll see you on the other side of this video,
