Updated April 10, 2023
What is Front End language?
The front end is the website you can immediately see and communicate with to obtain system back-end capacities, which means the user can see and experience everything. Over the years, a Web designer’s role has dramatically changed, but its core functions remain the same. Frontend deals with all the whistling and bells you see on the website, including the colorful photos, navigation menus, flashy buttons, etc. A frontend is also called “client-side” because this action takes place on the customer side, which is the user in this case. A web developer does not handle the code. In reality, it covers all aspects of redesigning and building websites, which are visually attractive and user-friendly. A front-end developer’s role is for the user to create an environment with a combination of various tools, including JavaScript, HyperText markup language, and CSS.
Now we will move ahead with front end language
Different Types of Front End language
The following are the different types of front end language, which are as follows:
1. HTML language
Hypertext Markup Language we normally called HTML. HTML is used for creating digital records on the World Wide Web. A number of links to other websites are provided on each page. Each web page you view on the Internet is published in one or another HTML variant. HTML code ensures that the images and text are properly formatted so your internet browser can display them to look for; without HTML, a browser would not be able to display text as items or load images. HTML also provides a basic page structure, where cascading style sheets are superimposed to modify their appearance. A website is a document that is generally written in HTML and translated through a web browser. By entering a URL, you can identify a web page. The static or dynamic kind of web page may be. We can generate static web pages by using HTML. We will see the attributes in HTML such as documents, tags, buttons, lists, etc.
All HTML documents must start with a document type declaration:
<!DOCTYPE html>
The HTML document starts from <html>and ends with </html>. The part which we want to display on the website is declared in the HTML document is between <body> and </body>. In HTML, headings are defined using the <h1> to <h6> tags. Where <h1> represents largest heading and <h6> represents smallest heading.
<h1>This is heading with h1 </h1>
<h2>This is heading with h2 </h2>
<h6>This is heading with h6</h6>
HTML links are defined with the <a> tag
Example
<ahref="https://www.educba.com">This is a link to educba website</a>
In HTML, images are defined with the <img> tag.
Attributes for editing images are as follows
- The source file (src)
- alternative text (alt)
- width
- height
Example
<img src="educba.jpg"alt="educba.com" width="120"height="180">
You can see this small example of how Html code looks like
Example
<html>
<head>
<title>Hello Friends </title>
</head>
<body>
<h2>Educba Blog</h2>
<p> HTML First Page</p>
</body>
</html>
2. Java Script language
JavaScript is a programming language. It is lightweight and most frequently used as part of internet pages, whose implementations enable client-side scripting to communicate with and create dynamic websites. JavaScript was first named LiveScript, but it was probably due to the enthusiasm Java created that Netscape changed its name to JavaScript. JavaScript first appeared in 1995 with the LiveScript name in Netscape 2.0. The HyperText Transportation Protocol, or HTTP, is designed to transmit HTML text through a network for viewing, exactly as it is called. However, it is completely static with HTML and does not provide the ability to implement logic. If the computer runs JavaScript, the browser is separated. JavaScript sandbox is used as an added safety measure by browsers like Chrome and Edge. JavaScript is unable to write or read from a hard drive or other computer-connected storage devices.
You can see this small example of how JavaScript code looks like.
Example
<!DOCTYPE html>
<html>
<body>
<h2>Hello EDUCBA</h2>
<p id="demo">EDUCBA Can Make your Future Bright.</p>
<button type="button" onclick='document.getElementById("demo").innerHTML = "Hello Server!"'>Click Me!</button>
</body>
</html>
3. C++ Language
C++ is one of the best front-end programming languages. C++ is developed by Bjarne Stroustrup. This language is also known for the extension of C, i.e., the next version of the C++ language. C++ is used for many purposes like game development, application development, operating system, animation, etc. This language is easy to learn. This feature of C++ makes it popular in the market. C++ is the basic language for all languages. C++ language has a rich set of libraries.
Example
Program to display "Hello World"
#include <iostream>
Using namespace std;
Int main()
{
Cout<<"Hello,World!";
Return 0;
}
Example to print star pattern in a diamond shape
#include<iostream>
using namespace std;
int main()
{
int n, s, i, j;
cout << "Enter number of rows: ";
cin >> n;
for(i = 0; i <= n; i++)
{
for(s = n; s > i; s--)
cout << " ";
for(j=0; j<i; j++)
cout << "* ";
cout << "\n";
}
for(i = 1; i < n; i++)
{
for(s = 0; s < i; s++)
cout << " ";
for(j = n; j > i; j--)
cout << "* ";
// ending line after each row
cout << "\n";
}
return 0;
}
4. CSS language
CSS Stands for the Cascading Style Sheets. You can control the color, column size and color designs, paragraph spacing, font style, background images or colors, layout designs and display variations of different devices, screen sizes or other effects with the use of CSS. CSS is simple to know and comprehend, but it controls the presentation of HTML documents. CSS is usually paired with HTML or XHTML markup languages. You don’t need HTML tag characteristics to write each time if you use CSS. Simply write a CSS tag rule and use it for all events of the tag. Through less code, download times are quicker. For more than one device type, style sheets allow content optimization. Various website versions for handheld devices, such as PDAs, cell phones, or printing, can be presented with the same HTML document.
You can see this small example of how CSS code looks like
Example
<!DOCTYPE html>
<html>
<head>
<style>
.center {
text-align: center;
color: red;
}
</style>
</head>
<body>
<h1 class="center">EDUCBA </h1>
<p class="center">Hello Are you there?</p>
</body>
</html>
You can put your CSS rules into an HTML document using the <style> element. This tag is placed inside the <head>…</head> tags. Rules defined using this syntax will be applied to all the elements available in the document.
The syntax is as follows.
<!DOCTYPE html>
<html>
<head>
<style type = "text/css" media = "all">
body {
background-color: white;
}
h1 {
color: green;
margin-left: 30px;
}
</style>
</head>
<body>
<h1>Educba</h1>
<p>Welcome to EDUCBA</p>
</body>
</html>
Conclusion
In this article, we have seen different types of Front End Languages and their syntax and examples, which will help you understand better and be much convenient to go through these topics.
Recommended Articles
We hope that this EDUCBA information on “Front End Languages” was beneficial to you. You can view EDUCBA’s recommended articles for more information.