Pages

September 09, 2015

Using lists and tables in HTML


Q1) what is the < img > tag used for? What are its attributes?

Ans:
The < img> tag is used for inserting an image in a web page.
The < img > tag has many attributes like:-
Source – height – width – border - alignment

Q2) explain the various types of lists that can be created in HTML

Ans:
Types of lists that can be created in HTML are:
    -      Ordered lists
    -      Unordered lists
    -      definitions

Q3) what is Marquee?

Ans:
Marquee is a moving text on a web page. To insert a marquee on a web page we use < Marquee > tag.
< Marquee > text to be made into a marquee < /Marquee>


Q4) Explain the various types of links that can be created in HTML.

Ans:
     1)   links to pages in the same folder with “ index.html”
     2)  link to pages is a separate folder inside the main project         folder.
     3)   Link to pages in a folder one level up from your current          foldr
    4)  Link to another website
    5)   Image links ( you can link to the image itself, a web page, or a     website )
   6)  Mail to link ( email link )

Q5) write the tag to insert an image file “ automobiles.bmp” in a web page.

Ans:
<a href=”automobiles.bmp “> < img src= “automobiles.bmp” alt=”Image link” /> </a>

Q6) what is the use of blockquote tag?

Ans:
The <blockquote> tag is used to display a segment of text as a separate block by placing it within extra margings, so that it stands out from the rest of the text.
Syntax:
<blockquote> quotation to be displayed as a block </blockquote>


Q7) what is nesting of lists?
Ans:
HTML allows you to nest a list within another list. The list hat lies within another list is called a nested list. The browser automatically uses different bullets or numbering systems for the next level of the indentation for the nested list. You can nest an ordered list within an unordered list or an unordered list within an ordered list.


Conjunction


A conjunction is a word which connects two words or clauses or sentences and shows the relation between them. They are used to avoid making the text seem like bullet points and to make the text flow.


E.g. -Jai saw a dog on the road. He decided to adopt the dog. Jai brought the dog home.

Jai saw a dog on the road and decided to adopt the dog, so he brought the dog home.
Here ‘and’ and ‘so’ are conjunctions which are used to join the sentences and show the relation between them.
There are three main categories of conjunctions that are explained below. Apart from these, there are also Adverbs of Conjunctions,. To learn more about the Adverbs of Conjunctions visit the Adverbs page.

-Coordinating Conjunctions
These conjunctions are used to link or join two words or phrases that are equally important and complete in terms of grammar when compared with each other. That is to say, the sentences or words do not depend on anything to give themselves meaning.
There are seven main coordinating conjunctions -

For
And
Nor
But
Or
Yet
Soon

As you can see, these conjunctions are arranged in this way to provide the mnemonic acronym of FANBOYS so that it is easier to remember them. These conjunctions are always placed between the two clauses or words that they are joining. The following are some examples of the coordinating conjunctions

-Chris does not want tea. Chris does not want coffee.
- Chris does not want tea or coffee.

Here, we see how ‘or’ was used to combine the two words and make a cohesive sentence using them. Also, notice how the ‘or’ is between the two words.

I scored 60% in the exams this year. Anita scored 7% more than me this year.

- I scored 60% in the exams but Anita scored 7% more than me this year.

Here we see that ‘but’ was used in the middle to combine and show the relation between the two sentences that were both equally important and cohesive by themselves.

-Subordinating Conjunctions

These conjunctions are used to join an independent and complete clause with a dependent clause that relies on the main clause for meaning and relevance. The dependent clause cannot exist on its own as a sentence and often does not make sense without the main clause.
The subordinating conjunction always comes before the dependent clause but the dependent clause itself can be placed either ahead of or following the independent clause.

Since they had misbehaved, the boys were given one week suspensions from school.

Here, we see the dependent clause is ‘they had misbehaved’ which is not a valid sentence by itself.
The independent main clause is ‘the boys were given one week suspensions from school’.
They are joined by the subordinating conjunction ‘since’.

He was fond of playing basketball because it was his father’s favourite game.

