Important Notice:

Course Content
Heading Tag / Paragraph Tag
0/2
Horizontal Rules (HR element)
0/1
Font Element
0/1
Image Element
0/1
HTML Basic (Chapter 3) M2-R5.1
About Lesson

Element:-

HTML Element, HTML Tags और Content का Combination होता है यानि Opening HTML Tag और Closing HTML Tag तक सब कुछ एक HTML Element ही होता हैएक  Start HTML Tag, End HTML Tag और इनके बीच Content को सामुहिक रूप से HTML Element कहते है।

<h1>My First Heading</h1>

Attribute:-

HTML Attribute एक HTML Element को अतिरिक्त जानकारी प्रदान करते हैं। HTML Attribute को Name और Value से Defne किये जातै हैं। HTML Attribute की value को हमेशा Double quote (= “  ”) के भीतर लिखा जाता है। HTML Attributes का उपयोग HTML Tags की विशेषताओं को Define करने के लिए किया जाता है।

Element:-

The combination of a start and end tags define an element. Everything between the two tags is referred to as the contents of the element.

<h1> A heading </h1>

Attribute:-

Attributes provide additional information about the contents of an element. They appear on the opening tag of the element and are made up of two parts: – a name and a value, separated by an equals sign.

 <p lang = “en-us”>Paragraph in English </p>

     The attribute name indicates what kind of extra information you are supplying about the element’s content. It should be written in lowercase.

The value is the information or setting for the attribute. It should be placed in double quotes. Different attributes can have different values.

 In this example an attribute called lang is used to indicate the language used in this element. The value of this attribute on this page specifies it is in US English.

Note: – HTML5 allows you to use uppercase attribute names and omit the quote marks, but this is not recommended.

error: Content is protected !!