Hello everyone!
Lab 2 was very easy and simple. It's more of a checking of what we have done in the past and to refresh our mind. First was to create a text using JavaScript. You do this by typing in document.write. You can also apply HTML tags in the string if you wrap it around with another quotation. The next way you can type in text is by using innerHTML. We first had to create a
tag and then change the HTML of that specific tag using its id. Once we did that, we created a secret text that can only be viewed in the console log. I find that interesting and it could be helpful for web developers knowing what it does. The next step to the lab is using alerts. The message that i typed in the alert tag would pop up in the user's browser as an actual alert. Another type of alert that we used is prompt. The user would be asked a question, then they have to enter a value to answer the question. Finally we used confirm. This would give the user a question and they have to answer yes or no to it. Learning all of this gives us a variety of ways to communicate with the users and give an interactive experience for them. This would improve my skills as a web designer as being one would mean giving the users a great experience browsing your webpage.
Lab 2 was very easy and simple. It's more of a checking of what we have done in the past and to refresh our mind. First was to create a text using JavaScript. You do this by typing in document.write. You can also apply HTML tags in the string if you wrap it around with another quotation. The next way you can type in text is by using innerHTML. We first had to create a
tag and then change the HTML of that specific tag using its id. Once we did that, we created a secret text that can only be viewed in the console log. I find that interesting and it could be helpful for web developers knowing what it does. The next step to the lab is using alerts. The message that i typed in the alert tag would pop up in the user's browser as an actual alert. Another type of alert that we used is prompt. The user would be asked a question, then they have to enter a value to answer the question. Finally we used confirm. This would give the user a question and they have to answer yes or no to it. Learning all of this gives us a variety of ways to communicate with the users and give an interactive experience for them. This would improve my skills as a web designer as being one would mean giving the users a great experience browsing your webpage.
Comments
Post a Comment