0
HOW to make centre of a page in HTML
2 Respuestas
+ 1
You can use align="center" attribute in the paragraph or headings you want to be aligned to the center, this however doesn't work in all elements, some elements like <svg>, <img> and <ul>, <ol>, <dl> I believe can be centered by putting them inside a paragraph aligned to the center. You can also use CSS to do that, but since you did not include CSS tag I guess you are only learning HTML for the moment.
0
to center a text or image, use text-align:center; property on the element or on the parent..
to center a container or block u can use margin:auto; property..
or
u can use
display:flex;
justify-content:center;
align-items:center;
to center any element and it should be used on the parent