Today We Will Discuss About Center Tag & Br Tag
Centering Content:-You can use <center> tag to put any content in the center of the page or any table cell. Syntax:-<center>text</center>
<!DOCTYPE html> <html> <head> <title>MY Job Website</title> </head> <body> <p>blogshare.org/sonu</p> <center> <p>Sarkariflix.com</p> </center> </body> </html>
This will produce following result When you run it into browser:
means above result Indicate that <center> tag is apply to Sarkariflix.com so it is in the center . But <Center> tag is not apply to blogshare.org/sonu. So this text is not in the center.
👉🏽 Line Break Tag:-Whenever you use the <br /> element, anything following it starts from the next line. This tag is an example of an empty element, where you do not need opening and closing tags, as there is nothing to go in between them. The <br/> tag has a space between the characters br and the forward slash. If you omit this space, older browsers will have trouble rendering the line break, while if you miss the forward slash character and just use <br> it is not valid in XHTML.
<!DOCTYPE html> <html> <head> <title>This is document title</title> </head> <body> Welcome to HTML<br/> My Job Portal Web name is Sarkariflix.com </body> </html>
-This will produce following result When you run it into browser:
Welcome to HTML
My Job Portal Web name is Sarkariflix.com
-If You Remove <br/> Tag From The above Html Document & save it Then You run it into Browser Result Will be:
Welcome to HTMLMy Job Portal Web name is Sarkariflix.com
-So <br/> tag Is used as a line break tag to separate sentence or words
A common character entity used in HTML is the non-breaking space ( ). Remember that browsers will always truncate spaces in HTML pages. If you write 10 spaces in your text, the browser will remove 9 of them to add real spaces to your text,you can use the character entity.
so, above article is about Center tag & Br Tag . I Hope so You will enjoy it. Thanks For Visiting.
Please visit my job portal website:- sarkariflix.com