In Angular ngFor is directive which accomplishes the motive of displaying repeated or list of contents with least lines of code, this serves the same purpose as for loops in conventional programming languages. We can print repeated lines of content based on a number using the javascript/typescript function Array () which will generate a list of number from 0 to n-1. We traverse this list to produce n repeated lines of content. Example 1:Demo.Component.ts javascript I need to place a star, ★, on a Web page, repeatedly. Is there a way to specify a symbol and how many times it should appear, in HTML or CSS? E.g., something like this, but not necessarily the same The HTML Marquee loop attribute, when set to a positive integer, determines the number of times a marquee element will repeat its scrolling behavior. A loop value of "-1" signifies an infinite loop. The CSS repeat () function is used to repeat a set of columns or rows in a grid. This function is useful if you have a large number of rows or columns in a grid.