Tag: css

  • 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.