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

Why is HTML is used in Web Application?

The role of HTML in web development is to provide the backbone and structure of a web page. It defines the layout and organization of content on a web page by using a ranked structure of elements. HTML...
Karthick Ramesh Kumar
0 0
8

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

Ask a Question

Related Lessons

HTML(Hypertext Markup Language) for creating web pages by Kris, konrad, andy
Html stands for Hypertext Markup Language. It's the computer language at the heart of World Wide Web. When creating a website, html is used to put text, pictures, animations, video, sound onto individual...

HTML Style Attribute
Setting the style of an HTML element, can be done with the style attribute. <tagname style="property:value;"> Ex - HTML Background Color The background-color property defines the background...

Bootstrap grid system
What is a Grid? As put by wikepedia − In graphic design, a grid is a structure (usually two-dimensional) made up of a series of intersecting straight (vertical, horizontal) lines used to structure...

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...

Awesome rotating Image on hover | HTML5, CSS3
Hello everyone let's see how to make an awesome rotating image on hover with HTML 5.0 and CSS 3.0. STEP 1: In HTML code put an image with the HTML tag STEP 2: Style that image however you want. Below...

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