answersLogoWhite

0


Best Answer

The CENTER tag in HTML is used to center blocks of code within an HTML document. The tag is very easy to use as you only have to open it and close it around the text you want centered. This can be 2 lines of text or an entire webpage. See the example below.

<center> Smasher is teaching me HTML </center>

This would take the text and center it on the screen. If you want to center the whole page simply put the open tag at the beginning of the document and the close tag at the end.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

You can add the align=center attribute to your heading tag.

Example:

Welcome!

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the code to center a heading in HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you centrally align the heading of the HTML document you created?

When you create an HTML document, you can include a heading on the page. Here is an example of how you can use HTML to center the heading: &lt;center&gt;&lt;h1&gt;Page Heading&lt;/h1&gt;&lt;/center&gt;.


What is the HTML code for creating a level 4 heading that displays the text Heading 4?

&lt;h4&gt;Heading 4&lt;/h4&gt;


What is the HTML code for Heading 3?

&lt;h3&gt;Heading Text&lt;/h3&gt; There are six headings in HTML. They start with &lt;h1&gt; and end with &lt;h6&gt;. They all follow the patter &lt;h#&gt;Text&lt;/h#&gt;


What is the HTML code for creating a heading?

&lt;h1&gt; This is a heading!! &lt;/hl&gt; also &lt;h2&gt; This is a heading!! &lt;/h2&gt; &lt;h3&gt; This is a heading!! &lt;/h3&gt; &lt;h4&gt; This is a heading!! &lt;/h4&gt; It goes up to eight. The larger the number the smaller text size.


What does h1 in HTML stand for?

Heading 1 For example, this would mean that HOME is the first heading in HTML. &lt;html&gt; &lt;body&gt; &lt;h1&gt; HOME &lt;/h1&gt; &lt;/body&gt; &lt;/html&gt;


What does h2 stand for in HTML?

in HTML &lt;h2&gt; stands for heading 2


Different heading levels of an HTML document?

&lt;html&gt; &lt;head&gt; &lt;title&gt; &lt;body&gt;


What is the use of h1 tag in an HTML document?

It's used for heading, h1 stands for heading 1.


How many heading sizes does HTML support?

It supports 6 heading sizes using the &lt;h1&gt; to &lt;h6&gt; tags. The &lt;h1&gt; is the largest heading.


What is h1 as it relates to HTML codes?

h1 is header1 it is used to give heading,there h1 to h6 in html


What Is The Code To Show An Html A Text?

&lt;code&gt;&lt;code&gt;HTML TEXT HERE&lt;/code&gt;&lt;/code&gt;


Which is the HTML tag to start a Heading level 3?

&lt;h3&gt; is the tag for starting the heading level 3. It is for mid-size of a heading, out of the 6.