Tuesday, July 18, 2017

HTML 5 Tutorial Part 2 - Basics of HTML - Text Elements

So, we have learned about the basics of html5 in the Part 1 of the series of tutorials. In this part we will discuss different Text elements and their attributes.

Note: No examples included please try them in an HTML page and see for yourself that what would be the text like. This is done intentionally. Purpose is to make you aware of the elements and encourage to try them yourself.

Block vs Inline Elements

Block elements are used to define a block of content like div or p tag. They are rendered on different lines, we can make them render on the same line using css. But we can say that block element render in the next line.

Inline elements are used to defined links or acronyms like span tag, a tag. Text will be rendered inline to the content. 


H1 - Primary heading

Primary heading of the document. It is also used by the search engines. 

H2-H6 - Sub headings

HTML have subheadings ranging from H2 - H6. So you can have subheading H2, H3, H4, H5 and H6. You want to use one primary heading for your page and subsequent sub headings. 

Note: We do not want to use the heading for the font size, we can style the text using style sheets.


When client sees the pre tag it will honor the whitespace in the content.


Used to add the newline.


Adding a horizonal rule and you can style it look different way.

&nbsp - non breaking space

This is instruction to client that do not break a line at that point while doing text wrapping.

&lt and &gt

Used to show the less than and greater than signs in the web page. As we have < and > being used in the html and if you want to show those as symbols than we need to use &lt and &gt.

<sup> and <sub>

superscript and subscript used to set the text as superscript and subscript.


Information for citing a particular person or entity. It will be rendered as Italic text. you can style the cite in the styles. These are mostly for the search engines.

<abbr> and <acronym>

acronym is used to put the acronym and set the title attribute to set the full name of the acronym. Full name of the acronym will be shown in the mouse hover tooltip. abbr is used in the same way.

<em> and <strong>

emphasis and strong can be used to highlight the text. em is going to render the text in italic and strong is going to make the fond bold.


blockquoute and qoute are used to put some quoutes in the text. Blockqoute as the names suggest is block element and q is inline qoute.

Note: Please try them at home.

HTML5 Tutorial Part 1 - Basics of HTML

In this part we will discuss the basics of HTML before we dive in to the html5 elements and features of html5. This is part 2 of the series of the tutorials. I will be doing a CSS3 tutorials once HTML 5 is completed. So stay tuned for more tutorials.

Terms will be used


Client will be user Browser. Which render the html documents. You would not see the html tags on the page but the render web page.


Machine hosting the HTML web documents and that can be located using the specific URL. URL is universal resource locator. There's lot happen when you click on a URL. we can cover that in separate blog.


Client side javascript framework which help in development of client rich applications. Most popular framework these dats are AngularJS and React.

Tuesday, October 27, 2015

Setup Jenkins Server with Proxy Setting and Gitlab Integration Part 1

Jenkins Setup

Here are the steps which we need to configure Jenkins on a build server.
   1. Download Jenkins from https://jenkins-ci.org/
                - Currently installed version is 1.632
   2. Configure Global Security
a. Enable Security
b. Set to use Jenkins Own Database, and check the Allow user to sign up. [Required for first user sign up if not created already.]
c. Set Authorisation to Logged in user can do anything

Jenkins Proxy

e.      Signup and un-check “Allow users to signup”.
   3. If Jenkins is behind a proxy than you would need to configure it to have access to the internet. This is the part took me some time to figure it out. J

Wednesday, September 9, 2015

Apple September 9 2015 Event – All you need to know

Yesterday Apple announced so much. Rather than writing multiple articles for each of the things announced yesterday I am trying to brief and give you the visuals from the event.

The crowd this time was huge, Tim specially mentioned the Apple Employees presence to the Event.

As Tim Cook did yesterday getting to the point straight way. 
Let’s start

Apple Watch

First thing announced was Apple watch. Apple watch new OS 2 is announced.

 New watch comes with new Faces

 With New OS comes new features
  • Time Travel – time travel is features where you can check the next day events.
  • Transit is added to the Maps.

Few Apps which were Demoed in the event
  • Facebook messenger is coming to Watch later this year.
  • iTranslate – iTranslate can translate update 90 languages and more will be added later.
  • AirStrip

 New Watch band with Leather strip.

Friday, September 4, 2015

Advanced JavaScript Topics Part 2

We were discussing the let keyword in the Part 1 of this series. We discussed what the advantages and how we can use let keyword in the code. However, let keyword has a problem it does not support hoisting, means if you have declared a variable using let keyword in the mid of the block it would not be available in the part above the declaration of the let keyword.
So you always make sure that let is declared at the top of the block.
As we discussed earlier let keyword kind of Hack the scope implicitly. We can always write the code to make sure when we see we can explicitly identify that this block is a scope. The example given the in the Part 1 of this series used the implicit way. To use the explicit way do it like this

function foo(bar) {
    "use strict"
    let (test = bar) {
        console.log(test) // "bar"  
    console.log(baz) // reference error

However, this syntax is rejected by the committee. we can use some other way to make sure we see the block scope in the code as we read the code.

function foo(bar) {
    "use strict"
    /*let */
        let test = bar
        console.log(test) // "bar"  
    console.log(baz) // reference error

This is one way to do it. Keyle Simpson have created this great tool to help you with block scoping it is called Let-er .

So, as we started to talk about tools you might want to take a look at traceur-compiler it generates ES 5 code from ES 6 code. As there is development going on in ES 6 you should start writing your code in ES 6 and use a transpiler to convert the ES 6 code to ES 5. You can use grunt-traceur . Other than this you might wanna take a look at the tools for ES 6.


Hoisting is a concept which is developed to understand how JavaScript works when we declare the variables and functions. Take a look at the code below