Posts

Showing posts with the label Computer Programming

Which Programming Language To Learn First?

Image
Being called a programmer sounds cool. And to be called a programmer you need to learn a programming language or programming languages. But which programming language should you learn first to be called a 'Programmer'? Which Programming Language To Learn First? Before asking this question, you should be clear about which programming field you want to enter. For example, If you want to become a web developer then you should learn HTML, CSS & JavaScript, PHP, Python, etc programming languages. If you want to make games and become a Game Developer then you should C++,  if you want to make an android app learn Java, Kotlin, etc. If you are asking for programming in general like you just started programming and wanted to know the concept of programming then my recommendation is to learn C, Java, JavaScript, etc as your first programming language. If you asked me my first programming language, then it was C language. Back in 2018, I started learning the C language through the Int...

Is Web Development Dying In 2022?

Image
Web development is a work that involves the task to develop, create, edit a website. Web development has been popular since the birth of the Internet and it is never going away anytime soon. Is Web Development Dying In 2022? No, web development isn't dying in 2022 or anytime soon. In fact, the demand for web development and web developers is increasing day by day. Every company nowadays wants to build their business online and to do so these companies need web developers. Many new devices are coming into the market in different sizes and web developers are required to make the website responsive so that the website will look good on all different devices. Top companies in the world like Google, Microsoft, Facebook(Meta), Amazon, etc hire many web developers every year with high salary packages to maintain their business online. Web development is one of the fastest-growing jobs right now in the world. Unlike other jobs, no one can replace the web developer's job or it is not go...

How To Add Text Over An Image Using HTML and CSS?

