How to markup postal address in HTML?

HTMLWeb DevelopmentFront End Technology

To markup postal address in HTML, use the <address> tag. The <address>…</address> tag is to add contact information. It can also be used to add contact information for the author of an article or document.

Just keep in mind too that each line should be followed by a <br> tag, as in address.

Example

You can try to run the following code to add the postal address in HTML.

<!DOCTYPE html>
<html>
   <head>
      <title>HTML address tag</title>
   </head>

   <body>
      <h1>Contact us</h1>
      <address>
         52nd Street<br>
         New York,<br>
         NY 10019<br>
         USA
      </address>
   </body>
</html>

Output

raja
Published on 18-Jan-2018 11:01:04
Advertisements