Web front-end libraries: Difference between revisions

From Computer Science Wiki
(2 intermediate revisions by the same user not shown)
Line 42: Line 42:


== Getting started template ==  
== Getting started template ==  
If you copy this template, please make sure you copy the ENTIRE template, from the very opening tag (doctype) to the very last tag (the closing html)!


<syntaxhighlight lang="html">
<syntaxhighlight lang="html">
Line 52: Line 54:
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">


     <!-- Bootstrap CSS -->
     <!-- Bootstrap CSS -->  
     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
   
</head>
<body>
     <!-- =========================================== -->
     <!-- =========================================== -->
     <!-- PLEASE DO NOT EDIT ANYTHING ABOVE THIS LINE -->
     <!-- PLEASE DO NOT EDIT ANYTHING ABOVE THIS LINE -->
     <!-- =========================================== -->
     <!-- =========================================== -->


    <title>Hello, world!</title>
  </head>
  <body>
   


    <div class="row">
        <div class="col-12">
            <div class="alert alert-info" role="alert">
                I'm 12 columns wide :-)
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-6">
            <div class="alert alert-info" role="alert">
                I'm 6 columns wide :-)
            </div>
        </div>
        <div class="col-6">
            <div class="alert alert-info" role="alert">
                I'm 6 columns wide :-)
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-4">
            <div class="alert alert-info" role="alert">
                I'm 4 columns wide :-)
            </div>
        </div>
        <div class="col-4">
            <div class="alert alert-info" role="alert">
                I'm 4 columns wide :-)
            </div>
        </div>
        <div class="col-4">
            <div class="alert alert-info" role="alert">
                I'm 4 columns wide :-)
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-3">
            <div class="alert alert-info" role="alert">
                I'm 3 columns wide :-)
            </div>
        </div>
        <div class="col-3">
            <div class="alert alert-info" role="alert">
                I'm 3 columns wide :-)
            </div>
        </div>
        <div class="col-3">
            <div class="alert alert-info" role="alert">
                I'm 3 columns wide :-)
            </div>
        </div>
        <div class="col-3">
            <div class="alert alert-info" role="alert">
                I'm 3 columns wide :-)
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-2">
            <div class="alert alert-info" role="alert">
                I'm 2 columns wide :-)
            </div>
        </div>
        <div class="col-2">
            <div class="alert alert-info" role="alert">
                I'm 2 columns wide :-)
            </div>
        </div>
        <div class="col-2">
            <div class="alert alert-info" role="alert">
                I'm 2 columns wide :-)
            </div>
        </div>
        <div class="col-2">
            <div class="alert alert-info" role="alert">
                I'm 2 columns wide :-)
            </div>
        </div>
        <div class="col-2">
            <div class="alert alert-info" role="alert">
                I'm 2 columns wide :-)
            </div>
        </div>
        <div class="col-2">
            <div class="alert alert-info" role="alert">
                I'm 2 columns wide :-)
            </div>
        </div>
    </div>




   
     <!-- =========================================== -->
     <!-- =========================================== -->
     <!-- PLEASE DO NOT EDIT ANYTHING BELOW THIS LINE -->
     <!-- PLEASE DO NOT EDIT ANYTHING BELOW THIS LINE -->

Revision as of 10:24, 16 October 2019

Web Science[1]

Web framework[edit]

A web framework (WF) or web application framework (WAF) is a software framework that is designed to support the development of web applications.


Web frameworks aim to automate the overhead associated with common activities performed in web development. For example, many web frameworks provide libraries for database access, templating frameworks, and session management, and they often promote code reuse. Although they often target development of dynamic web sites, they are also applicable to static websites.[2]

Bootstrap[edit]

Bootstrap is a free and open-source front-end web framework for designing websites and web applications. It contains HTML- and CSS-based design templates for typography, forms, buttons, navigation and other interface components, as well as optional JavaScript extensions. Unlike many web frameworks, it concerns itself with front-end development only.[3]

Bootstrap is an open-source Javascript framework developed by the team at Twitter. It is a combination of HTML, CSS, and Javascript code designed to help build user interface components. Bootstrap was also programmed to support both HTML5 and CSS3.

Also it is called Front-end-framework.

I found another excellent description of bootstrap[4]. Bootstrap is a free collection of tools for creating a websites and web applications.

It contains HTML and CSS-based design templates for typography, forms, buttons, navigation and other interface components, as well as optional JavaScript extensions.

Some reasons programmers prefer Bootstrap Framework

  • Easy to get started
  • Great grid system
  • Base styling for most HTML elements(Typography,Code,Tables,Forms,Buttons,Images,Icons)
  • Extensive list of components
  • Bundled Javascript plugins
  • Pre Styled Components

Some of the components pre-styled are:

  • Dropdowns
  • Button Groups
  • Navigation Bar
  • Breadcrumbs
  • Labels & Badges
  • Alerts
  • Progress Bar

Getting started template[edit]

If you copy this template, please make sure you copy the ENTIRE template, from the very opening tag (doctype) to the very last tag (the closing html)!
<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS --> 
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
    <!-- =========================================== -->
    <!-- PLEASE DO NOT EDIT ANYTHING ABOVE THIS LINE -->
    <!-- =========================================== -->




    
    <!-- =========================================== -->
    <!-- PLEASE DO NOT EDIT ANYTHING BELOW THIS LINE -->
    <!-- =========================================== -->
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->

    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
  </body>
</html>

Standards[edit]

  • This topic doesn't cover a specific standard, but it is something you should you know.

References[edit]