
In HTML, the <center> tag is used to center content horizontally within a container element. The <center> tag is a block-level element, which means that it creates a new line and takes up the full width of its parent element.
Here is an example of how to use the center tag in an html document
<center>
<p>This paragraph is centered horizontally within its parent element.</p>
</center>
Comments
Join the discussionNo comments yet. Be the first to comment.
Interview-HTML
In this series I will try to answer questions of HTML interviews in most simplest fashion. This will give user the chance of understanding the interview question of HTML in a conceptual manner.


