Tutorial: Understanding HTML Block
Tutorial: Understanding HTML Block
HTML is the acronym of Hyper Text Markup Language. It is the base of a website. In JavaScript Block Editor app, we've provided block programming for HTML too.This tutorial lets you know how to use block specs for HTML.
This website is also made with JavaScript Block Editor app and we used block programming for HTML!
Prerequisites
➤JavaScript Block Editor app
Click to download this app
Tutorials:
Open this app and create a project. You will be redirected in a new screen like below.
Here, main is the main room of HTML. It cannot be deleted. When you want to run your project, click RUN. If you want to go to the bottom of specs, click 🔽. Click 🔼 for going to the top of block specs. Editable line is the line after which, spec should be added. For example, if you have 10 lines in your HTML and Editable line is 3; new line will be added in line number 4. And Editable line will be 4 after then. Click 🗃 for viewing and selecting Child Room. You can collapse it by clicking it once again. If you want to add Child Room, click it first and then click +ADD, name and confirm!
If you click GO TO JS, you will be redirected to JavaScript Editor from HTML Editor. Pencil in a circle is the storage of block specs. Click here to get all spec elements.
Let's start practically
Click on pencil. This will appear.
Add a ProgressBar.
For example, enter its id (unique identifier for element; here ProgressBar is an element) , value and maximum value.
Click on 🗃.
Click +ADD to add a child room.
Clidroom cr1 is added.
Add two elements here. We added an EditText and a Button.
Click 🗃 and then click main. You're in now main room.
Add element Horizontal Scroller and name its Child Room cr1.
Now RUN the project.
In first line, a 'ProgressBar with its value' appears. And in the second line, an EditText and a Button appear.
However, now go back and click ⏬ of line 1. Editable line is now 1 this means new spec will be added in line number 2. So let's we ad an element: CheckBox.
Wow! This CheckBox is added in line 2! Now RUN the project.
A CheckBox is shown after the ProgressBar in first line. Now click ❎ of line 1 to delete the ProgressBar. Okay, RUN now.
The ProgressBar has been deleted from here.
So developers, this was the primary tutorial of HTML Block for this app. We'll be coming soon with tutorials for every elements like TextView, Button, CheckBox etc.
Comments
Post a Comment