The Favorite Thing I Learned About HTML
The favorite thing I learned about in the HTML part of class was the images and videos that we could add to our HTML code. I really liked this because it adds a whole lot to the website and it was the first time it made the web page look actually different and unique with the images and videos. This also really helps to make the web page feel more alive by having images instead of just plain old words on the page. This also showed me how the images are different for each website, and how each website would interact and incorporate its images, for example, on some websites they would make it so you would see a higher quality of the picture once you clicked on it so the website would not perform worse trying to show a very high quality picture when the user might not be interested in it.
Here is the code sample of the first image and video I added in HTML:
<a href="../hobbies/bird-watching/index.html">
<img src="../images/Harambe.jfif" alt="A great gorilla" width="300">
</a>
<iframe width="300" height="300" src="https://www.youtube.com/embed/uBxRLw_YuSw" title="Spinning Gorilla" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
The Favorite Thing I Learned About CSS
The favorite thing I learned when we were learning CSS in class was the CSS Positioning. I really liked learning CSS positioning because of how much it helps in managing how the webpage looks like. This also helps in making many various interfaces for websites with unique designs with having various different positioning which you could change and position across the page.
The Favorite Thing I Learned About Java Script
The favorite hting I learned about in the Java Script part of class was the loops. This is because of the many applications which you coudl use loops for. One of my favorite things that I like to do using loops is using for loops within for loops. Another great thing about for loops that I liked is that you can use it with arrays to go through the array without the need to specify the length of the array and you just need to use ".length" at the end of the array to get the array length. I also liked the while loop as this is also very useful to have code repeat itself until a certain condition is true, for example, this could be used in passwords.
here is a snippet of a code sample of when I used a for loop within a function which checked if the user's answer was correct:
function check(answer,AnswerNumber) {
var QuestionNumber;
for(var i = 0; i<5; i++) {
if(AnswerNumber == UserAnswerList[i]) {
QuestionNumber = i;
}
}