Skip to main content

Command Palette

Search for a command to run...

Center tag

Published
1 min readView as Markdown
Center tag

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>

Interview-HTML

Part 13 of 18

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.

Up next

Strike tag

In HTML, the <strike> or <s> tag is used to represent text that should be displayed with a strikethrough. The <strike> or <s> tag is an inline element, which means that it can be used within a line of text and does not create a new line. Here is an e...

More from this blog