Inside Which HTML Element Do We Put The JavaScript

The script tag is used when we want to put a JavaScript code in an HTML file. The script is the HTML element tag used to insert a JavaScript code in an HTML file....

August 27, 2021 路 2 min 路 Coderslang Master

How to Link to a Specific Part of an HTML Page

Have you noticed in some web pages where you click the link in the table of contents or the navigation bar, it will scroll down to the specific part of the page?...

August 26, 2021 路 3 min 路 Coderslang Master

How to Add JavaScript to HTML

To add JavaScript to HTML files, you will use an HTML element tag called a script. A script tag is a tag that lets you insert JavaScript code in the HTML file....

August 17, 2021 路 2 min 路 Coderslang Master

How to Call JavaScript Function On Button Click in HTML

In this tutorial you鈥檒l learn how you can call a JavaScript function on button click in HTML with three easy-to-follow steps. Step 1: Create a JavaScript function The first thing to do is create a JavaScript function....

August 13, 2021 路 2 min 路 Coderslang Master

What does > mean in CSS

The greater than 鈥>鈥 sign in CSS means selecting the HTML elements that are the first direct descendant of the parent element but ignore the second, third, and other descendants. The greater than sign 鈥>鈥 is also known as the聽child combinators....

August 6, 2021 路 2 min 路 Coderslang Master

Where in an HTML document is the correct place to refer to an external style sheet

The correct place to refer to the external style sheet in an HTML document is inside the head section. The head section locates at the topmost part of the HTML document, and it鈥檚 where you add the external style sheet code to access the CSS file from which you can use it to apply the stylings to an HTML web page....

August 4, 2021 路 1 min 路 Coderslang Master

How to use div tag in HTML to divide the page

Learn how to divide the page in HTML using the div tag in 3 easy steps. Step 1: Add the div tags Let鈥檚 say you want to divide the page into three sections....

August 3, 2021 路 2 min 路 Coderslang Master

How to put text next to an image in HTML

Sometimes, you want to put text next to the image to display the information like a profile picture of the social media or service platform, a company鈥檚 team members, and many more....

August 2, 2021 路 3 min 路 Coderslang Master

How to center a table in HTML

In this short article, you will learn how to center a table in HTML. You will use the style attribute to make the table move to the center. Here鈥檚 a sample HTML table that we are going to use for this guide:...

July 30, 2021 路 2 min 路 Coderslang Master

What is `<tr>` in HTML

tr which stands for Table Row is an HTML element tag and is used to define a row of cells in a table. You use tr whenever you want to create a table on an HTML page....

July 8, 2021 路 2 min 路 Coderslang Master