answersLogoWhite

0

//Find the object in the DOM, and set its new class name: document.getElementById['elementIdName'].className = "nameOfYourNewClass";

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

What languages can a browser understand?

HTML, CSS, & JavaScript.


Which property is used to change the left margin of an element in css?

ds,j css


What is the difference between css HTML and dhtml?

* HTML is used to actually build the structure of a webpage. The text, tables, divisions, links, images, and so on. * CSS takes what HTML gives a browser, and makes it look nicer by adding color, borders, and perhaps even hiding things a user shouldn't see. * dHTML isn't a language, but a combination of HTML, CSS, and JavaScript working together. HTML builds the actual element(s), JavaScript uses scripts that makes things happen (Such as changing the colour of the background when you click a button), and CSS makes things such as changing colours actually happen (JavaScript must change the CSS, though).


What is the difference between the Class attribute and the ID attribute in HTML and CSS?

An ID is used to define the style properties of a specific thing whereas a class is used to define something you may use multiple times. For instance, if you are going to make a loginbox you will use an id because you will only have one identical loginbox on the page whereas if you wanted every quote to be given the same style you would use a class, this would mean all elements with class=quote (after you define it in the CSS) would always style quotes to your needs. In short, you could use either as they have pretty much the same outcome, but organised CSS is good CSS so you are better off using classes and ID's as i have defined them above.


How do you create a registration form using css and javascript in HTML?

Form is an HTML construct. The first part tells the server to Get or Post. To format with CSS is one thing, to make it interactive, use JavaScript. I will give a URL below:

Related Questions

What languages can a browser understand?

HTML, CSS, & JavaScript.


How do you use javascript in css document?

You cannot use javascript in a css (cascading style sheets) file. You can only write javascript in javascript files (js extension) or in html files inside of <script type="text/javascript"></script> tags.


Which property is used to change the left margin of an element in css?

ds,j css


How do you put images on a webpage that change from one to the next?

CSS would not do this for you, you need javascript or php or something other web language. You could get CSS to change images on a click to a hyperlink though.


What is the difference between css HTML and dhtml?

* HTML is used to actually build the structure of a webpage. The text, tables, divisions, links, images, and so on. * CSS takes what HTML gives a browser, and makes it look nicer by adding color, borders, and perhaps even hiding things a user shouldn't see. * dHTML isn't a language, but a combination of HTML, CSS, and JavaScript working together. HTML builds the actual element(s), JavaScript uses scripts that makes things happen (Such as changing the colour of the background when you click a button), and CSS makes things such as changing colours actually happen (JavaScript must change the CSS, though).


Can you hide and reveal text e.g YouTube comments without the use of javascript I wanted to try it on Myspace but it disables javascript.?

Very unlikely. See, Javascript is used to change the className attribute of the text node. When the className has changed, the node uses the properties that are set with CSS. This means you can keep a text invisible with CSS only, but you'll always need Javascript to switch classes.


How do you change the color of your hover?

You can change the color of your hover effect by using CSS. Add a style rule for the hover pseudo-class to the element you want to change the color of. For example: .element:hover { color: blue; }


What is an id attribute?

An id attribute is a unique identifier assigned to a specific HTML element on a webpage. It is used to uniquely identify the element, making it easier to target and manipulate using CSS or JavaScript.


What programming language is used for webOS applications?

HTML5, JavaScript, CSS


How does java script ehance the capabilites of HTML?

Javascript can change how HTML will work, alike how CSS makes HTML look flashy.


How does you call javascript file in css?

In your HTML add in the tags


Is it necessary to learn css to learn javascript?

yes its necessarry to learn css basis .... refer w3c shool css tutorials.. all the best