Found 10711 Articles for Web Development

What is the difference between an acronym and abbr tags?

mkotla
Updated on 10-Jan-2020 10:51:46

471 Views

In layman language, an acronym is a word formed by taking letters of each word in a phrase to form an abbreviation. Acronyms are a subset of abbreviations i.e. abbreviation is a shortened form of a word.The tag isn’t supported in HTML5 and is deprecated now. Do not use. To add abbreviation in HTML, use the tag. Both abbreviation and acronym are the shortened versions and are represented as a series of letters. Some of the examples include, "Mr.", "IST", "MRI", “NASA”, “ISRO” etc. ExampleYou can try to run the following code to add abbreviation in HTML.Live Demo ... Read More

How to Validate your Website Code?

Rahul Sharma
Updated on 04-Oct-2019 12:20:03

154 Views

Website development included writing code in HTML, CSS, JavaScript and the platform you’ve chosen. Your website may look correct, responsive and developed with website standards, but it may have some internal issues.Tools are provided by W3C, to validate your website code:Validate HTML5Validator.nu is a validator, which validates HTML5, ARIA, SVG 1.1 and MathML 2.0. It checks the complete document and points out where the markup isn’t following the doctype.W3C Markup ValidatorIt checks the HTML doctype and the markup. This validator is for those who are using HTML4 or XHTML1.x doctype. It also validates HTML5, but Validator.nu is considered far better since ... Read More

How to create a Bibliography with HTML?

Lokesh Badavath
Updated on 18-Oct-2022 11:28:35

2K+ Views

Bibliography is a list of the written sources of information on a subject. We use tag in HTML, to create a bibliography section. The tag defines the work on a subject. The tag is also used to add work title a song, a painting, a movie, etc. It indicates citation and whatever comes inside the tag represents work title. The text between the tag renders in italic format. We use tag to list the items and tag to add the title of the subject. Syntax Following is the syntax for the tag. ... Read More

How exactly does

How to print current year in JavaScript?

Giri Raju
Updated on 16-Jun-2020 13:27:38

1K+ Views

To get current year in JavaScript, use the getFullYear() method.ExampleYou can try to run the following code to print current year −Live Demo           Click below to get the current year:       Display Year                      function display() {             var date = new Date();             var res = date.getFullYear();             document.getElementById("test").innerHTML = res;          }          

How to print object array in JavaScript?

Shubham Vora
Updated on 15-Sep-2022 12:34:19

19K+ Views

In this tutorial, we will learn how to print object arrays in JavaScript. What is an object array or an array of objects? An array of objects is used to store a fixed-size sequential collection of identical elements and store many values in one variable. Next, we will see the options to print an array of objects in JavaScript. Using the stringify() Method of the JSON Object Here, we will learn how to stringify the object array. To correctly display an array of objects, we need to format the array as a JSON string. JSON.stringify() formats the array and gives ... Read More

How to get current date and time in JavaScript?

varma
Updated on 16-Jun-2020 13:25:45

371 Views

To get current date and time in JavaScript, use the Date object.ExampleYou can try to run the following code to display date and time −                          document.getElementById("currentDate").innerHTML = Date();          

How to use “window.print()” function to print a page?

usharani
Updated on 16-Jun-2020 13:25:14

1K+ Views

To print a page in JavaScript, use the window.print() method. It opens up the standard dialog box, through which you can easily set the printing options like which printer to select for printing.ExampleYou can try to run the following code to learn how to print a page −Live Demo           Click to Print                function display() {             window.print();          }          

Advertisements