Heloo
HTML Documentations
Field Set
Mostly we like to grouping the value or the radio button or any others elemnt when it comes to form, we can use fieldset
Example
<fieldset>
<legend>What level ninja are you?</legend>
<input
id="newbie"
type="radio"
name="levels"
value="newbie"
/>
<label for="newbie">Newbie Kitten</label><br />
<input
id="intermediate"
type="radio"
name="levels"
value="intermediate"
/>
<label for="intermediate">Developing Student</label><br />
<input
id="master"
type="radio"
name="levels"
value="master"
/>
<label for="master">Master</label>
</fieldset>
Result
NODE JS Documentations
Switching Node version
We can switc between node version using another tool which is Node Version Manager(NVM
Installing NVM
There are some instruction using mac and linux but for windows we
can download exe file in this website
Install NVM On Windows
or you can read full documentation at
nvm github
After installing the nvm you can list all the node version like example bellow
then u can select version u need and install that version using this command line
nvm install 14.17.x
x mean for the highest available version
Switching Node using nvm
after long installation now we can use the nvm, please typenvm ls
then we can look at the installed node we had
select one of the version, i choose the latest one, wich mean 14.17.0 so we can use
nvm use 14.17.0
we will get to confirmation to install using command prompt, then the node changed !!!
Node JS Important command
We can create a file using a gitbash. The command will be
touch (filename) {optional} (format)
for example touch trycode.js
After we create the file, we can see it using inline text editor
vi, this will be the command vi (filename) for example
vi trycode.js
To insert code on editor vi we can type i, and insert the code we want
after finishing the code we can write the code using command esc and :w for write and
q for quit. Also, we can check the inside of the file by using command line that is cat (filename) for example
cat trycode.js
Another important command for node js are presented by table bellow
| Command | Explanation |
|---|---|
| .load | to call file inside the node commands |
| .save | to save file inside the directory that are used using node command line |
| .editor | to write file inside the file that are created |
| .global (with double tab) | it will give use the default variable that can be used |
before calling all command above u need to call node first in command line tools by type
node