The Wayback Machine - https://web.archive.org/web/20241113022324/https://www.geeksforgeeks.org/how-to-markup-postal-address-in-html/
Open In App

How to markup postal address in HTML ?

Last Updated : 16 Jun, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

In this article, we will learn how to markup postal addresses in HTML. In this, we will use the <address> tag to contain the contact detail on the web page. This can help in building information on location, email address, phone number, and URL. The text inside the <address> tag will display in italic format. Some browsers add a line break before and after the address element.

 Approach: HTML is a Markup language used to design web pages. It has so many tags which can be used for different purposes. So, for this, we can use the <address> tag. The <address> tag can be used to add contact information of any type. This tag can be used to store addresses. This tag was introduced in HTML3 and it still exists in HTML5.

Syntax:

  • Add <address> tag where you want to insert any address.
<address>
  Address content...
</address>
  • Now add your address inside <address> tag and also add <br> tag at the end of every row as shown below.

HTML




<address>
      Jalandhar <br> <!-- Added City -->
      Punjab <br> <!-- Added State -->
      India <br> <!-- Added Country -->
      Ph: 1234567890 <br> <!-- Added Phone -->
</address>


  • There are many ways to markup postal addresses in HTML and we have shown the easiest and simplest way to do this.

Example: In this example, we will add an address tag.

HTML




<!DOCTYPE html>
<html>
 
<body> 
  <h1>Address</h1>
  <!-- Added address tag -->
  <address>  
      <!-- Added address & <br> tag below-->
      Jalandhar<br>
      Punjab<br>
      India<br>
  </address> 
</body>
</html>


Output:

HTML address tag 



Similar Reads

