Ask Programiz - Human Support for Coding Beginners

Explore questions from fellow beginners answered by our human experts. Have some doubts about coding fundamentals? Enroll in our course and get personalized help right within your lessons.

  • All
  • Python
  • C
  • Java
  • CPP
  • SQL
  • JS
  • HTML
  • CSS
naruto
last month
Narutocountry asked
Apekchhya Shrestha
Expert
2 weeks ago

A programming language is just a way for us to give instructions to a computer. It's like learning a new language but instead of talking to people, you're telling the computer what you want it to do.

Different programming languages (like Python, Java, C++) have different styles, and they all help you build things like apps, games, websites, and more.

You're doing great asking these questions, keep them coming!

HTML
This question was asked as part of the Learn HTML course.
Dongmo Steve
last month
Dongmocountry asked
Apekchhya Shrestha
Expert
2 weeks ago

Hi there! Linking pages in HTML is a fundamental skill that helps you create navigation between different web pages.

To link pages in HTML, you'll use the tag (known as the anchor tag). Here is how you can do it:

Programiz PRO

You can also link to another web page within the same project:

About Us

In this case, about.html is a page that's located in the same directory as the current document.

In the upcoming chapters, we will cover more of these in detail.

Feel free to ask if you have more questions or need further clarification.

HTML
This question was asked as part of the Learn HTML course.
Kelish Rai
Expert
last month
Kelish Rai answered

In HTML, the slash (/) in a tag indicates that it is the closing tag for an element. This is required because HTML uses pairs of tags to define where an element starts and ends.

For example,

This is a paragraph.

Here,

marks the start of the paragraph, and

marks the end. The content in between these tags—This is a paragraph.—is defined as a paragraph.

Without the closing

tag, HTML wouldn't know where the paragraph ends, which could cause formatting issues or incorrect rendering.

Hope this clears things up. Let me know if you have more questions.

HTML
This question was asked as part of the Learn HTML course.
Kelish Rai
Expert
2 weeks ago
Kelish Rai answered

HTML is called a markup language because it’s mainly used to structure and present content on a webpage, not to perform logic or calculations like a programming language does.

For example, HTML lets you define elements like headings, paragraphs, images, and links, but it can’t make decisions, loop, or perform calculations—things you would typically expect from a programming language like JavaScript, Python, or C++.

In HTML, you might write:

Welcome to my website!

This is a simple paragraph.

Visit Example

This tells the browser what to display and how to organize it, but there’s no logic like "if this happens, then do that".

In contrast, in a programming language like JavaScript, you could write:

let age = 18;
if (age >= 18) {
    console.log("You are an adult.");
}

Here, the code makes a decision based on the value of age, which HTML alone can't do.

HTML
This question was asked as part of the Learn HTML course.
pratik tidke
PRO
2 months ago
Pratikcountry asked
Kelish Rai
Expert
2 months ago
Kelish Rai answered

In HTML, metadata refers to information about the webpage that isn't visible to users directly, but it provides important details to the browser and search engines.

Some common types of metadata include things like the page's title, description, keywords, author, and character encoding.

Metadata is usually placed inside the section of the HTML document, like this:


    
    
    
    
    My Webpage

Since you're just getting started, you don't need to focus on metadata much. As you continue your web development journey, you'll gradually learn more about it and how it can help with SEO and other aspects of web development.

Hope this clears things up. Let me know if you have any confusion.

HTML
This question was asked as part of the Learn HTML course.
Kelish Rai
Expert
2 weeks ago
Kelish Rai answered

When working on a real project, you might organize your files in a structured way using folders inside other folders. This is what we mean by a nested directory structure.

For example:

website   
│── home  
│   │── index.html
│   │── images  
│   │   │── banner.png 

Here, banner.png is inside the images folder, which is inside the home folder, making it a nested directory structure.

Since index.html is in the home folder, you’d reference the image like this:

This tells the browser to look inside the images folder, which is in the same directory as index.html, to find banner.png.

HTML
This question was asked as part of the Learn HTML course.
Kelish Rai
Expert
2 weeks ago
Kelish Rai answered

When working on a real project, you might organize your files like this:

website
│── home
│   │── index.html
│   │── banner.png

Here, website is the root folder, and it contains another folder called home. Inside home, both index.html and banner.png are stored in the same location.

When we say "the image is in the same directory as the HTML file", we mean that both files exist within the same folder.

Now, inside index.html, you can easily reference banner.png like this:

This tells the browser to look for banner.png in the same folder as index.html.

HTML
This question was asked as part of the Learn HTML course.
S
3 months ago
Selmacountry asked
Kelish Rai
Expert
2 weeks ago
Kelish Rai answered

The importance of comments depends on whether you (or someone else) will need to read your code again in the future—which is almost always the case in real-world programming.

If you're working on a project with others, comments make it much easier for teammates to understand your code’s purpose and logic. Even if you're working alone, comments help you remember why you wrote something a certain way—especially if you revisit the code weeks or months later.

When to use comments:

  • To explain why something is done (not just what is done—that should be clear from good code and variable names).

  • To clarify complex logic or non-obvious decisions.

  • To mark sections of code like TODOs.

Note: Avoid over-commenting. Good code should be readable on its own, and excessive comments can clutter it. Think of comments as helpful guideposts, not a substitute for clear code.

HTML
This question was asked as part of the Learn HTML course.
S
3 months ago
Selmacountry asked
Abhilekh Gautam
Expert
3 months ago

No, you don’t have to memorize all the HTML tags. HTML is a beginner-friendly language, and over time, you’ll naturally become familiar with the most commonly used tags as you practice and build projects.

Let me know if you have any more questions, I’m happy to help!

HTML
This question was asked as part of the Learn HTML course.