UrbanPro

Learn HTML from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is difference between HTML elements and attributes?

Asked by Last Modified  

16 Answers

Learn HTML

Follow 0
Answer

Please enter your answer

Sr. Software Engineer

An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element's start tag. An element's start tag may contain any number of space separated attribute/value pairs. The most popular misuse of the term or tag is referring to alt attributes as alt tag...
Comments

Trainer

In simple Word "An attribute defines a property for an element".
Comments

Web Developer And Graphic Designer

HTML tags ----------- Tags are used to mark up the start and end of an HTML element. ex : p HTML attributes ---------------- An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element's start tag.src is the attribute. ex : img src="banner.gif"...
read more
HTML tags ----------- Tags are used to mark up the start and end of an HTML element. ex : p HTML attributes ---------------- An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element's start tag.src is the attribute. ex : img src="banner.gif" alt="banner" read less
Comments

PHP Trainer 5 years

Attributes are property which clarifies a object like if I say source then it can be image iframe or img tag but if u specify extra attribute alt then it is alternative tag shows a text when image is not avaiable so it is clarfying that this is image tag (img).
Comments

Ruby on Rails, React & angular Trainer

An element in HTML represents some kind of structure or semantics and generally consists of a start tag, content, and an end tag. like p Lines of codes /p An attribute defines a property for an element like- img src="demo-image.png" Here is no closing tab, which is the main deference.
Comments

Professional Mentor in UI UX design and Founder of SEO skills Academy Hyderabad.

Hi Durgaprasad , in a simple language, take " you" as an example. 1.Durgaprasad is an ELEMENT 2.Durgaprasad's Height, Color, weight, Qualification are attributes 3.Height = 5 feets, color ="white" , weight = 60 kgs are attribute values. in HTML &lg img %gt is an HTML Element src ="Durgaprasad .jpg" vspace...
read more
Hi Durgaprasad , in a simple language, take " you" as an example. 1.Durgaprasad is an ELEMENT 2.Durgaprasad's Height, Color, weight, Qualification are attributes 3.Height = 5 feets, color ="white" , weight = 60 kgs are attribute values. in HTML &lg img %gt is an HTML Element src ="Durgaprasad .jpg" vspace ="200px" (vertical space) border="10px"; align ="right"; All left side labels are attributes and right side ones are values. I hope I have given silly example hope you like it. Thanks a lot for posting. Happy learning and be a Great UI/UX Pro. All the Best. Ravindra Reddy, Sr. Trainer (digital branding and Marketing). read less
Comments

Pro: HTML5, CSS3, jQuery, AngularJs, SASS

p, div etc. are html elements but the class, id etc. are attributes.
Comments

.Net Developer

Attributes will provide additional behaviour to the HTML elements and Elements are nothing which comes with in angular brackets and we have two types of elements in HTML like stranded and void elements.
Comments

Adobe Certified , Microsoft Certified Trainer with 9 years of experience

HTML elements is a "DIV" and its attributes are "align , Style , etc".
Comments

Teacher

Elements are components which are core html control related objects. Where attributes are the properties for the current components.
Comments

View 14 more Answers

Related Questions

I want to be a web/ios/android developer though I have studied till class10. So can I do the course to work as a freelancer? M y main query is I have heard about many things which we get to study when we do B.Sc but I am not up to that level so can I do the course?
Hi Ashutosh , I like your confidence and would like to say definitively you can do the course , as you are upto 10 th class so it may be very difficult to get jobs in companies but if you will have good...
Ashutosh
What is the inline element? And the block element and the difference of the span and p. How could I write p in html and the what are the types of attributes? If we want to display the fist name and last in same line which type of code I want choose? What is the process of creation of radio buttons and lists?
1. A block-level element will always starts on a new line and takes up the full width available; for example: The div element is a block-level element. block-level elements. more examples:- div tag h1...
Lakshmisandhya

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

CSS Padding
The CSS padding properties are used to generate space around an element's content, inside of any defined borders. With CSS, you have full control over the padding. There are properties for setting the...

HTMl tutorial for input type
<html> <body> <form> <input type="tel" id="phone" name="phone" pattern="{10}"required><br> <input type="submit" value="Submit"> </form> </body> </html>

HTML - Introduction
HTML - Hypertext Markup Language is the standard markup language for creating web applications. Hypertext is simply a piece of text that works as a link. Markup Language is a way of writing layout information...

HTML5 new ways of HTML.
If you learn HTML5 then you will learn all HTML and XHTML and new tools. There is new ways of representation in HTML5. So try learning HTML5.

Palash Roy

0 0
0

Add shadows to boxes with HTML 5.0 and CSS 3.0
1) Hi! lets learn how to drop shadows for the boxes. First let's create a simple box in html <!doctype html><html><div>Hi this is a box</div></html> 2) Now lets give it...

Recommended Articles

Here are the top 6 must have skills for every Web Designer : Technical Skills Web designers undoubtedly require very strong technical skills. They must have hands on using Web designing software and tools, such as Adobe Dreamweaver, Fireworks, Photoshop, Flash etc. In addition to the knowledge of design...

Read full article >

Since the world today is ruled by the Internet, everyone desires to build a website for either business or personal interests. HTML or Hyper-text Mark-up Language is a globally standardized language which used to format web pages. By using HTML, the appearance of text, links, images and almost every part of a web page could...

Read full article >

Today, no business can exist without having its own website to interact with its customer base. Having a website is no more restricted to the big MNCs. With the advancement in technology and global business, even the small enterprises are spending on having their own websites and development teams. The person works on web...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Looking for HTML Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for HTML Classes?

The best tutors for HTML Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn HTML with the Best Tutors

The best Tutors for HTML Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more