What is the best way to compare two HTML pages with same data but different markup?
In this article, we will be learning about the best way to compare two HTML pages with the same data but different markup. At first, we need to know how to compare two HTML pages. Now, the most efficient way to check both the pages is to use the hash code of both the page contents and compare it for equality. JavaScript hashCode(): In order to impl
4 min read
Explain different markup languages other than HTML
Markup languages are computer languages that are used to structure, format, or define relationships between different parts of text documents with the help of symbols or tags inserted in the document. These languages are more readable than usual programming languages with strict syntax. There are several markup languages available but the most popu
5 min read
Why HTML is called Markup Language?
HTML stands for HyperText Markup Language. It is a standard language used to build web pages, organizing and structuring content through special codes known as markup. HTML consists of elements or tags that define the different parts of a webpage. Web browsers interpret HTML documents to display content to users. Table of Content Meaning of markup
4 min read
How to make a Basic Markup Button using jQuery Mobile ?
jQuery Mobile is a web based technology used to make responsive content that can be accessed on all smartphones, tablets and desktops. In this article, we will be creating a basic markup button using jQuery Mobile. Approach: Add jQuery Mobile scripts needed for your project. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery
2 min read
How to create Basic footer markup using jQuery Mobile ?
jQuery Mobile is a web based technology used to make responsive content that can be accessed on all smartphones, tablets and desktops. In this article, we will be making Basic footer markup using jQuery Mobile. Approach: First, add jQuery Mobile scripts needed for your project. <link rel=”stylesheet” href=”http://code.jquery.com/mobile/1.4.5/jqu
1 min read
How to make Mini sized basic footer markup using jQuery Mobile ?
jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be making Mini-sized basic footer markup using jQuery Mobile. Approach: First, add jQuery Mobile scripts needed for your project. <link rel="stylesheet" href="http://code.jquery.com/mobi
1 min read
How to make Basic Header markup using jQuery Mobile ?
jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be making Basic Header markup using jQuery Mobile. Approach: First, add jQuery Mobile scripts needed for your project. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jq
1 min read
How to make a Basic Checkbox markup using jQuery Mobile ?
jQuery Mobile is a web based technology used to make responsive content that can be accessed on all smartphones, tablets and desktops. In this article, we will be creating a Basic Checkbox markup using jQuery Mobile. Approach: Add jQuery Mobile scripts needed for your project. <link rel=”stylesheet” href=”http://code.jquery.com/mobile/1.4.5/jque
1 min read
Primer CSS Lean Markup
Primer CSS is a free open-source CSS framework that is built upon a GitHub design system to provide support to the broad spectrum of GitHub websites. It creates the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach
3 min read
Writing markup with JSX
JSX is a syntax extension for JavaScript, used with React to describe what the UI should look like. This guide will explain why React mixes markup with rendering logic, how JSX differs from HTML, and how to display information using JSX. Table of Content Why React Mixes Markup with Rendering Logic?How JSX is Different from HTML?Rules of JSXSteps to
4 min read
How to Add Schema Markup in WordPress?
Schema markup is one type of code from structured data that will added to a website page by showing the exact topic of the page, it helps search engines better understand the niche of the page and showcase your website’s content as per the user query. Even though search engines are useful tools they are only good as the data they understand because
6 min read
Bootstrap 5 Tooltips Usage Markup
Bootstrap 5 Tooltip is one of the components which provide small, interactive, textual hints for elements. They are used to provide additional information about a specific element when the user hovers over it or focuses on it. Bootstrap 5 Tooltips Usage Markup: The markup required for the tooltips are the data attribute and the title which we want
2 min read
Difference Between Programming, Scripting, and Markup Languages
When it comes to making a website or app coding involves basically three types of languages i.e the programming language, Scripting Language and Markup Language.  There are a lot of people who consider coding as just developing or making a website but they need to understand every single language fits into a particular category and we need to know
4 min read
HTML DOM Address Object
The DOM address object is used to represent the HTML <address> element. The address element can be accessed using the getElementById() method. Syntax: document.getElementById("id"); Where ‘id’ is the ID assigned to the address tag. Example 1: In the below program the address element is accessed and the color of the text inside the address ele
1 min read
How to write address in an HTML document ?
The <address> tag in HTML is used to write contact information of a person or an organization. If <address> tag is used inside the <body> tag then it represents the contact information of the document and if the <address> tag is used inside the <article> tag, then it represents the contact information of the article. T
1 min read
Difference between linking an image, website, and email address in HTML
In this article, we will discuss linking an image, a website, and an email address to a website. The HTML img tag is used to link an image to a website.The HTML anchor tag is used to link a website by adding the path of the website in the hypertext reference (href) attribute.To link an email address, we specify mailto at the beginning of the email
3 min read
HTML <address> Tag
The HTML <address> tag defines contact information for the author or owner of a webpage. it can contain various contact details such as an email address, URL, physical address, mobile number, social media, etc. The text inside the <address> tag will be displayed in italic format. Some browsers add a line break before and after the addre
3 min read
Bootstrap 5 Reboot Address
Bootstrap 5 Reboot is a collection of element-specific CSS that changes in a single file, kickstart Bootstrap provides an elegant, consistent, and simple baseline to build upon. Reboot Address element is used to change the font-style from italic to the normal text. It inherits the line-height property and set the margin-bottom property to 1rem. The
2 min read
How to check for IP address using regular expression in javascript?
The task is to validate the IP address of both IPv4 as well as IPv6. Here we are going to use RegExp to solve the problem. Approach 1: RegExp: Which split the IP address on. (dot) and check for each element whether they are valid or not(0-255). Example 1: This example uses the approach discussed above. C/C++ Code <h1 style="color:green;
1 min read
How to check if email address is already in use or not using express-validator in Node.js ?
The registration or Sign Up in any website always requires a username. Most of the time we use 'email' to register on a website. The registration email is always unique and must refer to only one user otherwise conflict between the users can happen. To solve this conflict every website must have the functionality to not accept the email that alread
5 min read
Node.js socket.address() Method
The socket.address() method is an inbuilt application programming interface of class Socket within dgram module which is used to get the object which contains the address information for the socket. Syntax: const socket.address() Parameters: This method does not accept any parameter. Return Value: This method returns the object which contains the a
2 min read
Node.js server.address() Method
The server.address() is an inbuilt application programming interface of class Socket within tls module which is used to get the bound address of the server. Syntax: const server.address() Parameters: This method does not accept any parameter. Return Value: This method returns the bound address containing the family name, and port of the server. How
3 min read
Node.js tlsSocket.address() Method
The tlsSocket.address() method is an inbuilt application programming interface of class TLSSocket within tls module which is used to get the bound address, the address family name, and the port of the underlying socket. Syntax: const tlsSocket.address() Parameters: This method does not accept any parameter. Return Value: This method returns the bou
3 min read
How to determine the user IP address using node.js ?
Node.js is an open-source, back-end JavaScript runtime environment that runs on the web engine and executes JavaScript code. There are various platforms such as Windows, Linux, Mac OS where Node.js can run. The Domain Name System is a hierarchical and decentralized naming system for computers etc that are connected to the Internet. To find the IP a
2 min read
How to specify the address of the document to embed in the iframe element in HTML5?
The iframe in HTML stands for Inline frame. The “iframe” element in a webpage helps to display another web page document within some particular area or region using the web browser. The inline frame is used to embed another webpage within the current HTML webpage having different attributes for loading, setting height or width, allowing full screen
2 min read
How to get Geolocation using PHP-cURL from IP Address ?
Geolocation refers to the identification of the geographical location of a user or computer device. In this article, we will create a web page where the user can enter the IP Address of any device, and then the server will provide Geolocation of the IP address fetching the following details using the IP Geolocation API. Continent NameCountry NameCo
2 min read
How to get IP Address of clients machine in PHP ?
An IP address is used to provide an identity to a device connected to a network. IP address stands for Internet Protocol address. An IP address allows to track the activities of a user on a website and also allows the location of different devices that are connected to the network to be pinpointed and differentiated from other devices. There are tw
2 min read
How to Insert Email Address into Form using HTML5 ?
In this article, we will learn how to add and get an email address of a user as data of the form by adding an email input field. As we know that an email_id is a vital component of user data. Email address is used for the verification of the user. It is also used to make contact with the submitters directly. Approach: To complete this task, we have
2 min read
IP address finder app using ReactJS
In this article, we will be building an IP address finder app that lets you find your client's approximate location on a map. An IP address is a unique address that identifies a device on the internet or a local network. IP stands for "Internet Protocol," which is the set of rules governing the format of data sent via the internet or local network.
4 min read
Program to swap two integer parameters using call by value & call by address in PHP ?
Call by value: In call by value, we will send the value from the calling function to the called function. The values of the calling function arguments are directly copied to the corresponding arguments of the called function. If any modification is done on the arguments of the called function, it will not be effected on the arguments of the calling
3 min read
three90RightbarBannerImg