- Joined
- Jun 3, 2010
- Sythe Gold
- 291
- Messages
- 2,223
Example of accessing one (Changing Text Color to Green):
But how would I go about adding two HTML commands to one Line of Text. For Example, If I wanted to change the size and the color of the text, how would i be able to call both elements on the text "Green Text". So, not only with "Green Text" be green, the font size will be changed as well. I am terrible at explaining programming problems I have, so if this is confusing, ask for me to explain in more detail.
Code:
<html>
<body>
<FONT Color="green" id="green"></FONT>
<script language="javascript">
document.getElementById("green").innerHTML="Green Text";
</script>
</body>
</html>
But how would I go about adding two HTML commands to one Line of Text. For Example, If I wanted to change the size and the color of the text, how would i be able to call both elements on the text "Green Text". So, not only with "Green Text" be green, the font size will be changed as well. I am terrible at explaining programming problems I have, so if this is confusing, ask for me to explain in more detail.







