Professional Documents
Culture Documents
Roll no : 30
Terminal Assignment.
course code:1101
Session:-2019-2023
Date:-06-july-2020
Terminal Assignment
Q.1:-Enlist atleast 10 most commonly used HTML.tags with their
usage.
Usage:-
· <A> </A>
In short, this is a tag that helps you make a link to a web page, to your page, social media site,
product within online store,... The main attribute for this HTML tag is the href (Hypertext
Reference) attribute, where you put a link to a website you want to link to. The other attribute is
target, it can be used to open a link in a new window, so that users don’t lose focus on the
current page.
· <B> </B>
If you have a lot of text, then you need to emphasise some words to let the reader know what is
important. And you do that with bold parts of the text.
· <BODY> </BODY>
The body part of an HTML document. In fact, this is an integral part of all HTML documents but
it is just a tag that marks what is the visible content of the page, where the most content is.
· <BR>
With this basic HTML tag we let the browser know, where we want some blank lines or breaks in
the text. As a matter of fact, using a few breaks makes our text breath, this means that it is
easier to read and understand.
· <DIV> </DIV>
An element which is mostly used to group elements and to act as a template for new controls.
The div HTML tag is an element you will use to divide a significant part of an HTML document
from other parts. For examplle, let’s say you have a list of products on your web page, you will
use a div for each product.
· <HEAD> </HEAD>
The head part of an HTML document. Moreover, this is where you have metadata, which is data
about the styling of the document, what kind of JavaScript libraries the document uses, title and
CSS files.
· <I> </I>
If you have a lot of text, then you need to emphasise some words to let the reader know what is
important. Rather, with italics you can present text that is a little tilted to the right.
<IMG>
We use the IMG tag to show images. Considering that images can be within files for your web
page or anywhere online. In addition, the most important attribute is src (source), which tells
where the picture is.
· <LI> </LI>
List item. A tag that is used within an ordered (<OL>) or unordered (<UL>) list. Not to mention,
you can have as many as you like.
· <OL> </OL>
Ordered list. Also includes <LI> List Items, which will be numbered automatically. As a
consequence, this is very useful if you add more list items, because the numbers will always be
in the right order.
· <P> </P>
The paragraph tag groups text into a paragraph :D (That is funny). Hence its purpose is to
separate a part of text or paragraph, this way you make it more readable and organized.
.
<SPAN> </SPAN>
The span tag groups text for which we want to have different styling. A good example would be
if we wanted to have a red word inside a sentence.
______________
______
Also, some attributes are required for certain elements. For instance, an <img> tag must contain
a src and alt attributes. Let's take a look at some examples of the attributes usages:
· The src Attribute . The <img> tag is used to embed an image in an HTML page. ...
· The id Attribute.
_______________
_________
Explanation:-
The div is the most usable tag in web development beacuse it helps us to seperate put data in
the web page and we can create a particular section for particular data or function in webpages
· it is used to the group of various tags of html so that sectionscan be created and style can be
applied to them.
As we know div tag is block level tag .As we know div tag is used for grouping html elements together
and is to apply CSS and web layout on them lets see below example without using div tag. we need to
applying CSS for each tag.
The div tag is container tag inside div tag we can put more then one html element and can group
together and can apply CSS for them. div tag can be used for creating a layout of webpages . we can also
create web layout using tables tag but table tags are very complex to modify the layout.
The div tag is very flexible in creating web layouts and easy to modify.The div and span tag are two
common tags when creating pages using html and perform different functionality on them. while div tag
is a block level element and span is inline element .The div tag creates a line break and by default creates
a division between the text that comes after the tag end with </div>.div.tag creates seperate boxes or
containers for all elements inside this tag like text,images,paragraphs.
Supported browser:-
· Google chrome
· Internet Explorer
· Firefox
· Opera
· Safari.
Example:-
___________
Defination:-
Cascading Style Sheets(CSS) is a style sheet language used for describing the presentation of a
document written in a markup language like HTML. CSS is a cornerstone technology of the
World Wide Web, alongside HTML and JavaScript.
Types of CSS:-
There are the following three types of CSS:
· Inline CSS.
· Internal CSS.
· External CSS.
Explanation:-
· Inline CSS:-
For Inline CSS every style content is in HTML elements. It is used for a limited section. Whenever
our requirements are very small we can use inline CSS.
It will affect only single elements. In HTML we require that various HTML tag's views are
different so then we use inline Cascading Style Sheets.
There is a disadvantage of inline Cascading Style Sheets. It must be specified on every HTML tag.
There is a lot of time consumed by that and it is not the best practice for a good programmer
and the code will be quite large and very complex.
Example:-
Inline styles are defined within the "style" attribute of the relevant element:
<!DOCTYPE html>
<html>
<body>
</body>
</html>
· Internal CSS:-
In internal CSS the style of CSS is specified in the <head> section. This is internal CSS, it affects
all the elements in the body section. Internal CSS is used in the condition when we want a style
to be used in the complete HTML body. For that, we can use the style in the head tag.
Example:-
Internal styles are defined within the <style> element, inside the <head> section of an HTML
page:
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
· External CSS:-
In External CSS we create a .css file and use it in our HTML page as per our requirements.
Generally, external Cascading Style Sheets are used whenever we have many HTML attributes
and we can use them as required; there is no need to rewrite the CSS style again and again in a
complete body of HTML that inherits the property of the CSS file. There are two ways to create
a CSS file. The first is to write the CSS code in Notepad and save it as a .css file, the second one is
to directly add the style sheet in our Solution Explorer and direct Visual Studio to use it on our
HTML page.
Open your HTML page and drag down the style sheet.
Example:-
External styles are defined within the <link> element, inside the <head> section of an HTML
page:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
________________
______
Q.5:-What is javascript?Make a list of languages used for web development and
their pros and cons.
· Defination:-
· Java
· Javascript
· PHP
· Go
· Ruby
· C
· Swift
· Rust
· Kotlin
1.) Python:-
The Pros of Python:
· Multithreading
· Poor performance
3.) Javascript:-
· Rapid development
· Client-side execution
· Stop render
4.) PHP:-
The pros of PHP:
· Open-source
· Highly scalable
· The ease of customization makes it harder to detect the errors and more error-prone
5. ) Go
The Pros of Go:
· Go is concurrent.
· Go is cross-platform.
· Go is less flexible.
· Go has no generics.
6. ) RUBY
The Pros of RoR:
· Time efficiency
· Shortage of flexibility
· Price of mistake
7.) C
The Pros of C:
· Portable language
· Easy to study
· Speed-up program
· Low-level of abstraction
· Built-in function
· User-defined function
The Cons of C:
· No OOP concept
· No code-reuse
· No run-time checking
· Data security
· Namespace concept
· High-level construct
8.) Swift
· Fast speed
· Full stack potential
· Interoperability
· Better scalability
· Small community
9.)Rust
· Decent type system that will enable you to focus on code, rather than hunting bugs
· Smart design
· Hard to learn
10.) Kotlin
· Less buggy
· Easily maintainable
____________________
________