Sec S19W1 || Creation of an Interactive Website (Basic concepts of HTML5)

in #burnsteem2514 hours ago

Hello guys,
Its a pleasure to be part of this week's engagement challenge. I'm a computer science student and I love programming so much. It is great to see that this team aims at seeing everyone as a programmer soonest.


PhotoCollage_1720628774607.png
Background Image Edited on photo college

Quiz

  1. B <h1>
  2. B <p>
  3. B <img>
  4. B <color>
  5. A <link rel="stylesheet" href="styles.css">

Theoretical Questions

mine.PNG

What is the function of the < meta > element in the < head > of an HTML document? Give an example of use.

mine.PNG

The function of the <meta> element in the <head> of an HTML document is to provide information about the said document to user of the document as well as browser and search engine. This implies that <meta>
element in the <head> has information about the person who has the document and also has information that gives the browser access to the said page.

Example of <meta> element in the <head> of an HTML document

<meta charset="UTF-8"> (Character encoding tag)

mine.PNG

What are the main attributes used with the < input > element to create text fields, radio buttons, and check boxes in an HTML form? Give an example for each.

mine.PNG

For text field

<input type="text" id="username" name="username">

IMG_20240710_170810.jpg

For radio button

<input type="radio" id="Steem" name="Steemit" value="STEEM">

IMG_20240710_171209.jpg

Check boxes

<input type="checkbox" id="Tick" name="Good" value="V.Good">

IMG_20240710_171358.jpg

mine.PNG

Explain the difference between < ul > and < ol > elements. When would you use each of them?

mine.PNG

<ul> stands for an unordered list. This includes bullets i.e small black dot defaultly. It is used when itemizing a list of things. This doesn't show which is most preferred.

<ol> stands for an ordered list. This include numbers from 1-infinity. It is also use to list things one after the order usually in their order of priority or the first come first serve theory.

mine.PNG

What is the purpose of the < form > element in HTML? What are the important attributes to include in the < form > element to specify the method and action? Give an example.

mine.PNG

The <form> element in HTML is the command which is used to create a form for users input using the HTML code. It stands as a container which houses among other things text field, check boxes, radio button etc.

<form action"https://steemit.com/@simonnwigwe/posts">
<input type="text" id="fname" name="fname">
</form>

IMG_20240710_170810.jpg

This form has been linked to my Steemit profile page.

attributes on the other hand is use to specify the HTTP command you are using to send the command to the web page which can be the POST command or the GET command

action here talks about where the form will be submitted or sent to when we click on the submit button.

mine.PNG

What is a < fieldset > tag and what is its role in an HTML form? Include an example in your answer.

mine.PNG

<fieldset> element is a command in HTML that is used to group related things in a form. This means that when you are creating a form and you want a few things to be gathered together you will have to use the
<fieldset> command.

Examples

<form action="https://steemit.com/@simonnwigwe/posts">

This form has been linked to my Steemit profile page.

<fieldset>
<legend>Details:</legend> <label for="uname">username:</label>
<input type="text" id="username" name="username"><br><br>
<label for="password">password:</label>
<input type="text" id="password" name="password"><br><br>
<input type="submit" value="Send">
</fieldset>
</form>

IMG_20240710_152656.jpg

Practical Questions

Here in this section, I was able to make a simple Registration with a little in-line CSS code. I didn't want to create a separate file for it because I know we will go into that in more details soonest. So the screenshot below are the screenshot of different views of the form created and their source code.

simon4.PNG
Completed form

IMG_20240710_151534.png
Dropdown menu

IMG_20240710_151437.png
Date selection menu

simon.PNG
source code line 1-22

simon2.PNG
source code line 20-40

simon3.PNG
Source code line 38-59

It is important to mention here that I have added comments in the source code from the visual studio so that anyone reading through my post or going through the code will know and understand the various command used and their line of codes.

mine.PNG

Conclusion

mine.PNG

I have written and shared screenshot of the form I created from the class. It was a wonderful experience for me because it reminds me of my school days when we had to run programs using C++, C# and Java. I did HTML while doing my IT but later focused on Python for my project. I'm happy to go back to this again as it looks as though it was just yesterday I left the classroom.

I want to finally invite @solaymann, @steemdoctor1 and @suboohi to also join the contest in this community today.

Posted using SteemPro Mobile

Sort:  
Loading...

Upvoted! Thank you for supporting witness @jswit.

Upvoted. Thank You for sending some of your rewards to @null. It will make Steem stronger.

Coin Marketplace

STEEM 0.19
TRX 0.13
JST 0.029
BTC 58000.61
ETH 3105.20
USDT 1.00
SBD 2.42