There’s more than just two letters difference. In fact, you can’t really compare them at all. But you can use them together.
HTML stands for Hypertext Markup Language. A well formatted HTML document though is really nothing more than a special XML document that uses certain tags. It starts out with an opening tag called html and ends with a closing html tag. Inside this, you’ll find a section enclosed with tags called head and another section enclosed with tags called body. Most of what you see in your web browser is inside the body section.
You can surround text with p tags to create paragraphs, h1 tags to create a large heading, a tags to create a link that points to another HTML document, and img tags to display images. The browser uses these tags and many more to figure out how to display the document. It doesn’t display the tags themselves and instead you can think of the tags as instructions to the browser.
You can create an HTML file in a text editor and save it locally on your computer. Then you can open it with your browser to view it. While this works, it’s not the way we normally get HTML files into our browsers. We normally visit web sites and what’s really happening is that the browser is requesting HTML files as well as other files from the web site. Once it has the files, it can display them. And that’s where HTTP comes into the picture.
HTTP stands for Hypertext Transfer Protocol. This defines how HTML and other files are transferred to and from computers.
This episode describes the following five aspects of HTTP with some examples along the way.
- HTTP is based on a series of requests and responses.
- HTTP identifies computers and files on those computers with URLs.
- HTTP defines methods or verbs as they’re sometimes called that you specify in your request.
- HTTP defines well known status codes.
- HTTP is stateless.
Make sure to listen to the full episode for more details and some examples.