HTML
Hello
everyone, in this blog we just simply talk about HTML. Basically, HTML is the
standard language that is used for creating webpages and web applications. The
best thing about HTML is it’s a simple language to learn.
Most people
can learn the basics of HTML in just a few hours, and with a solid HTML
foundation, you can progress to more complex languages such as CSS and
JavaScript.
What Is HTML?
HTML
stands for HyperText
Markup Language, which can be a confusing term for many
beginners. The best way to explain HTML is to examine the meaning of each word.
HyperText refers to text that contains
links to other texts. Every time you click on a highlighted or underlined link
that takes you to another page, you are using hypertext. As more and more pages
use hypertext to link to each other, a “web” of pages starts to form. This is
where we get the term World Wide Web.
Markup refers to the special symbols or
codes that are inserted into a document to tell the web browser how to display
the document data. For example, markup code may tell the browser to display a
phrase in bold
or italic
text, or may tell the browser which parts of the document are headings and
which are paragraphs. HTML is just one of a number of languages that uses
markup code.
Language refers to the idea that the code
is standardized. Just like regular spoken languages, there are certain rules
that everyone must follow when writing HTML. This is so that all browsers can
understand and interpret the code. There are many different programming
languages, and you may have heard of some of the popular ones such as Java,
Python and Ruby. Each language has its own unique set of rules, and many
languages can be used in combination with HTML to create amazing webpages and
applications.
If
we put these three definitions together, we could say that HTML is “a
programming language that uses unique code which allows you to display linked
documents in a browser”.
Why should you learn HTML?
These days, website builders such as Wix and
SiteBuilder have made building websites easy. With a simple drag and drop
interface and a variety of templates, anyone can build a website that is both
functional and stylish.
But
what if you’re not interested in having a website that looks just like everyone
else’s? What happens when you want to make changes to your site that go beyond
what’s available using the drag and drop builder?
With
a basic knowledge of HTML (as well as a little CSS), you can build a truly
unique website that you can edit and update yourself, and you won’t have to pay
expensive monthly service fees.
Learning
HTML is also considered the first step for progressing into more complex and
in-demand programming languages. Fancy earning a six-figure salary as a web
developer for a Silicon Valley startup? Or maybe you’ve got plans to develop
the next Facebook or Twitter? If you’re interested in learning how to do any
web related programming, HTML is the place to start.
How
Does HTML Relate To Other Programming Languages?
If you’ve done
any research on web development and design, you’ve probably come across
articles or guides that mention CSS and JavaScript.
HTML, CSS and
JavaScript are the three main languages that are used to create most webpages.
Each of the languages has a different function and each has different rules,
but they all work together to give webpages content, design and functionality.
As we mentioned
before, HTML is the foundation of any site. The HTML code contains the
site’s basic structure and content, which includes all the text, links, tables,
links to images and other such elements.
CSS (Cascading Style Sheets) is used to
define the design of the page, including things like the size of each element
and how it looks. With CSS, you can set things like the style of the font you
are using, the background color of the page, and the width of the border around
elements on the page.
JavaScript is a more complex language that is
used to create interactive elements on your page. When you hover your mouse
over an image on a website and the image morphs or changes, that’s JavaScript
editing your original HTML code. When you click on a product on a shopping
website and your shopping cart automatically updates, that’s JavaScript too.
CSS and
JavaScript can add design and functionality to a site, but without HTML, you
won’t have a site to begin with. In fact, most sites will still display HTML
data even if the CSS and JavaScript code is broken.
What
Does HTML Code Look Like?
Basically, HTML
code looks just like regular text. The most identifiable feature of HTML code
is the use of angle brackets. These angle brackets enclose the markup
code which tells the browser how to display the document data.
Here’s an example
of some simple HTML code:
<html>
<head>
<title>Page
Title</title>
</head>
<body>
<h1>This is
a heading.</h1>
<p>This is
a paragraph.</p>
</body>
</html>
If you save this
code into a text file with the filename “Example.html” (always remember to use
.html extension) and open it in your browser, it should display a page like
this:
What
Programs Can I Use To Write And Edit HTML Code?
One of the best
things about learning how to write HTML code is that you don’t need to buy any
special software to get started. You can write and edit HTML code in any
regular text editor.
Windows users can
write code using the Notepad app which comes pre-installed with all versions of
the operating system. Mac users can write code using the OSX equivalent which
is call TextEdit.
However, if
you’re planning to do a lot of coding, it’s probably a good idea to download
and install a text editor that is specifically designed for coding. These apps
have various features and add-ons that help you keep your code clean and
readable, and will allow you to code more efficiently. Some popular features
are highlighting different code elements, autocompletion of code, automatic
syntax checking based on which programming language you are using, and multiple
tabs for easy switching between documents.
Here are some popular
text editor that have wide variety of functions and are available for different
operating systems:
I.
Sublime
text editor
II.
Atom
III.
Code
lobster
IV.
Visual
Studio Code etc.
So, this is just
a brief introduction to HTML. From the next blog we will talk about the basics
of HTML codes, Tags and how to use them etc.
I hope you like this post. Kindly don't forget to subscribe our YouTube channel too - Codin India
Comments
Post a Comment