Tuesday, October 8, 2019

Which tag is used to align a picture so that one may be higher or lower than the other?


align= left 
align= center
align= right
align= justify

Align attribute helps to align block elements (tables, images, objects, paragraphs) in HTML elements. 


  • left : text lines are rendered flush left
  • right: text lines are rendered flush right
  • center: text lines are centered
  • justify: text lines are justified to both margins

syntax :


<H1 align="center"> How to align this picture to center </H1>

<H1 align="right"> How to align this picture to right </H1>

<H1 align="left"> How to align this picture to left </H1>

<H1 align="justify"> How to align this</H1>

example:
<h3 align="center">Hi, I'm Mattmarg.</h3> <p align="center"><img src="monkey.gif"></p> <h4 align="center">I reffed the big game between Bridgeville and <a href="http:www.hits.org/casterlin/">Casterlin</a>.</h4>
<div align="center"> <h3>Hi, I'm Mattmarg.</h3> <p><img src="monkey.gif"></p> <h4>I reffed the big game between Bridgeville and <a href="http:www.hits.org/casterlin/">Casterlin</a>.</h4> </div>
Back to Questions: Which tag is used to align a picture so that one may be higher or lower than the other?- "Which tag is used to align a picture so that one may be higher or lower than the other?"

1 comment:

  1. Nicely explained the topic "SEO Services" same as you mention about is quite popular these days in the united kingdom, United States, Ireland, And other countries. our company provides same services without any risk, kindly visit to know Website Development Company in UK

    ReplyDelete