Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
JavaScript Can Change HTML Styles (CSS) in Examples of Javascript 1
931 Views
Example
<!DOCTYPE html>
    <html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <title>changing css</title>
    </head>
    <body>
        <button type="button" onclick="document.getElementById('size').style.fontSize='24px'" >size change to 24px</button>
        <button type="button" onclick="document.getElementById('size').style.color='Red'" >color change to red</button>
        <p id="size">HELLO</p>
        
    </body>
</html>
Next Topics
Next lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Previous Topics
Previous lessons of current book.
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details