Showing posts with label html <sup>tag in html. Show all posts
Showing posts with label html <sup>tag in html. Show all posts

Sunday, September 25, 2022

html q tag and html sup tag

 

            HTML Tag


HTML tags


Drawing Line 


The HTML. <hr> tag is used for creating a horizontal line. This is also called Horizontal Rule in HTML <hr> tag also supports following additional attributes.


Attribute 

1)  Align  :   left, right, centre

Description  :- It specifies the alignment of the horizontal line.

2)  No shade  

 It Removes the usual shading effect that most browsers display

 3)  Size

It Specifies the height of the horizontal line

4) Width

It Specifies the width of the horizontal. 


Example 

<!DOCTYPE html>

<html>

<body>

<p>Horizontal Ruler <hr></p>

<p>Horizontal Ruler <hr></p> 

<p>Horizontal Ruler chr></p>

</body> 

</html>


Drawing Line  output

Horizontal Ruler

___________________________________ 

Horizontal Ruler

___________________________________

Horizontal Ruler

___________________________________


2) Quote Element 


The <q> tag defines a short quotation. Browsers normally insert quotation marks around the quotations.


Attribute

1)  Cite  :-  URL

Specifies the source URL of the quote

Example 


<! Doctype html>
<html>
<body>
<p>wwF's goal is to:
<q>Build a future where people live in harmony with nature.</q>
We hope they succeed.</p>
</Body>
</html>

Quote Element  output


wwF's goal is to: "Build a future where people live in harmony with nature. "We hope they succeed.



3)Subscript Element 


The <sub> tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, H2O.

The <sub> tag is used to add a subscript text to the HTML document. The <sub> tag defines the subscript text. Subscript text appears half a character below the normal line and is sometimes rendered in a smaller font.

Example

<!DOCTYPE  htal>

<html>

<body>

<P>This text contains
<Sub>subscript</sub>text.</p>
<p>This text contains<sup>superscript</sub>text.</p></Body>

</html>


Subscript Element output


This text contains subscribe text.

This text contains subscribe text.






  4)Big Element

The HTML Big Element (<big>) makes the test font size one size bigger (for example, from small to medium, or from large to x- large) up to the browser's maximum font size.

Example

<! Doctype html>

<html>

<body>

<p>This text is normal.</p>

<P><big>This text is bigger. </Big></p> 

<P><strong>Note: </strong>The big element is not supported in HTML5. </P>

</Body>

</html>

Big Element output

This text is normal.

This text is bigger.

Note : This big element is not supported in  html 5.



5) Small Element 


The HTML Small Element (<small>) makes the text font size one size smaller (for example, from large to medium, or from small to x-small) down to the browser's minimum font size. In HTML5, this element is repurposed to represent side-comments and small print, including copyright and legal text.


Example

<!DOCTYPE html>

<html>

<body>

<P>pssmovement - the world's largest free Meditation training movement.</p>

 <P><small>No Copyright . . .  Please spread the message . . .  visit: www.google.com   </small></p>

</body> 

</html>

Small Element 

output

 

pssmovement - the world's largest free Meditation training movement

No Copyright . . . Please spread the message . . . visit: www.google.com


Related Post

list attributes tag html
table tag attributes html
table attributes tag html
program to print alphabet pattern i
how to create a footer page