In this sentence, because is the subordinating conjunction as it introduces the dependent clause ‘it was his father’s favourite game’

The main clause in this sentence is ‘he was fond of playing basketball’ as it is the sentence which can be said independently and still be grammatically correct.
Other subordinating conjunctions are :-
Although, As, Before, Once, Though, Until, Whether, etc.

-Correlative Conjunctions

Correlative Conjunctions are simply pairs of conjunctions used in a sentence to join different words or groups of words in a sentence together. Correlative Conjunctions are generally not used to link sentences themselves, instead they link two or more words of equal importance within the sentence itself. Some of the more commonly used correlative conjunctions are -

Both the shoes and the dress were completely overpriced.

This is an example of using the correlative conjunctions ‘both/and’ in a sentence.
As you can see in this sentence, the ‘shoes’ and the ‘dress’ were equally important elements that needed to be given the same importance.

They should either change their strategy or just forfeit the game.
The ‘either/or’ conjunctions are used to suggest a choice between two options. Here the choice being suggested is between - ‘change their strategy’ or ‘forfeit the game’.

Just as she loves hiking so she enjoys travelling as well.

The correlative conjunctions ‘just as/so’ are used to link two phrases that have a similar theme or are referring to a similar thing together. This conjunction is used to show the correspondence between two phrases or words.

He neither helps around the house nor does he look for a job.

‘Neither/nor’ are conjunctions that are used to deny or negate words and phrases. In the case of ‘neither’, it gives two options that are both negated. ‘Nor’ is the negative form of ‘or’.

Not only does he play the lead guitar but he is also the band’s songwriter.

The correlative conjunctions ‘not only/but’ are used to show an additional and important element in the sentence that is used to indicate excess when combined with the first element. For instance, in this sentence the fact that he is a guitarist and a song writer are equally important but when shown together, they indicate an excess of talent in the person.

It doesn’t matter whether the roses are fresh or if they are drooping, just buy them.

‘Whether/or’ is used as a conjunction to show two different options in the sentence. The conjunction can be used both in a manner of negation and confirmation.






CONJUNCTIONS EXERCISE 1
CHOOSE THE CORRECT OPTION:
  1.   _______ being very rich, he never shows off.
Other than
Instead
Despite
Otherwise
  2.   I am not feeling well,_____________I will come to the party.
because
since
however
unless
  3.   _____________ I had my lunch, I didn’t miss Pizza.
Although
Finally
Moreover
Already
  4.   She never helps anyone _________ having a lot of money.
otherwise
inspite of
however
instead
  5.   You shouldn’t go out __________ it’s raining heavily.
for
because
already
but
  6.   My mother _______ I went to the market for shopping.
or
either
neither
and
  7.   Thomas was not telling the truth. ________ he was shouting at me.
Provided
Although
Moreover
In order to
  8.   Please come on time, _________ we may miss the flight.
otherwise
so
therefore
but
  9.   We should avoid oily food ____________ be healthy.
finally
consequently
in order to
for
  10.   I will give you my car _____________ you come back before 5’o clock.
as
although
because
provided


CONJUNCTIONS EXERCISE 2
CHOOSE THE CORRECT OPTION:
  1.   ___________my mother was sleeping, I prepared tea on my own.
As
Besides
Unless
Despite

  2.   He apologised _______ his bad behavior.
for
since
because
as

  3.   He was satisfied ________ not overjoyed.
yet
as
but
still

  4.   ___________ his sister, he is very naughty.
Likely
Unlike
Similar
Differently

  5.   After months of studying hard, Meeta ________ cleared IAS examination.
initially
consequently
therefore
finally

  6.   ____________ it is very cold there, we have postponed our visit.
Since
Due to
Yet
Because of

  7.   Radha knows French; ____, we have selected her to head our operations in France.
therefore
moreover
otherwise
provided

  8.   Mohan worked very sincerely and was ______________ promoted.
yet
although
besides
consequently

  9.    ______ my family, I will also invite my close friends on my anniversary.
Aside
Besides
Despite
In spite of