Category: Programming

  • What is Bootstrap? Learn From Basic with Examples

    What is Bootstrap? Learn From Basic with Examples

    Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. with bootstrap, you can design a responsive template faster. you don’t need to code a lot of CSS coding because bootstrap itself has CSS coding, you need to call its class name. if you want to design a template so simply include CSS and JS links of bootstrap into your HTML file. bootstrap makes your work easy you can design a template for Tablet, mobile, and PC. as you know in the 21st-century people are using the device more than Computer they check everything in a device so you need to design responsive websites. to increase viewers on your websites.

    In this article, you will learn how to start with a bootstrap framework. web designers and web developers should know bootstrap because they need it during his projects. you can’t develop any website without its responsive mode if your website is not designed in a responsive mode so think that it’s useless. so let’s start

    What is HTML5? With full Definition, Tags, and Example 5 Best HTML Editor in 2019

    What you will learn?

    1. History
    2. Download
    3. Contents
    4. Layouts
    5. Components
    6. Start with Bootstrap
    7. First Project with Bootstrap

    1. Bootstrap History:

    Mark Otto and Jacob Thornton developed Bootstrap at Twitter as a means of improving the consistency of tools used on the site and reducing maintenance. The software was formerly known as Twitter Blueprint and is sometimes referred to as Twitter Bootstrap.

    2. Download Bootstrap:

    you can download the bootstrap from three ways in your PC.

    • npm
    • CDN
    • Source

    npm:

    install Bootstrap in your Node.js powered apps with the npm package:

    $ npm install bootstrap

    it will install all bootstrap files including CSS and JS file. just you need to run the above code.

    CDN:

    if you don’t want to download bootstrap file so simply insert CDN link on your projects

    <!– Latest compiled and minified CSS –>
    <link rel=”stylesheet”href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”>

    <!– jQuery library –>
    <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script>

    <!– Latest compiled JavaScript –>
    <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js”></script>
    include this links inside <html> -> <head> links </head>.

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title>Bootstrap links</title>
    <meta charset=”utf-8″>
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>
    <link rel=”stylesheet”href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”>
    <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script>
    <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js”></script>
    </head>
    <body>

    Source:

    you can download the bootstrap source from this link Download Bootstrap it includes all files of bootstrap that you will need during your projects. so include the links on your project that you need.

    What is the PHP Language? and How to start with the basic code of PHP?

    3. Bootstrap Contents:

    once you download bootstrap then unzip the compressed folder then finally you will see these files.

    bootstrap/
    ├── css/
    │   ├── bootstrap-grid.css
    │   ├── bootstrap-grid.css.map
    │   ├── bootstrap-grid.min.css
    │   ├── bootstrap-grid.min.css.map
    │   ├── bootstrap-reboot.css
    │   ├── bootstrap-reboot.css.map
    │   ├── bootstrap-reboot.min.css
    │   ├── bootstrap-reboot.min.css.map
    │   ├── bootstrap.css
    │   ├── bootstrap.css.map
    │   ├── bootstrap.min.css
    │   └── bootstrap.min.css.map
    └── js/
        ├── bootstrap.bundle.js
        ├── bootstrap.bundle.js.map
        ├── bootstrap.bundle.min.js
        ├── bootstrap.bundle.min.js.map
        ├── bootstrap.js
        ├── bootstrap.js.map
        ├── bootstrap.min.js
        └── bootstrap.min.js.map 

    these are those files that simply used the most and each file works different and it has a different class name. include it on your project file and call its class name. remember bootstrap css won’t work without bootstrap js you have to include css and js links both.

    What is CSS? Cascading StyleSheet With Full Details and Examples

    Bootstrap Supports Browsers:

    bootstrap support various browsers which are Chrome, Firefox, Safari, Edge, Explorer, IOS, Andriod, and Opera. you can run your website in these browsers you won,t face any kind of problems because bootstrap supports these browsers.

    4. Bootstrap Layouts:

    In here you will learn about bootstrap layouts as it has different layouts here are the details.

    1. Grid System:

    as you know bootstrap makes our work often easy and it has a different grid system (col system) which you need the most during your project. and those grids are responsive you don’t need to use media queries for them. and there are five total tiers (xs, sm, md, lg, and xl).

    here is the usage of the grid.

    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    <div class=”col-lg-1″>
    <!– content –>
    </div>
    as we have 12 grid in bootsrap here is the output.
    grid system
    <div class=”col-lg-3″>
    <!– content –>
    </div>
    <div class=”col-lg-3″>
    <!– content –>
    </div>
    <div class=”col-lg-3″>
    <!– content –>
    </div>
    <div class=”col-lg-3″>
    <!– content –>
    </div>

    col-4

    <div class=”col-lg-4 col-md-4 col-sm-6″>
    <!– content –>
    </div>
    <div class=”col-lg-4 col-md-4 col-sm-6″>
    <!– content –>
    </div>
    <div class=”col-lg-4 col-md-4 col-sm-6″>
    <!– content –>
    </div>
    col-4
    in the last example you see 3 different grid value as the first one is col-lg-4 it is used for the large screen. second value as you see col-md-4 it is used for medium screen and third value you see col-sm-6 it is used for the small screen.

    2. Container:

    Web designer and web developer mostly use the container for their contents. as you know the width of a page is 100%. so while you use the container so your content gets space of 80%. if you use 100% width so your content looks bad in a browser so you need to give space from left and right side of your content in order to look nice. here is an example of a container and how to call container class.

    <div class=”container”>
    <!– content –>
    </div>
    here is the result.
    container imgor use .container-fluid for full width here is the example.
    <div class=”container-fluid”>
    <!– content –>
    </div>
    here is the output of container-fluid
    container-fluidso this was about the bootstrap container and container-fluid. programmer virtually use this class for his section. because it makes the section or content look nice.

    3. Bootstrap Breakpoints:

    as bootstrap developed for mobile, tablet, and Smartphones. so here are media queries which are most useful for a responsive mode. through media queries, you can handle the layouts in the minimum viewport and make your content in responsive mode also.

    Bootstrap primarily uses the following media queries range or breakpoint in our source.

    // Extra small devices (portrait phones, less than 576px)
    // No media query for `xs` since this is the default in Bootstrap
    
    // Small devices (landscape phones, 576px and up)
    @media (min-width: 576px) { ... }
    
    // Medium devices (tablets, 768px and up)
    @media (min-width: 768px) { ... }
    
    // Large devices (desktops, 992px and up)
    @media (min-width: 992px) { ... }
    
    // Extra large devices (large desktops, 1200px and up)
    @media (min-width: 1200px) { ... }

    you can manage your layout viewport through this media queries range as given above.

    5. Components:

    Bootstrap has its component with a class name.  it has a different component for various layout or various styles. you can use its component on your project by calling its class name. here is some example of the bootstrap component

    1. Alert:

    Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

    Example:

    you can use an alert for any length of text it is used with button handle mostly. you can call its class name by typing .alert-danger . and it has eight alert class.

    now how to use a badge with content. here is the example.

    <h1>Example heading <span class=”badge badge-danger”>New</span></h1>
    <h2>Example heading <spanclass=”badge badge-danger”>New</span></h2>
    <h3>Example heading <spanclass=”badge badge-danger”>New</span></h3>
    <h4>Example heading <spanclass=”badge badge-danger”>New</span></h4>
    <h5>Example heading <spanclass=”badge badge-danger”>New</span></h5>
    <h6>Example heading <spanclass=”badge badge-danger”>New</span></h6>
    badge example

    3. Button:

    Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.

    Example:

    <button type=”button” class=”btn btn-primary”>Primary</button>
    <button type=”button” class=”btn btn-secondary”>Secondary</button>
    <button type=”button” class=”btn btn-success”>Success</button>
    <button type=”button” class=”btn btn-danger”>Danger</button>
    <button type=”button” class=”btn btn-warning”>Warning</button>
    <button type=”button” class=”btn btn-info”>Info</button>
    <button type=”button” class=”btn btn-light”>Light</button>
    <button type=”button” class=”btn btn-dark”>Dark</button>
    <button type=”button” class=”btn btn-link”>Link</button>
    button example

    4. Form:

    Examples and usage guidelines for form control styles, layout options, and custom components for creating a wide variety of forms.

    Example:

    <form>
    <div class=”form-group”>
    <label for=”exampleInputEmail1″>Email address</label>
    <input type=”email” class=”form-control” id=”exampleInputEmail1″ aria-describedby=”email Help” placeholder=”Enter email”>
    <small id=”email Help “class=”form-text text-muted”>We’ll never share your email with anyone else.</small>
    </div>
    <div class=”form-group”>
    <label for=”exampleInputPassword1″>Password</label>
    <input type=”password” class=”form-control” id=”exampleInputPassword1″ placeholder=”Password”>
    </div>
    <div class=”form-group form-check”>
    <input type=”checkbox” class=”form-check-input” id=”exampleCheck1″>
    <label class=”form-check-label” for=”exampleCheck1″>Check me out</label>
    </div>
    <button type=”submit”class=”btn btn-primary”>Submit</button>
    </form>
    form
    I think this much example is enough for a bootstrap component. hope you get it well.

    6. How to Start With Bootstrap?

    now you get somehow about bootstrap. so here, you will get how to start with bootstrap. before starting with it you need to have bootstrap in your PC if you don’t have to go to above on heading 2 and download it on your PC. then you need to create a folder on your Desktop or anywhere you want. (read it carefully) then create 2 folders one for CSS and one for JS  and one html file as index.html. after creating your folder and downloading bootstrap on your PC, then put bootstrap css file in your CSS folder and bootstrap js file in your JS folder. then open the folder with your favorite html editor.

    now you opened your folder in any IDE then include bootstrap css and js file on your html file.

    start bootstrap

    one thing you can include your js file in <head> tag also or you can include it at the last before <body> tag also it’s your wish. but if you include it at the last so it is good. so finally your folder is ready to create the first project let’s start.

    7. First Project with Bootstrap:

    let’s do our first project with bootstrap. here I will do a simple bootstrap project for you.

    HTML code

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <meta charset=”UTF-8″>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
    <meta http-equiv=”X-UA-Compatible”content=”ie=edge”>
    <title>Using Container</title>
    <link rel=”stylesheet” href=”css/bootstrap.min.css”>
    <link rel=”stylesheet” href=”css/style.css”>
    </head>
    <body>
    <div id=”project”>
    <div class=”container”>
    <div class=”project-header text-center”>
    <h2 class=”badge badge-success”>First Project</h2>
    <p class=”text-info”>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quis, labore!</p>
    </div>
    <div class=”project-content”>
    <div class=”row”>
    <div class=”col-lg-6 col-md-6 col-sm-12″>
    <div class=”project-box”>
    <h1 class=”text-success”>Hello viewer <span class=”badge badge-success”>thank for view</span></h1>
    <p style=”color: #918f8f”>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Expedita rerum neque veniam ipsum quis mollitia excepturi dolorum dolorem explicabo voluptatem!</p>
    <p style=”color: #918f8f”>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Expedita rerum neque veniam ipsum quis mollitia excepturi dolorum dolorem explicabo voluptatem!</p>
    <button class=”btn btn-success”>Get Start</button>
    <button class=”btn btn-primary”>Get Start</button>
    </div>
    </div>
    <div class=”col-lg-6 col-md-6 col-sm-12″>
    <img src=”contact.png” alt=”image”>
    </div>
    </div>
    </div>
    </div>
    </div>
    <script src=”js/bootstrap.min.js”></script>
    <script src=”js/script.js”></script>
    </body>
    </html>
    CSS code
    body{
    background: #ccc;
    }
    .container{
    margin-top: 20px;
    background: #fff;
    padding-top: 20px ;
    padding-bottom: 40px ;
    border-radius: 10px;
    }
    .project-content button{
    margin-top: 20px;
    }
    .project-content img{
    width: 100%;
    height: 300px;
    }
    .project-box{
    margin-top: 50px;
    }
    project
    our project has done you can see the output in the browser. in the above, there is the code file of html and css if you want to try it yourself so copy html and css code from here.

    Summary:

    In this article, you learned about Bootstrap. you learned about its history and how to do download it on our PC. then you learned about its contents and layout as you learned about different layouts. after that, you learned about its component with its example and explanation. then at the last, you learned how to start and create our first project with bootstrap class and its links.

  • What is Visual Studio Code? VS Code Details, Tips and Tricks

    What is Visual Studio Code? VS Code Details, Tips and Tricks

    Visual Studio Code was developed by Microsoft for Window, Linux and Mac. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. and it’s also customized for the user to change theme colour, keyboard shortcut, and preference. it’s free and open source and it supports a number of programming languages like C#, Python, C, C++, HTML,  and many more. VS Code is one of the best HTML Editor in 2019, which is handy in programming life. its lightweight and has lots of features. in VS Code each Language has its own features and Extension if you know about an extension so you can easily install them because it will make easy for you to create your project and it will be transparent. and one cool feature it has that you can open it through command just open cmd or Git Bash and write code . plus press enter button and it will open Visual Studio Code for you its so easy way and quick way.

    we have lots of IDE like Sublime Text, Notepad++, Atom and many more although each of them is good in its place each of them has good features and useful features. if we compare it with VS Code so they are not good as much as VS Code is good. if we ask from a programmer that which IDE you are using or which IDE I should use so I know 100% that they will give you VS Code option. one thing that I will suggest you if you are a programmer or you want to start coding so use VS Code and you can download it from here.

    What is Sublime Text Editor? free download and software reviews 5 Best HTML Editor in 2019

    Learn Step by Step about VS Code

    1. Download Visual Studio Code
    2. Install VS Code on PC
    3. Open Visual Studio Code
    4. Start with Visual Studio Code
    5. Keyboard Shortcut reference
    6. New updates
    7. History
    8. Features
    9. Extensions

    Download Visual Studio Code:

     Visual Studio Code for Windows      Visual Studio Code for Mac 

    How to Install VS Code on PC?

    after downloading VS Code setup so now let’s install it on PC. first, go to your PC and open Download Folder and find the VS Code setup. if you find it so double-click on the setup and follow the steps.

    after you open the setup then click on Next button.

    screenshot1

    then accept the agreement and click on Next button.

    screenshot2

    then set its path where you want and click on Next button

    screenshot3

    if you don’t want to create a start menu folder so leave the rectangle empty and click on Next button

    screenshot4

    then click on Next button

    screenshot5

    now the installation is ready, click on the Install button to install VS Code on your PC.

    screenshot6

    screenshot7

    finally, VS Code installed successfully on your PC. click on Finish button.

    screenshot8

    now you have VS Code on your PC. your installation is done successfully and ready to open.

    Brackets | A modern html editor for Programmers to code Notepad++ free download and software reviews

    How to Open Visual Studio Code?

    you can open Visual Studio Code in three ways.

    1. Type (win+r) and write cmd and click on the ok button or use Git Bash and write code . and press enter button.screenshot cmdopen vs code
    2. Click on (win) button and type Visual Studio Code and click on it.
    3. Go to your Desktop and find VS Code icon and click on it.

    How to start with Visual Studio Code?

    while you open VS Code so at the first you need to know about its menu that is located on the top of the page. as we have

    • File
    • Edit
    • Selection
    • View
    • Go
    • Debug
    • Terminal
    • Help

    File Menu:

    you can create a new file and new window. and you can open file and folder from your Desktop if you have in the case. in the file menu, you can save your current project and you can do many more things.

    Edit Menu:

    In the edit menu, we have a various option as we can cut, copy and paste our selected text. and we can undo and redo our work if we want, so in this menu, we have many more options too.

    Selection Menu:

    These menus are so transparent because it has a description like in this menu we can select our text, line and whole content.

     View Menu:

    In this menu, you can view to mistake, errors, debug and you can search for extension and many more.

    Go Menu:

    with this menu, you can switch to your next file and you can go to next file, folder, and symbol in the file.

    Debug Menu:

    you can easily start and stop debugging with help of this menu.

    Terminal Menu:

    as we have cmd, Git Bash etc, so like them VS Code has its own command by the name of a terminal you don’t need to use cmd or Git Bash because VS Code has a terminal in here you can use it in place of cmd.

    Help Menu:

    Every IDE has this menu so if you need any kind of help so go to this menu.

    Visual Studio Code Keyboard Shortcut reference:

    like other IDE VS Code also provide you with the keyboard shortcut. you can easily access any file using the keyboard shortcut. and you can customize keyboard shortcut yourself too. Go to > file menu > Preferences > keyboard shortcut. here is the keyboard shortcut in case if you want to change keyboard shortcut so double-click on the keyboard shortcut and give keyboard shortcut from your wish,

    keyboard

    Visual Studio Code new updates:

    VS Code is updated on October 2018 and the new version is 1.29. so here are the new updates, tools, and features that added to VS Code. you have to know about new features of VS Code which are below here.

    The release notes are arranged in the following sections related to VS Code focus areas. Here are some further updates:

    • Workbench – Platform specific end-of-line characters, highlight modified file tabs.
    • Integrated Terminal – Split terminal cwd options, Cmd+Backspace to delete to start of the line.
    • Languages – Display CSS Specificity on hover, handle unknown CSS properties.
    • Debugging – Multiple debug consoles, starting with a stop on entry, style console.log messages.
    • Extension Authoring – Active terminal API, more control over custom views.

    Visual Studio Code History:

    VS Code was announced on April 29, 2015, by Microsoft at the 2015 Build conference. A Preview build was released shortly thereafter. and on November 18, 2015, Visual Studio Code was released under the MIT License and its source code posted to GitHub. Extension support was also announced as now if we see it have lots of extensions that are so handy. and finally, on April 14, 2016, Visual Studio Code graduated the public preview stage and was released to the web.

    Visual Studio Code Features:

    VS Code is an open source code editor. and it has many features for a user which make easy for them to start with there project. in VS Code we can do with any language program because each of them has its own extensions and features. we don’t need to download from outside of IDE although it has inside of it. just you need to know about them.

    here is some programming language that VS Code support.

    C, C++, C#, Java, HTML, Javascript, Python, Go, CSS, PHP, Swift, Typescript, JSON, LESS, Ruby, SCSS, SQL, XML, YAML, Perl, Visual Basic and some others language.

    In above all programming language is affordable and supportable in VS Code. you can use it and it has its feature.

    Visual Studio Code Extensions:

    as others IDE has an extension for each programming language so here VS Code has also extensions for each language and we can easily install it in VS Code. An extension is so helpful for a programmer and it makes your syntax more readable and you can code shortly too. like if you want to start with HTML code so you don’t need to code all the syntax just you need to type ! and press enter button so it will automatically create HTML syntax. so that why extension good for a programmer.

    you can find an extension form left menu. you will see 5 menus and the last one is extension menu click on it and search your extension name then install it. once your extension installed then it will give you the information on how to use and how to apply.

    I hope you learn something from this Article but again if you have any confusion so please feel free to let me know.

     

  • What is CSS? Cascading StyleSheet With Full Details and Examples

    What is CSS? Cascading StyleSheet With Full Details and Examples

    CSS stands for Cascading StyleSheet, and it is a language which uses with HTML. it gives style to HTML tag. we can’t design website or web pages only with HTML but besides that, we have CSS which is the most important and popular language. CSS gives style or design your page in the way you want, you can style your content or section in any way like for example we have a building a new building without style and design which is simple so now we want to give style so we use a different material that it looks beautiful, so web pages is the same we build web page with HTML and we give style with Cascading StyleSheet.

    Cascading StyleSheet is the first technology after HTML, you need to learn CSS after you learned HTML because HTML is used to define the structure of your content and CSS is used to style your content. for example, in we have some HTML tag like h1, p, font, img and many more so what we will do that we will give style to tag with help of CSS, the Cascading StyleSheet give style to your HTML tag.

    What is HTML5? With full Definition, Tags, and Example 5 Best HTML Editor in 2019

    How many usage CSS have?

    In Cascading StyleSheet we have 3 usages like.

    1. Inline CSS
    2. Internal CSS
    3. External CSS

    1. Inline StyleSheet:

    An inline style may be used to apply a unique style for a single element. for example.

    <h1 style=”color:green”>Hello Viewer</h1>

    look to the bold text it is an inline style we have an h1 tag and now let’s give a green color to the tag first write style then give the equal = sign and start double colon or single colon and then give property name then semicolon and then give property value and close double colon or single colon. this is the way to use inline style and give style to your content.

    inline css

    2. Internal StyleSheet:

    An internal style sheet may be used if one single page has a unique style.

    Internal styles are defined within the <style> element, inside the <head> section of an HTML page:

    for example:

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title>CSS Internal Usage</title>
    <style>
    h1{
    color: green;
    font-size: 50px;
    }
    p{
    color: blue;
    }
    h2{
    color: red;
    }
    </style>
    </head>
    <body>
    <h1>Hello dear</h1>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio, ex.</p>
    <h2>Cascading StyleSheet topic</h2>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
    </body>
    </html>
    so here is the output
    internal css
    as we used Internal StyleSheet in HTML file. you should code your CSS in the <head> section because we can’t do it anywhere else.

    3. External StyleSheet:

    with an external stylesheet, you can change your entire website design. with only including one file in your project, every project has one CSS file that every coding of CSS is code in that file. you can simply give style to your content by using Cascading StyleSheet. you have to give <link> to your CSS file inside <head> tag like.

    <head>
    <link rel=”stylesheet” type=”text/css” href=”style.css”>
    </head>

    an external StyleSheet can be written in any editor . but it won’t contain html extension, the StyleSheet must be saved a .css extension.

    here are some coding of the style.css file

    body{
    background-color: green;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    }
    h1{
    color: #fff;
    font-size: 50px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    }
    p{
    font-size: 16px;
    color: #ccc;
    text-align: center
    }
    Note: Do not add a space between the property value and the unit (such as margin-left: 20 px;). The correct way is: margin-left: 20px;

    StyleSheet Property and Value:

    here are some stylesheet property name and property value that given as an example. each property has there own value it is not interchangeable.

    background-color it will give a background color to the content
    color it will give color to the content
    font-size it will increase and decrease the text size
    margin it will give a position to the content
    padding it will give space to the content from its parent
    font-family it will give font style to the content
    width it will give width to the content
    height it will give height to the content
    border it will give a border to the content
    top, left, right, bottom these are used to set a position of the content

     

  • What is HTML5? With full Definition, Tags and Example

    What is HTML5? With full Definition, Tags and Example

    What is HTML5? With full Definition, Tags, and Example. In 1990 Tim Berners-Lee develops HTML which stands for (Hypertext Markup Language). it is used to create web pages and to develop websites, whatever you see in world wide web (www) that all are created in HTML.  the internet browser will get easily HTML code and display it for you in the browser. the only way we have to create a web page is only HTML, insides HTML we have many tags that each of tag are for a specific task. like we have a header, footer, nav, img, form, table, h1 to h6, p, a, video, audio,  center, section, aside and many more. with these tags, we can easily manage our page and give style to them.

    so before going to example and details, just know that HTML5 is the new version of HTML. and this new version of HTML has many new tags although the coding is the same only it updates the tags and brings new tag, which is here <article>, <aside>, <canvas>, <footer>, <figcaption>, <figure>, <meter>, <progress>, <mark>, <keygen> and many more. these tags are so useful and simple.

    What is CSS? Cascading StyleSheet With Full Details and Examples 5 Best HTML Editor in 2019

    What does an HTML5 tag look like?

    html5 tag

    In HTML at first, we have HTML tag then after tag we have an attribute name like in here I code link tag a and with tag, we have attribute name that we use href then after that write attribute value then close the tag.

    I hope you get what I mean, in opening tag we use attribute name and attribute value after opening tag we write out text or the link name then at the last close tag, don’t forget to close tag each tag have opening and closing if you don’t close the tag so it will be applied to all of your text that you write after opening tag.

    <a></a>

     HTML tag open with less than < then tag name and greater than > after that write your text or give your task and close the tag. HTML tag close with less than <, forward slash /, tag name and greater than >.

    How does HTML5 look like?

    html5 code

    This picture describes that how HTML look like or how it started.

    1. <!DOCTYPE html>, it shows the version of HTML that which HTML version it is.
    2. <html> we have HTML tag open. the browser will know that this text is written in HTML. and the language is English.
    3. <head> the third line we have a head. inside a head, we provide all our information like meta description, CSS link, and other details.
    4. <body> at the last we have body tag open. in the body tag, we provide our text, image, and lots of things. in the browser that you see the content so it is written in the body tag.

    What is Bootstrap? Learn From Basic with Examples What is PHP Language? and How to start with basic code of PHP?

    How to create an HTML5 file in PC?

    every language have its own extension like we have many extension js, css, php so HTML is the same while if you want to create an HTML file in your project folder so write file name and put .html this extension tells the browser that the file or content is written in HTML.

    html5 extension

    What HTML5 tags are?

    here are all HTML tag with name and description. here are some of them I explain.

    h1, h2, h3, h4, h5, h6 these six tags are used for Heading.
    p this is used for Paragraph.
    image this is used for the image, to put an image on your page.
    video this is used for video, to put a video on your page.
    audio this is used for audio, to put sounds on your page.
    header this is used for the head of the page.
    footer this is used for the footer of the page.
    form with this tag, we create a form for our page.
    input input is used for email, password, text etc.
    button this is used to create a button.
    a this is used to create a link on our text.
    center this is used to center your content or text.
    table this is used to create a table on your page.

     

    First HTML5 project

    now let’s do practice, in this section I will show you practically that how to do HTML coding or how to use HTML tag.

    so at the first create a folder on your PC and create a file with any name and give HTML extension to the file like I will create a file with the name of index.html.

    the second step opens the folder in any HTML editor. if you don’t know about HTML editor so go here 5 best HTML Editor 

    now let’s start our coding

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <metacharset=”UTF-8″>
    <metaname=”viewport”content=”width=device-width, initial-scale=1.0″>
    <metahttp-equiv=”X-UA-Compatible”content=”ie=edge”>
    <title>First Project</title>
    </head>
    <body>
    <h1>Hello Viewer</h1>
    <p>Wellcome to techbland.com</p>
    </body>
    </html>

    html5 code

    in here we used only 2 tags that the first one is h1 (heading 1) as we give heading to our page and the second one is p (Paragraph) that we write some text.

    don’t forget to close the tag while you open the tag and after completing your text or content so close the tag.

    Second HTML5 project

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <metacharset=”UTF-8″>
    <metaname=”viewport”content=”width=device-width, initial-scale=1.0″>
    <metahttp-equiv=”X-UA-Compatible”content=”ie=edge”>
    <title>Second Project</title>
    </head>
    <body>
    <h1>Welcome to second project</h1>
    <p>in second project we will do some text with image</p>
    <imgsrc=”images.jpg”alt=”html-img”>
    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Fugit quasi perferendis expedita ad nulla nobis reprehenderit</p>
    </body>
    </html>
     
    here is the output in the browser
    html5 example
    in the second example, we have heading with h1 tag and 2 paragraphs with  tag but between p tag we have img tag that it display image in our page, you can see in the browser.
    I hope you get what I am saying. in HTML we can do or we can display anything in anywhere of the page it depends on you that how you design your page and how you give style to your tag with the help of CSS.
    HTML is the first step to learn how to design a website and how to create a website page. you have to learn it deeply.
  • What is PHP Language? How to start with basic code of PHP?

    What is PHP Language? How to start with basic code of PHP?

    In this article, you will know all about PHP Language from basic to high. we will tell you all about PHP usage and details. as you know in today’s programming PHP Language comes the most useful language every web designers and web developers need to learn it because without this you can’t develop your website. in online websites, if you see there is PHP coding, the developer developed it with PHP.

    PHP is the most popular scripting language. with this language, you can develop your web pages, like what things we can do with PHP? with this language, you can create a login form, registration form, gallery, and many more things. PHP Language is known as a server-side language, it doesn’t execute on your computer without a server.

    What is HTML5? With full Definition, Tags, and Example 5 Best HTML Editor in 2019

    what PHP stands for:

    PHP stands for is “Hypertext Preprocessor“. But that would make it HPP, surely? An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools. so now you get what is it stands for.

    So you get a little about PHP, now I told you that PHP is a server-side language it doesn’t run your code without a server. you need to install server on your computer to run your code, don’t worry I will tell you how to get a server on your computer.

    For windows users, we have WAMP server to install on Windows PC. and for MacOS users we have XAMP server to install on your PC. but I will tell you about WAMP server so let’s install wamp on your computer you can download wamp from this link download Wampserver 64bit for Windows PC   download Wampserver 32bit for Windows PC

    How to install WAMPServer on PC

    • Double click on the downloaded file and just follow the instructions. Everything is automatic. The WampServer package is delivered with the latest releases of Apache, MySQL, and PHP.
    • Once WampServer is installed, you can manually add additional Apache, Php or MySql (only VC9, VC10, and VC11 compiled) versions.
    • Each release of Apache, MySQL, and PHP has its own settings and its own files (data for MySQL).

    select language and click ok

    accept the agreement and click on next button

    Click on next button

    set the installation folder on your PC and click next button

    now your installation is ready to install so click on install button to install wamp

    now you install Wampserver successfully on your computer.

    Using Wampserver

    • go to your local disk c:// and open wamp folder
    • The “www” directory will be automatically created (usually c:\wamp\www)
    • Create a subdirectory in “www” and put your PHP files inside.
    • Click on the “localhost” link in the WampSever menu or open your browser and go to the URL: http://localhost

    so now you created your folder and PHP file so now you need to open wamp.

    Launching your first PHP scripts

    Suppose you have created a PHP script called index.php. and you want to open it on the browser to open your browser and type

    http://localhost/foldername/index.php

    don’t type like this because localhost find www so you don’t need to type in URL

    http://localhost/www/foldername/index.php

    now your folder and PHP file is ready and Wampserver is also ready so let’s start php coding.

    before coding, I should tell you about the variable.

    What is Bootstrap? Learn From Basic with Examples What is CSS? Cascading StyleSheet With Full Details and Examples

    What is a Variable?

    Variable is just storage you put the value inside it and store it. as you store number and text. variable take space in memory each variable have it’s own space that further, we can do anything with it. now I give you example you will get more,

    for example,

    we have 2 variable by the name of a and b.

    $a = 10;

    a is variable name after variable name use equal sign (=) and put the value of a that I give 10 after value put a semicolon at the last. don’t forget semicolon is must to put at the last. one thing more variable can only be text and number nothing else. and with the variable name put dollar sign it is just because it modifies variable.

    $b = 20;

    here is the same b is a variable name and after that use equal sign and its value.

    so now we need one variable more to put both variables inside it like.

    $c = $a + $b;

    so the answer is 30. if we sum $a and $b the result will be 30 because value of $a is 10 and value of $b is 20 so the value of $c will be 30.

    Let’s do it practice:

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title>First PHP Code</title>
    </head>
    <body>
    <?php
    $a = 10;
    $b = 20;
    $c = $a + $b;
    echo $c;
    ?>
    </body>
    </html>
    here is the result on browser
     
    number variable
     
    now I will show you variable with text.
    $a = ‘hello’;
    as I told you before variable name gives the dollar sign and give variable name after that give equal sign then put text between single colon or double colon and at last give semicolon.
    $a = ‘hello”;
    don’t do like this its wrong.
    $a = ‘hello’;
    this one is correct.

    now let’s do practice.

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title>First PHP Code</title>
    </head>
    <body>
    <?php
    $a = ‘hello viewer’;
    echo $a;
    ?>
    </body>
    </html>
    here is the result on browser
     
    variable text result
    PHP start with < then give? and write php and it closes with?  >. and do all your coding inside PHP tag. and in place of print we use echo even, we can use print too but the echo is especially for PHP like.
    echo ‘hello viewer’;
     
    simply here I will tell you about some of the condition that I will do it with php.

    PHP Conditional Logic:

    we have many types of Conditional Logic like.

    1. If statements
    2. If else statements
    3. Else if statements
    4. Comparison operators
    5. NOT equal to
    6. Less than and Greater than
    7. The switch statement
    8. logical operators
    9. Boolean Values

    Let’s start with if statements.

    usually if statements used on the time like for example it gives a command that does this thing or doesn’t do this thing like how now I will give you example

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title>First Code</title>
    </head>
    <body>
    <?php
    $a = 10;
    if($a == 10){
    echo ‘correct’;
    }
    ?>
    </body>
    </html>
    here is the result on the browser
     
    ans of if statement
    so what we did in here we take a variable by the name of $a and we give value 10 to $a. now we give a condition that if $a is equal 10 if($a == 10) then print correct so of course value of $a is 10 so it will print correct in the browser. if our statement is wrong so it will give an error.
     

    If else statement.

    if, if else and else if are likely similar they all do the same task but there coding is somehow change. now I will give you If else example.

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title>First Code</title>
    </head>
    <body>
    <?php
    $a = 20;
    if($a == 10){
    echo ‘correct’;
    }else{
    echo ‘not correct’;
    }
    ?>
    </body>
    </html>
    so here is the answer on the browser
     
    else answer
    in here we did that if $a is equal 10 then print correct if $a is not equal 10 so print not correct so now the value of $a is 20 so the answer will be wrong.
    now if statement is for this that if this task is correct so run this code if this task is wrong so run this code that what if statement does.

    Loop Statement;

    now I will show you how to work with loop statement in PHP and how to do a loop with it.

    Loop is something that goes around and around until you tell to stop. you also need to tell a loop from where to start and till where to stop and after stopping the loop then what things they should do.

    simply you can do code without loop also like $ans = 1+2+3+4 then print $ans; but if there will be 1000 number so can you type it again and again of course no so here you need a loop to run your code till 1000 .

     for example

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title>Loop</title>
    </head>
    <body>
    <?php
    $a = 1;
    $start = 0;
    for($start; $start < 11; $start++){
    echo$a;
    }
    ?>
    </body>
    </html>
    here we give $a = 1 and $start = 1 so the loop will start from 1 till less than 11 that it will be 10 so it will print 1 eleven time for you here is the result
     
    loop answer
    so in for loop that we give three tasks, it means that for(initial value; end value; update value).

    Initial value.

    it means that start loop from initial like start value from 0.

    End value.

    it means that do loop till the number we give you like I give less than 11 so the loop will end in 10 number.

    Update value.

    it means that after each number of loop increase the value or increase/sum the number like how the first-time loop run the value is 1 then the second time it increases then the value be 2 then the third time it increases then the value be 3 ….. like this it will do. till the loop end.

    so after that, if loop stops so what it should do as I print $a so it will print the value of $a that is 1.

    as we have many loops like while loop, do while loop. but I will write an article about that.

    Conclusion:

    so here I told you all the basic of PHP that a beginner should know and now apply it and do it practically.

    if you don’t know which HTML editor to use so here is the link that I published an article about best HTML Editor.

     

     

     

     

     
     
     
     
     
     

     

     

     

     

  • 6 Best HTML Editor in 2020

    6 Best HTML Editor in 2020

    This Article has been searched for many weeks and finally, we find the 6 best HTML Editors in 2019. All the latest tools and features are added to the editor, there are many editors for HTML even more than 100 if you search you will find many but here are the 6 best editors that you will get in a few seconds. these 6 HTML editors are useful for web designers and web developers. and they have a cool feature for your project to make an easy way to do, we used them much time while making our project but they are unique they are the best editors for your projects.

    Moreover, You want to make a form on your website, but you don’t know how. You need a developer to create a form for you. Use headlessforms a headless form builder, to build your own high-quality HTML forms. It’s easy and quick!

    6 Best HTML Editor in 2019 free for Web Designers and Web Developers

    1. Notepad++
    2. Visual Studio Code
    3. Atom
    4. Sublime Text
    5. Brackets
    6. Novi

    1. Notepad++

    The Notepad++  is a text editor and source code editor for the windows, Mac and Linux. It’s easy to use and user-friendly It has many best features for HTML codings like auto-completion, various color themes, color coding and many more. due to its features, Notepad++ is useful for web designers and front-end developers.

    2. Visual Studio Code

    Visual Studio Code is a free and open-source developed by Microsoft for Windows, Linux, and MacOS. if we compare Visual Studio Code rather then other editors it’s faster then others, and it has many features that include support for debugging, embedded GIT control, syntax highlighting snippet. It’s easy to customize, so the user can edit color themes, text color, font size, keyboard shortcuts, and preference.

    Download Visual Studio Code

    3. Atom

    Atom is an open-source editor that works for Windows, Linux, and MacOS. It’s highly easy to a customized text editor, color themes, text color and it’s mostly used for developer and designer while having the best features and in high demand. You can easily design your project in Atom without facing any error. In our research, we give you the option to use Atom for your project it’s best.

    Download Atom

    4. Sublime Text

    The Sublime Text Editor is the best editor we have used at the time of programming this is so easy to use and easy to customize. mostly it has a very good number of keyboard shortcut that allows you to quickly access certain programs which are great for the programmer. This editor saves us our time.

    The Sublime Text editor has different features for the different programs. the color scheme that applies depending on the programming language you are using, therefore each program has there own colors, keyboard shortcuts even you can build keyboard shortcut yourself. Finally, this editor is best for beginners professional just try it by clicking the download links below.

    Download Sublime Text

    5. Brackets

    Brackets is an open-source editor that is mostly for web developers and developed by Adobe Systems. it is free and open-source software licensed under the MIT LICENSE. it is written in javascript, HTML, and CSS. Brackets are cross-platform available for Windows, Linux, and MacOS. this editor is best for web designing and web development once try it, the download link given you below.

    Download Brackets

    6. Novi

    Novi Editor is a pretty suitable option that can be used by both tech-savvy people and beginners. In addition to this, you will certainly enjoy a visual part that allows managing your content using a drag-and-drop builder. However, you can always turn to a source code editor.

    Advantages of Novi Builder:

    • Easy-to-use nature:
    • Affordable Price:
    • Different tools crafted for the developer:
    • Regular Updates.

    Pros of Novi Visual HTML Page Builder :

    • Anyway, non-programmers will require some time to understand how everything works;
    • No hosting support.

    Above the line, we tell you all about 6 best HTML Editor in 2019 for designers and developers that those who want to complete their projects easily. or the beginners those who want to start coding so these HTML editors are the best because they have easy features and easy to use and edit. even developers can use these best HTML editors I know we have many HTML editors but these 6 editors are at the top and many designers and developers are using.