DONATE  
MENU
AJAX
JAVASCRIPT
PHP
HTML
MYSQL
CSS
JSON

HTML Tutorials

INTRODUCTION

» Introduction to HTML

» PRACTICE IT Editor

» Getting Started

» HTML Example

» HTML Tags

» HTML Elements

» Nesting Tags

» Block & Inline Elements

» HTML Attributes

» HTML Comments

» File Paths

» HTML Entities & Symbols

TAGS/ELEMENTS

» Important Tags

» HTML Headings

» Text Formatting

» HTML Links

» HTML Lists

» HTML Tables

» HTML Images

» HTML Audios

» HTML Videos

» HTML Iframes

» HTML Styles

» HTML Scripts

» Semantic Elements

» HTML Metadata

ATTRIBUTES

» Elements' ID

» Elements' Class

» Elements' Style

» Element's Align

» Element's Height & Width

HTML FORMS

» HTML Forms

» Input Elements

» HTML Textarea

» HTML Select

HTML EXAMPLE

» Login Page

.. » HTML » Attributes » Element's Align
Share Tweet WhatsApp

Element's Align

The align attribute enables you move block elements to any part (left, center, right) of a webpage or their parent elements. By default, most HTML elements are left - aligned. Nevertheless, the align attribute enables you to move block elements to any part of the webpage. It's value can either be left or right or center.
<h1 align='left'>Left</h1>
<h1 align='center'>Center</h1>
<h1 align='right'>Right</h1>

Copy PRACTICE IT

NOTE:
  • The align attribute works with block elements only. You can use CSS to align or float inline and inline-block elements.
SUMMARY
  1. The HTML align attribute enables you to align a content to either the right, left or center of a webpage or the element's parent.
  2. It works with only block elements.
  3. It's (align) value can either be left, center or right.
Take a short quiz on Element's Align.
Ask a question or tell us if Element's Align is easy or not.
cent?

Join our 1,090 subscribers to receive tutorials' updates!

  We won't spam your mail box. We hate it.





StackBeginner 2021 © Joseph Omamode