You only need internet to view a website. Let’s suppose you are a marketer and you need traffic to your site. For it to happen, your website has to be captivating, and enjoyable to read. A computer language allows web creation and in this case, the computer language used is HTML. It is a powerful, easy to learn language that is user-friendly and constantly updates to meet the demands of today’s vast internet user base.
HTML, which means Hyper Text Mark-up Language, allows anyone to go to anywhere on the web by clicking on the given links. The hyperactive text simply means the method through which a user clicks on hyperlinks to move onto another page. A mark-up, on the other hand, is text specially marked as italicizing, made possible by HTML tags inside that text.
Like so many other programming languages, HTML uses a coding language. The writer types the short HTML codes as tags into a text file. The written text is saved as an HTML file, and can be viewed from any chosen browser. The browser translates the text into a form visible to readers. To create the kind of HTML pages needed, anything from a graphical editor to a text editor can do the job perfectly.
The above code shows the attribute type used for specifying the scripting language followed in writing the embedded statements within <script> tags.
Inclusion of the <script> tags is either in the section head of a web page, or in the section body. Specifying multiple <script> blocks in a single web page is valid. Executing of multiple scripts occurs from the top to the bottom.
For instance, you have an HTML-page saved as, "index.html" (referred to as index_static.html in this example).
<! DOCTYPE HTML>
<h1> Hello !!! </h1>
document.write(" <h1> Hello !!! <\/h1>");
Now, your new dynamic version of the static_index.html looks like this:
Once again, open the initial index_dynamic.html on your browser and check the web page.
The last example is: take a document containing an image1 at the initial time of loading the page. Image1 changes to image2 after a click by the user. This is a demonstration of dynamism that indicates Dynamic HTML (DHTML).
The example below explains it more:
<img src= “image1.jpg” id=”image”/>
Content document changes easily with the interactions of the user.
Content document changes after a specific time interval and on browser events that are specific.
- Allows for movement of old elements to newer positions
- Makes elements disappear and reappear, depending on your needs
- Allows the background and foreground colors to change
- Changes the properties of all the font elements
- Helps to change the contents of all the elements
- Oversees the overlapping of all the stack order elements
- Allows easier dragging and dropping of elements to any place in the browser window
Read more about how to make HTML dynamic, and tell a friend about this article.