HTML <dl> Tag

138    Share

Definition | Description | Other Lists


HTML Definition/Description/Other Lists

A description list is a list of terms, with a description of each term.

The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag describes each term:

A (Definition List) ਜਾਂ ਡਿਸਕ੍ਰਿਪਸ਼ਨ ਲਿਸਟ/ਵਰਣਨ ਸੂਚੀ (Description List) ਵੀ ਕਿਹਾ ਜਾਂਦਾ ਹੈ। : ਡੇਫੀਨੇਸ਼ਨ ਲਿਸਟ ਹਰੇਕ ਆਈਟਮ ਜਾਂ ਸ਼ਬਦ ਦੇ ਵਰਣਨ ਜਾਂ ਪਰਿਭਾਸ਼ਾ ਨੂੰ ਦਰਸ਼ਾਉਂਦੀ ਹੋਈ ਵੱਖ-ਵੱਖ ਆਈਟਮਾਂ ਦੀ --- । ਇੱਕ ਲਿਫ਼ ਹੁੰਦੀ ਹੈ। ਇਸ ਲਿਸਟ ਵਿੱਚ ਆਈਟਮਾਂ ਨੂੰ ਇੱਕ ਸ਼ਬਦਕੋਸ਼ (Dictionary) ਦੀ ਤਰ੍ਹਾਂ ਸੂਚੀਬੱਧ (Listed । । ਕੀਤਾ ਗਿਆ ਹੁੰਦਾ ਹੈ। HTML ਵਿੱਚ <DL> ਟੈਗ ਦੀ ਵਰਤੋਂ ਡੈਫੀਨੇਸ਼ਨ ਲਿਸਟ ਤਿਆਰ ਕਰਨ ਲਈ ਕੀਤੀ ਜਾਂਦੀ ਹੈ। ਡੇਵੀਨੇਸ਼ਨ ਲਿਸਟ ਵਿੱਚ ਹਰੇਕ ਲਿਸਟ ਆਈਟਮ ਵਿੱਚ ਦੋ ਤਰ੍ਹਾਂ ਦੇ ਕੰਟੈਂਟ ਦਾਖਲ ਕੀਤੇ ਜਾਂਦੇ ਹਨ,

• ਡੇਫੀਨੇਸ਼ਨ ਟਾਈਟਲ/ਪਰਿਭਾਸ਼ਾ ਸਿਰਲੇਖ (Definition Title): ਇਸ ਨੂੰ ਡਾਟਾ ਟਰਮ (Data Term) ਵੀ ਕਿਹਾ ਜਾ ਸਕਦਾ ਹੈ। ਡੇਫੀਨੇਸ਼ਨ ਟਾਈਟਲ ਲਈ <DI> ਟੈਗ ਦੀ ਵਰਤੋਂ ਕੀਤੀ ਜਾਂਦੀ ਹੈ? ਡੈਫੀਨੇਸ਼ਨ ਡਿਸਕ੍ਰਿਪਸ਼ਨ/ਪਰਿਭਾਸ਼ਾ ਵਰਣਨ (Definition Description): ਇਸ ਨੂੰ ਡਾਟਾ ਡੇਵੀਨੇਸ਼ਨ (Data Definition) ਵੀ ਕਿਹਾ ਜਾ ਸਕਦਾ ਹੈ। ਡੇਫੀਨੇਸ਼ਨ ਡਿਸਕ੍ਰਿਪਸ਼ਨ ਲਈ <DD> ਟੈਗ ਦੀ ਵਰਤੋਂ ਕੀਤੀ ਜਾਂਦੀ

<DT > ਅਤੇ <DD> ਟੈਗਜ਼ ਦੀ ਵਰਤੋਂ <DI> ਅਤੇ </DL> ਟੈਗਜ਼ ਦੇ ਵਿੱਚਕਾਰ ਕੀਤੀ ਜਾਂਦੀ ਹੈ। <DI> ਟੈਗ ਨਾਲ ਕਿਸੇ ਐਟਰੀਬਿਊਟ ਦੀ ਵਰਤੋਂ ਨਹੀਂ ਕੀਤੀ ਜਾਂਦੀ।


Live Demo & Try it yourself! Read More » »

Block-level Elements


A block-level element always starts on a new line, and the browsers automatically add some space (a margin) before and after the element.

A block-level element always takes up the full width available (stretches out to the left and right as far as it can).

Two commonly used block elements are: <p> and <div>.

The <p> element defines a paragraph in an HTML document.

The <div> element defines a division or a section in an HTML document.

The <p> element is a block-level element.

The <div> element is a block-level element.


Live Demo & Try it yourself! Read More » »