answersLogoWhite

0


Best Answer

To use the HTML style attribute, you simply add style="CSS Stuff Here" to the HTML tag you want those styles applied to. The value of the attribute is simply the CSS declarations you would make anywhere else. For instance:

web site name

It would create a link to the Answers homepage that was bold-faced and red.

It's important to note that styles added in the style attribute override any other style added to that element elsewhere. So, if your sitewide CSS made all links blue, this declaration would override it.

You lose a lot of the power of CSS by adding the styles in this manner. You're also violating the basic principle of CSS, which is to separate content and presentation information.

The technique, therefore, should be used sparingly, if at all.

User Avatar

Wiki User

βˆ™ 11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 14y ago

Most likely the attributes style, class, id, type and src.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 9y ago

BODY, HEAD etc are the standard attributes. They do not need to be created by user and are standard.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you define HTML style attribute in HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are HTML style tags?

HTML style tag is used to define CSS in HTML. It is used to style the page according to the user demans.


Which iframe attribute is used to define the restrictions to the frame content in HTML 5.0?

sandbox


What is the name of the HTML rule where you define the level of tabbing in screenflows?

It's called the tabindex attribute,


How do you write a HTML code font themes?

You can mention the HTML code font by using style. Style element for an attribute contains all further attributes.


Which HTML attribute is used to define an inline styles?

<style type="text/css"></style>


What is use of frame in HTML?

A frame can be used for dividing page into segments. <frame> attribute can be used to define frames.


What is the fullform of REL in HTML?

The REL attribute in HTML is a shortened version of "relationship." REL attributes are used to define the relationship between one file and another.


How would you define span in HTML?

Span is one of the tag of HTML. It alters the style of written text in the web page.


How do you set margins without CSS in HTML?

HTML does not have a built-in way to set margins without CSS. Margins are a property of Cascading Style Sheets (CSS), not of HTML. To set margins in HTML, you need to use CSS either directly in a β€œstyle” attribute of an HTML element, or by using an external CSS file linked to your HTML document.


What does values mean in HTML?

The values specify the properties of the attribute which provide additional information about HTML element. For example: the element Font will have an attribute to define the color of the font, and the value will be the color. This information is used in the start tag. <font face="arial">This is arial font</font> ="arial" is the value. (Element Attribute= "value"> General values could include size= "2" ( "2" is the value to define the size of the font in pixels) or color = "000000" (="000000" is the value to define the color of the font)


What is an HTML attribute used for?

In HTML, atttribute provides additional information about HTML element. Attribute of HTML element is written in start tag and usually come in name/value pair e.g. name="value". Attribute names and values are case sensative and it is recommented by W3C to write them in lower case. Some attributes which can be used on any HTML element are: classs, id, style, title etc. Attribute values should always be quoted in single or double quotes. The best practice is to use double quotes around values.


How can you disable a particular part in the source code of CSS?

Put /* block comments */ around it, for example: style { attribute: value; attribute: value; attribute: value; } style { /* attribute: value; */ attribute: value; attribute: value; } or style { /* attribute: value; attribute: value; */ attribute: value; } or /* style { attribute: value; attribute: value; attribute: value; } */ And while this won't validate, attribute renaming uses a lot less typing (and I use it myself): style { xattribute: value; attribute: value; attribute: value; }