Career skills to jumpstart your future.

LightSpeed HTML Coding for Beginners | Part-1

Learn HTML Coding Easily Within No Time

HTML Coding for Beginners

This blog post focuses on HTML Coding for Beginners.




What Is HTML?

 HTML stands for Hypertext Markup Language. HTML as a language is used to create web pages. Web pages are used to generate web pages. The latest version of it is HTML 5. HTML is the most straightforward coding language by far. All of the web pages on the Internet are created using HTML(just like this one). HTML was invented as a language in 1990 by Tim Berners Lee when he instituted the World Wide Web(WWW). 

Where to create HTML documents?

Web pages are created using HTML. Now, there are two types of HTML editors- Text Editors and What You See Is What You Get(WYSIWYG) Editors. Text Editors like Notepad and Wordpad require knowledge of HTML Coding. WYSIWYG Editors do not require knowledge of HTML Coding and are much easier and faster to use and create web pages. Adobe Dreamweaver and Microsoft FrontPage are two WYSIWYG Editors. It is recommended that you use Notepad ++ for Coding. (Personal Tip)


Before You Get Started 

Get used to few terms. These are just the basic terms and elements that will make up your HTML code. 

1. Home Page- The first page of a Web site.
2. HTML - A computer language used to create documents (Web pages) for display on the World Wide Web. 
3. HTML Elements- Building Blocks of HTML Documents. An HTML element consists of opening and closing tags, and the content between them.
4. HTML Tags- Identifiers of HTML Elements. They always begin with a less than sign ( < ) and end with a greater than sign ( > ).
5. Container Elements - HTML Elements that include both ON and OFF tags. (Referred later)
6. Empty Elements- HTML Elements that do not require an OFF label.
7. HTML Attributes - Extra bits of information that appear inside the opening tag of an element.
8. HEAD - Part of the HTML document containing information about the web page
9. BODY- Part of the HTML document containing everything displayed on the web page, including text, images, links, and graphics, etc.

Things to Remember


All elements have an ON tag. 
ON tags look like this- <head>
OFF tags are just the same as the ON tag, but they contain a / after the angle bracket. So, if the ON tag is <head>, OFF tag is </head>.

A HTML document always starts with a <html> tag and ends with a </html> tag.
The title of the document is in the HEAD element. 
Everything displayed on the web page is in the BODY element.
HTML is one of the only computer languages that do not give errors. Simply, the desired output won't be displayed on the web page.

PRO-TIP

Whenever you code, set the font size to a readable size. Don't waste time in formatting the HTML Document. It won't affect the web page(the code will). 


Let Us Get Started

  • First, open Notepad.
As we know, an HTML document always begins with a <html> tag.
  • Type <html>
Next, you need to name the web page. So, in the HEAD element, in the TITLE tag, you will call the web page.
  • Type 
<head> 
<title>
AChhaya (you can give the desired name)
</title>
</head>

Next, you will insert the desired text you want to include in the web page in the BODY element. We have entered any random text. 
  • Type
<head> 
<title>
AChhaya (you can give the desired name)
</title>
</head>
<body>
AChhaya is the no.1 blog you will ever see. Subscribe via email to receive alerts.
</body>

Now, you want to shift this text to the centre. You will use the < center> container tag for this.

  • Type before the text you want to center. In this case,
<head> 
<title>
AChhaya (you can give the desired name)
</title>
</head>
<body>
<center>AChhaya is the no.1 blog you will ever see. Subscribe via email to receive alerts.</center>
</body>

  • Done, now you have the desired text on your web page. 
  • An HTML document always ends with a </html> tag.
  • Type-
<head> 
<title>
AChhaya (you can give the desired name)
</title>
</head>
<body>
<center>AChhaya is the no.1 blog you will ever see. Subscribe via email to receive alerts.</center>
</body>
</html>

Done!

Click here for LightSpeed HTML Coding for Beginners Part-2

Now, you will check the output in a web browser. Click here for the tutorial on How To View An HTML document in a web browser.

Comments

Popular posts from this blog

LightSpeed Basic Animation for Beginners in Flash 8 | Part-2

LightSpeed Intro to ConvNets

LightSpeed Basic Animation for Beginners in Flash 8 | Part-1

A honest review of the Data and Deployment Specialization

LightSpeed intro to Deep Learning