NAME: REMIN JACOB PHILIP
UPRN: 182113324
.
1. Which protocol is used to fetch resources like HTML document?
Ans: HTTP is a protocol which allows the fetching of resources like HTML
document. It is a client- server protocol . Client –server protocol means the
requests are initiated by the recipient (web browser).HTTP is used for
identifying and fetching resources HTTP is an extensible protocol evolved over
time.
2. What is WWW?
Ans: WWW stands for World Wide Web . It is commonly known as Web.
It is an information system where documents and other resources are
identified by URL, which may be interlinked by hypertext and are accessible
over the internet. The resources of WWW are transferred via HTTP protocol
and may be accessed by users by software applications like web browser and
are published by a software application called web server.
3. What does HTML stands for? State its purpose.
Ans: HTML stands for Hypertext Markup Language. Hypertext is an ordinary
text that has been dressed up with extra features such as formatting images,
multimedia, and links to other documents. Markup is the process of taking
ordinary text and adding extra symbols, each symbol used for markup is a
command that tells a browser how to display the text. Language is the
keypoint to remember about HTML, HTML is a computer language, related to
computer programming languages. HTML has its own syntax along and rules
for proper communication.
4. Give two examples for empty tag.
Ans: An empty tag is a tag where we do not need opening and closing tags as
nothing is there between them.
<br> and <hr> re two examples of empty tag.
<br> - It is also called line break tag, whenever you use a <br> tag anything that
follows it starts from next line.
<hr>- It is also called horizontal line tag. Horizontal lines are used to visually
breakup sections of a document. The <hr> creates a line from current position
to the right margin in the document and breaks line accordingly.
5. What is HTML element?
Ans: HTML element is defined by a start tag and some content and followed
by an end tag. These have special meaning. Start tag are used to bengin an
effect and End tags are used to end that effect. End tags always use the
keyword that is used in start tag and with a (/) in front .
Syntax: <tagname> content </tagname>
Eg: <html>…..</html>
6. Give four examples of container tag.
Ans: Container tags in HTML has an opening and ending tag. They are called
container tag as they contain something between the two tags.
Some of them are:
<p>..</p>- The paragraph tag offers a way to structure your text into different
paragraphs. Each paragraph text must go in between an opening <p> and
closing </p>.
<b>..</b>- The bold tag is used to make the text bold. Anything that appears
within <b>..</b> are displayed bold.
<i>..</i>- The italics tag is used to italicize a text. Anything that appears
between <i>..</i> are displayed in italics form.
<u>..</u>- The underline tag is used to underline a text. Anything that appears
between <u>..</u> is displayed with underline.
7. What is meant by attribute?
Ans: HTML attributes are modifiers of HTML element type. An attribute either
modifies the default functionality of an element type or provide certain
functionality to element types unable to function correctly without them.
Attributes are always specified in start tag. Attributes usually come in names
and values ,NAME=VALUE.
There are some attributes like href that are used with anchor tags <A> . The
link address is specified in href attribute. Another one is the src attribute that
are used with image tags. The file name of image source is specified in src
attribute.
8. How to write HTML comments ?
Ans: HTML comments are not displayed in the browser , but they can help
document your source code.
You can add comments in your HTML source like the below syntax.
SYNTAX: <!.......comments here……>
Comments enable you to hide content or markup for temporary purposes or to
identify sections in your document and to provide directories for others who
might be working on the page.
9. Write the HTML statement to underline the text?
Ans: The underline tag is used in HTML to underline a statement. For this we
use the underline tag <u>…</u> . This tag is used to underline a given
statement or line in the HTML document. Anything that appears between
<u>..</u> is displayed with underline.
Eg:
<html>
<head>
<title></title>
</head>
<body>
<p> <u> The following is underlined text</u> </p>
</body>
</html>
10. How to create moving text?
Ans: A marquee <marquee> tag is used create a scrolling text. An HTML
Marquee is a scrolling piece of text displayed either horizontally or vertically
down your webpage depending on the settings. You can make it scroll left to
right and vice versa , you can make it back and fourth, and also up and down.
SYNTAX:
<marquee behavior=”scroll” direction=”left”> scrolling text from right to
left</marquee>