Image
First of all create a <div class="box">...</div> in the HTML document. Then add this HTML code between <div class="box">...</div>. <div class="box">     <img src="image.png" alt="image">     <div class="center">Center Text</div>     <div class="top-left">Top-Left Text</div>     <div class="top-right">Top-Right Text</div>     <div class="bottom-right">Bottom-Right Text</div>     <div class="bottom-left">Bottom-Left Text</div> </div> Add this CSS code. .box {    position: relative;    color: rgb(255,255,255);  } .center{    position: absolute;    top: 50%;    left: 50%;    transform: translate(-50%,-50%); } .top-left{    position: absolute;    top: 10px;    left: 10px; } .top-right{    position: a...

What is Visual Studio Code and Its Uses?

Image
Visual Studio Code is a source code editor developed by Microsoft for Windows, MAC, and LINUX. It has many features that make it different from other text editors/source code editors. Those features are: Intellisense Visual Studio Code will automatically detect your code lines which help in coding and saving time. It automatically detects the syntax of the code when you enter even the first character of the code. Extension Visual Studio Code supports many extensions that help in making coding work smooth. You can install extensions like Live Server to see the output changing at the same time as changing source code, Prettier to format the document, Programming Language Extensions, etc Customization Visual Studio Code can be customizable as you want. You can change the theme, code style, etc, and other things in your Visual Studio Code Editor. Built-in-Git Visual Studio Code also supports built-in-git features which really helps in coding. Run and Debugging Visual Studio Code supports t...

How To Create a Fake Facebook Login Clone Using Only HTML and CSS?

Image
First of all these HTML elements into your HTML document. Copy the code From Our Github   <div><h1>Facebook</h1>         <p>Connect with friends and the world<br> around you on Facebook.</p>     </div>     <div class="form">         <form action="">        <div>         <input type="text" name="Username" id="Username" placeholder="Email or Phone Number">        </div>        <div>         <input type="password" name="Password" id="Password" placeholder="Password">        </div>        <div>         <input type="submit" value="Log ...

How Long Does It Take To Become A Front-end Web Developer?

Image
Well starting to learn web development is nice. You are adding valuable skills for yourself. But, how long does it take to become a front-end developer ? How Long Does It Take To Become a Front-end Web Developer? It depends upon your practice, effort, learning ability, and memory. If I give you a rough idea, it will take you 90 days (10 days HTML, 20 days CSS, 30 days JavaScript, 30 days Bootstrap, and creating projects) if you give time and effort to learning. For some genius beginner developers(maybe you), it might take just 60 days or even 30 days. If I share my personal experience, then it took me two months to complete my HTML, CSS, and JS courses. I used to give 2-3 hours a day to learn HTML, CSS, and JS. It took me 4 days(8+ hours learning time) to learn HTML, 6 days(12+ hours learning time) to learn CSS, and 20 days(50+ hours learning time) to learn JS. And yes I definitely took a break in between which took me 2 months to complete HTML, CSS, and JavaScript courses. Otherwise,...

How To Earn Money With Only HTML and CSS Knowledge?

Image
If you want to make money even if you know only HTML and CSS and still learning Web development then you can do one or all of these three works to make money while still learning Web Development. Start a YouTube Channel To Make Money You can start creating programming videos on YouTube. You can make tutorials, tips, and tricks to create some projects, and small websites using only HTML and CSS on YouTube. If you get a good amount of views on your YouTube channel then you can easily make $500-$1,000 or even more monthly even in your Web Development learning phase.   Start Blogging To Make Money If you find creating videos hard, then one thing you can do is start blogging. Buy a domain name, use WordPress, or simply use free resources like Blogger to create a blogging website and start posting your HTML and CSS tutorial, knowledge, tips, and tricks. If you want to know how to start blogging then you can go and search on YouTube about it. Same like YouTube if you get traff...

Why HTML Is Not A Programming Language?

Image
Many of us have seen HTML-related memes and information on the internet like learning HTML doesn't make you a programmer, HTML is not a programming language, etc. Are these allegations on HTML true? Let's find out. Why HTML is Not A Programming Language? Yes, HTML is not a programming language. It's a markup language that is used to structure the website. Yes, it's a language but not a programming language. Here are four reasons that don't make HTML a programming language: No Programming Logic in HTML If you know about programming logic then you can understand it and if you don't then try to understand common logic between us. In the same way, a computer program works under logic and since HTML doesn't do any logical task, we can't call it a programming language. It only structures the website. To make the website logical we use a programming language called JavaScript. No Data Modifying, Functions, and Variables in HTML Programming languages have functi...

5 Ways To Center a DIV Using CSS

Image
Here are five different ways to center a DIV using CSS. First of all, let's create a div in the document. <body>    <div></div> </body> Then, lets make this div visible by adding width: 200px; height: 100px; and background-color: black;. div{ width: 200px; height: 100px; background-color: black; } Now its time to center this div using these five ways: GRID FLEXBOX POSITION FLEX and MARGIN GRID and MARGIN Use GRID To Center a DIV In the parent element add display: flex; place-content: center; and height: 100vh; properties. Now your div is perfectly in the center using GRID property. //parent element body{ display: flex; place-content: center; height: 100vh; } Use FLEXBOX To Center a DIV In the parent element, add display: flex; justify-content: center; and  align-items: center;  and height: 100vh; properties. Now the DIV is again in the center. //parent element body{ display: flex;  justify-content: center; align-items: c...

Why Should You Create Programming Notebooks?

Image
Many people say writing, creating, and preparing notebooks is old fashion. We are digital now, we can store our text, document, and other files digitally, creating notebooks digitally as well. But, is there any use or pros to creating notebooks, especially for programmers/hackers whose whole career depends on digital mediums. What are the Advantages of Creating Programming Notebooks? There are several advantages of creating programming notebooks. They are: Record of your Programming Learning Journey You can keep a record of your programming learning journey. You can analyze how long did it take to learn this programming language, how long it took you to learn this part of programming,  etc. You Can Review What You Have Learned So Far in Programming You will have written notebook proof of what you have learned so far. You can check and review it and analyze what you have learned and what you have missed learning in programming. You Can Sell Your Notebooks to New Beginner Programmers...

How To Create A Trapezium Using HTML and CSS?

Image
STEP 1: Add <div class="trapezium"></div> in your HTML document in the <body> section. STEP 2: Add this CSS code. .trapezium{ border-width: 100px; border-style: solid; border-color: transparent transparent black transparent; width: 200px;  }   Output The border-width: 100px; property gives width to the border, border-s tyle: solid; makes the border surface area solid, and border-color: transparent transparent black transparent; make the top, left, right side border transparent and keep the bottom border black which creates a triangle. Then, the width: 200px; property extends it to make a trapezium or trapezoid.

How To Create A Parallelogram Using HTML and CSS?

Image
STEP 1: Add <div class="parallelogram"></div> into your HTML document inside <body> section. STEP 2: Add this CSS code. .parallelogram{   width: 250px;   height: 150px;   background-color: black;   transform: skew(-30deg);  } Output The width: 250px and height: 150px give width and height to the object. The background-color: black; make the object's background color black to make it visible. Then, the transform: skew(-30deg); property skew the object in X-axis by -30degree. And the parallelogram is created using HTML and CSS.

How To Create A Semi-circle Using Only HTML and CSS?

Image
STEP 1: Add a <div class="semi-circle"></div> in the body section of an HTML document. STEP 2: Go To your CSS file and add this code.  .semi-circle{  width: 150px;   height: 75px;   background-color: black;   border-radius: 100px 100px 0 0; } Output The width: 150px; and height: 75px; gives width and height and create a rectangle. Then, background-color: black; gives color to the background so that we can see the actual rectangle created. And the last one, border-radius: 100px 100px 0 0; , it create a rounded border on the top-left and top-right corner of  the rectangle. The two zeros in ( border-radius: 100px 100px 0 0 ; ) is for the border-radius for bottom-right and bottom-left and we kept it width 0 to make it look like a semi-circle.

How To Create A Triangle Using HTML and CSS?

Image
STEP 1: Add < div class = "triangle" ></ div > in the HTML document. STEP 2: Add this CSS code. .triangle{   position: absolute;  border-width: 50px;  border-style: solid;  border-color: transparent transparent black transparent;  }   OUTPUT  

Why To Learn C As Your First Programming Language?

Image
If you want to learn a programming language and come over to C language to learn as your first programming but don't know if you should learn it or not as your first programming language then here are 4 reasons that will help you decide if it should be your first programming language or not. C is Easy To Learn C programming language is easy to understand and learn for beginners. New programmers or beginners can easily get comfortable with progamming concepts by learning the C language. C is the Mother of All Programming Language C is one of the oldest programming languages and it contains all the basic and advanced concepts of programming in general. If you learn C as your first programming language, it will be easy for you to switch and learn other programming languages as you will have the basic concept of programming. After learning C, you can switch or migrate to other programming languages like C, C++, Java, JavaScript, etc. C is used To Develop System Level Apps C programming...

How To Insert CSS into an HTML document?

Image
There are three ways to insert CSS into an HTML document. They are: External CSS Internal CSS Inline CSS External CSS In external CSS you have to create a separate css file, for example, style.css and then link this file to html document using <link> tag inside <head> section of an HTML document. The code is <link rel="stylesheet" href="style.css"> syntax: /* <link rel="stylesheet" href="filename.css"> */ Internal CSS In internal CSS, CSS code is written inside the <style> tage inside <head> section of an HTML document. For example: <head>    <style>          body{        background-color: red;       font-family: arial;    </style> </head> Syntax /* <head>     <style>    -------------------------    -------CSS Code-------   --------------------------  ...

How To Insert JavaScript in HTML?

Image
There are two ways to Insert/Connect JavaScript to HTML documents. They are: Use External JavaScript You can create external JavaScript and link it to the HTML document. First of all, create a JavaScript file, for example, MyScript.js , and type all the JavaScript code you want. Then goto HTML document and inside <head> section add this code. <script src="MyScript.js"></script> Syntax: <script src="filename.js"></script> Use JavaScript inside the HTML document You can also type JavaScript code inside the HTML document using <script></script> tag inside <head> or <body> section. For example: <html> <head> </head> <body>  <button onclick="text()">Click</button>   <button onclick="date()">Date</button>   <p id="demo"></p>   <p id="date"></p>     <script>       function text(){   doc...

What is Language Processor and Its Types

Image
In the world of programming, a language processor is a vital tool that transforms code written in high-level programming languages into machine code, which a computer's hardware can understand and execute. High-level languages such as C, C++, JavaScript and Java are designed to be easily readable and writable by humans, but they require translation into machine code to function. This translation is handled by language processors, which come in three main types: compilers, interpreters, and assemblers. Types of Language Processors 1. Compiler What It Does: A compiler takes an entire program written in a high-level language and converts it into machine code all at once. How It Works: The source code is compiled into an object program (machine code), which can then be run by the computer. Pros: Speed: Since the entire program is compiled at once, the execution of the compiled code is generally faster than interpreted code. Op...

How To Create A Simple Navigation Bar Using Only HTML and CSS?

Image
STEP 1: Add a ul tag and inside it add li tag. Inside li tag add a tag with the Name. HTML Code <!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8">   <meta http-equiv="X-UA-Compatible" content="IE=edge">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <title>Document</title>   <link rel="stylesheet" href="style.css"> </head> <body>   <div class="header"><h1>SmartTechTip</h1></div> <ul>   <li><a href="">Home</a></li>   <li><a href="">HTML</a></li>   <li><a href="">CSS</a></li>   <li><a href="">JS</a></li>   <li><a href="">About</a></li> </ul> </div> </body> </html> STEP ...

How To Create a Fan Using Only HTML and CSS?

Image
STEP 1: Add <div class="fan"></div> inside the body section.   STEP 2: Add an image inside the div. <img src="fan.png" alt="fan"> Download Image( Click Here ) <!DOCTYPE html>         <html lang="en">          <head>          <meta charset="UTF-8" />          <meta http-equiv="X-UA-Compatible" content="IE=edge" />          <meta name="viewport" content="width=device-width, initial-scale=1.0" />          <link rel="stylesheet" href="style.css" />          <title>Fan</title>          </head>          <body>          <div class="fan">          <img src="fan...

Trending Posts

How to Create a Digital Clock with Date using HTML, CSS & JavaScript

How To Create A Semi-circle Using Only HTML and CSS?

How To Create A Parallelogram Using HTML and CSS?

How To Create A Magic 8 Ball Using HTML, CSS, and JavaScript?

How To Create A Trapezium Using HTML and CSS?

The Secret to Flawless Web Design: Mastering Responsive Layouts

Why Should You Create Programming Notebooks?

10 AI Coding Tools That Actually Made Me a Worse Programmer (2025 Edition)

What Are The Use of Function Keys F1 to F12 on The Keyboard?