Abhay Jajodia's profileExpert

Abhay Jajodia

Answered 166 questions


About

Designer by day, web developer by night, and a full-time tech + gaming nerd in between. I'm always learning, always curious — chasing life's bonus levels, secret achievements, and power-ups like it's one big epic quest.

Answered by Abhay Jajodia
Yasir Yousuf
last year
Yasircountry asked
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Good question! Web development is the process of creating and maintaining websites.

It involves several tasks, including

  1. Writing code to build the structure of a site using HTML

  2. Designing its appearance with CSS

  3. Adding interactivity with JavaScript

On a broader scale, web development can be divided into two parts:

  • Front-end development, which focuses on what users see and interact with (like layout and design)

  • Back-end development, which involves the server-side aspects and the database interactions that happen behind the scenes.

Let me know if you have more questions!

HTML
This question was asked as part of the Learn HTML course.
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

When you write <h1> hello <p1>hello world</p1></h1>, you'll be mixing valid HTML tags with invalid ones, which can cause unexpected behavior in your browser.

Firstly, <h1> is a valid HTML tag that defines the largest heading, commonly used for main titles or titles in a document. Tagging "hello" within the <h1> will appropriately make it appear as a large heading.

However, <p1> is not a valid HTML tag. The correct tag for paragraphs is <p>.

Browsers tend to be forgiving and may try to interpret the code as best as they can, often treating unknown tags like <p1> as just normal text:

  • The word "hello" will be shown as a large heading.

  • "hello world" might appear as plain text right after "hello", still within the heading tag without any paragraph styling.

If you intended to have a paragraph inside the heading, use <p> instead:

<h1> hello <p>hello world</p></h1>

But be careful, nesting a <p> inside an <h1> is not standard practice, and it might still lead to formatting confusion. Typically, paragraphs should stand alone or be placed within sections or divs, but not headings.

Hope this helps! Feel free to ask more questions if you’re curious about different HTML tags and their usage.

HTML
This question was asked as part of the Learn HTML course.
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi there! It sounds like you're encountering a common situation when HTML behaves in unexpected ways.

In HTML, every opening tag should ideally have a closing tag to ensure that browsers render the content correctly, just like this:

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

However, when you omit a closing tag like you've done here:

<h1>This is a heading
<p>This is a paragraph.</p>

browsers step in and try to "fix" the structure automatically. They'll assume where the ending tags should be, but this isn't always reliable and can result in unexpected outcomes, especially as your projects become more complex.

This automatic behavior might work similarly in your text editor like Visual Studio Code, but it’s not best practice. Therefore, always include closing tags to maintain clear and consistent HTML structure:

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

Remember, it'll help prevent your webpage from displaying incorrectly or "breaking" unexpected parts of your layout.

Hope this helps clear things up! If any more questions come up as you go further, feel free to ask. I'm here to help!

HTML
This question was asked as part of the Learn HTML course.
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

In SQL, when you use the NOT BETWEEN operator, it will filter out all values that fall within the given range, including the start and end numbers.

So, in the following example:

SELECT first_name, country, age  
FROM Customers  
WHERE age NOT BETWEEN 22 AND 28;

This query is filtering out customers whose ages are 22 through 28, not 23 through 27.

By using NOT BETWEEN 22 AND 28, it means ages 22, 23, 24, 25, 26, 27, and 28 will be excluded.

If your intention is to exclude just from 22 through 27, you'd phrase it like:

SELECT first_name, country, age  
FROM Customers  
WHERE age NOT BETWEEN 22 AND 27;

If you meant to exclude up to but not including 28, then the range should definitely stop at 27 for your query.

Hope this helps clear things up! Let me know if you have more questions.

SQL
This question was asked as part of the Learn SQL Basics course.
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

So, in Python, you don't need to use curly braces {} when printing a variable like this:

name = input("Enter your name: ")
print("Your name is", name)
    

That works because print() can take multiple things, separated by commas. It just puts spaces between them automatically, so you don't have to do anything fancy.

Now, curly braces do show up when you're using something like an f-string. That looks like this:

print(f"Your name is {name}")
    

In that case, the {name} is inside the string, and Python replaces it with the actual value of the name variable — but only because the string starts with an f.

So yeah, curly braces are just for special formatting stuff like f-strings. If you're just printing normally with commas, you don’t need them at all.

Python
This question was asked as part of the Getting started with Python course.
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

So when you see something like <input />, that little / just means the tag is self-closing — it doesn’t need an end tag like </input>.

But guess what? Starting with HTML5, you don’t even need the / anymore. You can just write:

<input><br> <br><br> <img src="photo.jpg">

And it works the same! Super simple. 👍

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