Unit 2 : WEBSITE DEVELOPMENT USING HTML AND CSS Important (Exercise Questions)

Unit 2 : WEBSITE DEVELOPMENT USING HTML AND CSS Important (Exercise Questions)


Website Development using HTML:


Answer: The pre requisites to learn the basics of HTML are a text editor, such as Notepad and an Internet browser, such as Internet Explorer or Netscape Navigator, chrome etc.

Answer: The documents themselves are plain text files with special “tags” or codes that a web browser uses to interpret and display information on your computer screen.
1. HTML stands for Hyper Text Markup Language
2. An HTML file is a text file containing small markup tags
3. The markup tags tell the Web browser how to display the page
4. An HTML file must have an htm or html file extension

The comment tag is used to insert a comment in the HTML source code. A comment can be placed anywhere in the document and the browser will ignore everything inside the brackets. You can use comments to write notes to yourself, or write a helpful message to someone looking at your source code.


The <pre> tag defines preformatted text.

Text in a <pre> element is displayed in a fixed-width font, and the text preserves both spaces and line breaks. The text will be displayed exactly as written in the HTML source code.

The <cite> tag defines the title of a creative work (e.g. a book, a poem, a song, a movie, a painting, a sculpture, etc.).

Answer: The bgcolor attribute specifies a background-color for an HTML page. The value of this attribute can be a hexadecimal number, an RGB value, or a color name:

<body bgcolor=”#000000″>

<body bgcolor=”rgb(0,0,0)”>

<body bgcolor=”black”>

The lines above all set the background-color to black.


To view the source code of your webpage first open your web browser. Then, visit the webpage where you’d like to show source code.

Once you’re there, please follow the steps below:

Google Chrome

  1. Click the menu icon Menu on the browser toolbar.
  2. Select More tools, then View Source.


Press Ctrl+ U (Windows).

Answer: Three popular web browsers are:

 Google Chrome, Safari, and Mozilla Firefox.

Answer: The <a> tag defines a hyperlink, which is used to link from one page to another.

The most important attribute of the <a> element is the href attribute, which indicates the link’s destination.

Answer: Insert an Image: The HTML <img> tag is used to embed an image in a web page.

The <img> tag is empty, it contains attributes only, and does not have a closing tag.

The <img> tag has two required attributes:

  • src – Specifies the path to the image
  • alt – Specifies an alternate text for the image

Create a table in HTML:

An HTML table is created with an opening <table> tag and a closing </table> tag. Inside these tags, data is organized into rows and columns by using opening and closing table row <tr> tags and opening and closing table data <td> tags.

Answer: <br> tag is used to insert a single line break.

Answer: The World Wide Web Consortium (W3C) is an international community that works together for the long-term growth of the Web.

Answer: Microsoft Word
(b) The …………….. tells the web browser how to display the page

Answer: HyperText Markup Language (HTML
(c) …………….. is the tag used for defining the Sample computer code

Answer: <code> tag
(d) Acronym for HTTP …………….

Answer: HyperText Transfer Protocol
(e) Acronym for HTML …………….

Answer: HyperText Markup Language

2 thoughts on “Unit 2 : WEBSITE DEVELOPMENT USING HTML AND CSS Important (Exercise Questions)”

Leave a Reply

Your email address will not be published. Required fields are marked *