HTML Tables

Posted by admin at August 11, 2021

Define an HTML Table The <table> tag defines an HTML table. Each table row is defined with a <tr> tag. Each table header is defined with a <th> tag. Each table data/cell is defined with a <td> tag. By default, the text in <th> elements are bold and centered. By default, the text in <td> elements are regular and left-aligned. Creating a basic table The basic structure […]

Continue

Write program to check leap year or not.

Posted by admin at July 18, 2021

What Is a Leap Year? Leap years are years where an extra, or intercalary, day is added to the end of the shortest month, February. The intercalary day, February 29, is commonly referred to as leap day. Leap years have 366 days instead of the usual 365 days and occur almost every four years. Why […]

Continue

Armstrong Number

Posted by admin at July 6, 2021

The Armstrong number definition is the number in any given number base, which forms the total of the same number, when each of its digits is raised to the power of the number of digits in the number. For example, using a simple number 153 and the decimal system, we see there are 3 digits in it. […]

Continue

What is W3C?

Posted by admin at April 10, 2020

As steward of global Web standards, W3C’s mission is to safeguard the openness, accessibility, and freedom of the World Wide Web from a technical perspective. W3C’s primary activity is to develop protocols and guidelines that ensure long-term growth for the Web. This includes the development and maintenance of CSS. The widely adopted Web standards define […]

Continue

The W3C cheatsheet

Posted by admin at

The W3C cheatsheet provides quick access to useful information from a variety of specifications published by W3C. It aims at giving in a very compact and mobile-friendly format a compilation of useful knowledge extracted from W3C specifications, completed by summaries of guidelines developed at W3C, in particular Web accessibility guidelines, the Mobile Web Best Practices, and a number […]

Continue

W3C validators

Posted by admin at

For over 15 years, the W3C has been developing and hosting free and open source tools used every day by millions of Web developers and Web designers. All the tools listed below are Web-based, and are available as downloadable sources or as free services on the W3C Developers tools site. W3C Validator The W3C validator checks the markup validity of various Web document formats, such as HTML. […]

Continue

An abundance of Web editors

Posted by admin at

While any text editor, like NotePad or TextEdit, can be used to create Web pages, they don’t necessarily offer a lot of help towards that end. Other options offer more facilities for error checking, syntax coloring and saving some typing by filling things out for you. One caveat, you need to make sure that whatever […]

Continue

Return largest number in arrays

Posted by admin at

Problem Explanation You will get an array that contains sub arrays of numbers and you need to return an array with the largest number from each of the sub arrays. Hints Hint 1 You will get an array that contains sub arrays of numbers and you need to return an array with the largest number […]

Continue

Method on an Object

Posted by admin at April 2, 2020

Objects can have a special type of property, called a method. Methods are properties that are functions. This adds different behavior to an object. Here is the duck example with a method: The example adds the sayName method, which is a function that returns a sentence giving the name of the duck. Notice that the method accessed the name property in the return […]

Continue

Basic JavaScript Object

Posted by admin at

Think about things people see every day, like cars, shops, and birds. These are all objects: tangible things people can observe and interact with. What are some qualities of these objects? A car has wheels. Shops sell items. Birds have wings. These qualities, or properties, define what makes up an object. Note that similar objects share the […]

Continue