V.Vidhya Logo

V.Vidhya

Object Selection & Setting Content (DOM)


Create a simple template HTML with h1 for page heading, h3 for student name, h4 for course name, p for subject of the message, another p for message.

Your template webpage should look like this.

Image 2

Now the student name, course name, message subject, message - all of these fields should be taken as input from user then these fields should be filled with that user input using JS.

The message subject p should be made bold and message p should be made italic using JS modification.

Your output should look like this.

Image 1


Prev Post
Methods
Next Post
Manipulating Attributes & Style