Article

Tags in HTML


1.<p> (Paragraph Tag):

  • a). The<p> tag is used to define and create paragraphs of text in an HTML document.
  • b).It is a block-level element, which means it typically starts on a new line and takes up the full width of its container.

2.<acronym> Tag (obsolete):

  • a). The<acronym> tag was used to define an acronym or abbreviation in an HTML document.
  • b).However, it is considered obsolete in modern HTML standards, and the <abbr> tag should be used instead.

In this example, the<acronym> tag defines the abbreviation "RAM" with the title attribute providing the full term.


3.<marquee> Tag (obsolete):

a). The<marquee> tag was used to create scrolling text or images in a web page. It allowed content to move horizontally or vertically across the screen.

  • b). Like the <acronym> tag, the<marquee> tag is considered obsolete and is not recommended for use in modern web development.
  • In this example, the <marquee> tag creates scrolling text that moves from right to left.

Here  we use Scrollamount (high scollamount means  speed of moving content fast).

ScrollDelay(high scroll delay means speed of content slow)


Example:-


<Html>

<head>

<title>

Code2Night

</title>

</head>

<body>

<p align="center">This is paragraph tag with attribute align</p>

<p>This is a paragraph of text. It can contain multiple sentences and line breaks.</p>

<acronym title="Random Access Memory">RAM</acronym>

<p>Above tag is acronym Tag</p>

<marquee bgcolor="red" width=50% height=14% scrollamount=10 scrolldelay=50><h1>CODE2NIGHT</h1></marquee>

<p>Above tag is marquee Tag It is used to scroll content on web page</p>

</body>

</html>




Result:-