HTML 5 Semantic Elements and JavaScript Basics

There are two category of HTML 5 elements listed below. Block level elements Inline elements Block elements such as<mark style=”background-color:rgba(0, 0, 0, 0);color:#b61515″ class=”has-inline-color”> </mark><h1> and <p> tags take the entire width of the document.Inline elements such as <b> and <em>,<i>,<img> element will take just enough space within a blockelement.HTML 5 Semantic ElementThere is no … Read more

JavaScript Introduction

JavaScript is a popular scripting language that control the behavior of the webpage using script.Where to Place JavaScript Code?You can place your JavaScript code in two places. Inside the HTML document Use an external file for JavaScript and link to HTML document. JavaScript inside HTML pageExternal JavaScript FileFor external JavaScript file, you have to link … Read more

JavaScript : Truthy And Falsy

In JavaScript, we have two sets of values – truthy and falsy. The main difference between these two are:Truthy – Always returns true when done a Boolean comparison.Falsy – Always returns false when done a Boolean comparison.What are Falsy values?The following is list of falsy values:Falsy and Truthy ConceptTo understand the falsy and truthy concept … Read more

JS: String.prototype.substring()

The JavaScript substring() function extract a part of a string. It is very useful in many string related programs.The syntax for .substring() function is given below.startIndex is number that represents the position of a character from where you want to begin extraction.endIndex is the number that represents the position of the last character you want … Read more

JS: String.prototype.split()

The String.prototype.split() function divide the string into array of sub-strings. You can perform other array manipulation on the resultant string.The syntax for split() function is given below.Separator – it is a character that is used to separate the sub-strings. It is optional, however, a separator is required to divide the sub-strings.Limit – it is the … Read more

JS: String.prototype.endsWith()

The JavaScript String.prototype.endsWith() function will receive a string as parameter and check if the given string ends with the parameter string. If it does end with parameter string, returns true otherwise, returns false.The syntax to use endsWith() is given below.The string “ond” is matched with “My name is James Bond” and if the string ends … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version