coding notes
coding notes
What is HTML?
HTML (Hyper Text Markup Language) was created by Tim
Berners-Lee in 1991 as a standard for creating web pages. It's a
markup language used to structure content on the web, defining
elements like headings, paragraphs, links, and images. HTML
forms the backbone of web content. In layman's terms, HTML is
like the skeleton of a website. It's a set of instructions that tells
a web browser how to display text, images, videos, and other
elements on a webpage. Think of it as the building blocks that
create the structure and look of a website, similar to how bricks
and mortar are used to build a house.
In a nutshell:
Features of HTML
It is platform-independent. For example, Chrome
displays the same pages identically across different
operating systems such as Mac, Linux, and Windows.
Images, videos, and audio can be added to a web page
(For example - YouTube shows videos on their website)
HTML is a markup language and not a programming
language.
It can be integrated with other languages like CSS,
JavaScript, etc. to show interactive (or dynamic) web
pages
Quick Exercise:
Open a webpage of your choice, right-click on the browser, and
select 'View Page Source,' and then you will see the HTML code
for that page.
This is the code that the server sent to display the page you're
currently viewing. In this tutorial, we'll learn how to write this
type of code using HTML.
History of HTML:
In 1989, Tim Berners-Lee established the World Wide
Web (www), and in 1991, he created the first version of
HTML.
From 1995 to 1997, further work was done to develop
and refine different versions of HTML.
In 1999, a committee was organized that standardized
HTML 4.0, a version still used by many today.
The latest and most stable version of HTML is 5, also
known as HTML5.
HTML Working
You must have heard of frontend and backend. Frontend refers
to the visible part of a website or app that users interact with,
like the tables, images, and buttons. It's built using languages
like HTML, CSS, and JavaScript. The backend, on the other hand,
handles behind-the-scenes operations like storing and
processing data when users interact with the frontend. It uses
languages like Python, Ruby, and Java. In essence, frontend is
what users see, while backend manages the functionality.
The text editor has the HTML code of a website. This website
can now be viewed in a beautifully rendered format using a
computer program known as a web browser.
What is a Web Browser?
A web browser is a program that understands HTML tags and
renders them in a human-readable format that is easily
viewable by people visiting the website. Developers write code
in HTML because it's a straightforward way to instruct the web
browser on what to display. In the next section, I'll show you
how to set up VS Code for writing your own HTML code and
rendering it in a web browser.
Don‘t worry about how browser exactly works just yet. Rather
focus on learning HTML. In the next page we will install VS Code
and some extensions for writing our HTML code.