Unit 2 : WEBSITE DEVELOPMENT USING HTML AND CSS Important (Exercise Questions)
Website Development using HTML:
Exercise:
1: What are the pre requisites to learn the basics of 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.
2: How do you define a HTML file?
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
3: What is the tag for making a comment?
Answer:
HTML <!–…–> Tag.
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.
4: What does <cite> and <pre> tag mean?
Answer:
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.).
5: What is the syntax to define background color in HTML?
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.
6: Explain the procedure to view source code in Mozilla Firefox, Google Chrome &Internet Explorer?
Answer:
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
- Click the menu icon on the browser toolbar.
- Select More tools, then View Source.
or
Press Ctrl+ U (Windows).
7: List out any three popular web browsers?
Answer: Three popular web browsers are:
Google Chrome, Safari, and Mozilla Firefox.
8: What do you mean by an anchor tag?
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.
9: How do you insert an image and create a table in the HTML page?
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.
10: What is the tag to insert a single line break?
Answer: <br> tag is used to insert a single line break.
11: What does W3C stand for?
Answer: The World Wide Web Consortium (W3C) is an international community that works together for the long-term growth of the Web.
12: Fill in the blanks:
(a) Word processors like …………….. should be avoided.
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)”