The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag describes each term: Example <dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl> Try it Yourself » ...
The unordered list is used to represent data in a list for which the order of items does not matter. In HTML, we use the<ul>tag to create unordered lists. Each item of the list must be a<li>tag which represents list items. For example, <ul><li>Apple</li><li>Orange</li><li>M...
A simple drop-down listA drop-down list with a pre-selected valueA textarea (a multi-line text input field)An input buttonUsing the <datalist> ElementUsing the <output> Element HTML Input Types Input type textInput type passwordInput type radioInput type checkboxInput type buttonInput type nu...
In this example, we are using the list-style-type property of CSS to set the markers of list items. <!DOCTYPE html><html><head><title>HTML List</title><style>li{font-size:16px;list-style-type:square;}</style></head><body><h2>HTML list-style-type Property</h2><div><p>First Li...
The HTML <aside> tag is used to represent a portion of a document that is indirectly related to the main content. It is most commonly used as a sidebar in the document. It does not render anything special in the browser. For example, <div> <h1>This is a heading</h1> <aside> <p...
This tag formats any text between the opening <p> tag and the closing </p> tag as a standard paragraph or main body text. <h2> Heading Tag </h2> In this example, <h2> and </h2> are the HTML tags and “Heading Tag” is the HTML element, i.e. the on-page heading. ...
HTML Article <article> tag is used to define an independent, self-contained content in an HTML document. Article tag is generally used for forum posts, blog posts, news story, etc. Example A simple Article element is shown in the following example. index.html </> Copy <!DOCTYPE html> ...
Example<!DOCTYPE html> <html> <head> <title>HTML datalist tag</title> </head> <body> <label>Choose your country </label> <input list="country"/> <datalist id="country"> <option value="India"/> <option value="Singapore"/> <option value="Japan"/> </datalist> </body> </html>...
If I wanted to tell search engines not to index a specific page and not to follow any links on it, my robot meta tag would look something like this: 7. List Tag <li> List tags allow you to create ordered and unordered lists, enhance the content structure, and improve readability for ...
Example <!DOCTYPE html> <html><head><title>Page Title</title> </head><body><h1>This is a Heading</h1><p>This is a paragraph.</p> </body></html> Try it Yourself » Click on the "Try it Yourself" button to see how it works.HTML ExamplesIn this HTML tutorial, you will ...