Web Development using HTML and CSS Questions and Answers

Teachers and Examiners (CBSESkillEduction) collaborated to create the Web Development using HTML and CSS Questions and Answers. All the important Information are taken from the NCERT Textbook Web Application (803) class 11.

Web Development using HTML and CSS Questions and Answers

1. What are the pre requisites to learn the basics of HTML?
Answer – The pre requisites to learn the basics of HTML first you require a text editor, such as Notepad and an Internet browser, such as Internet Explorer, Netscape Navigator or chrome etc.

2. How do you define a HTML file?
Answer – The actual documents are plain text files with unique “tags” or codes that a web browser uses to understand and display data on your computer screen.
a. HTML stands for Hyper Text Markup Language
b. An HTML file is a text file containing small markup tags
c. The markup tags tell the Web browser how to display the page
d. An HTML file must have an htm or html file extension

Web Development using HTML and CSS Questions and Answers

3. What is the tag for making a comment?
Answer – A comment in HTML is text that is enclosed in the <!—   —> tags. By using this technique, you can inform a browser that some elements are comments and shouldn’t be displayed on the front end. You can make notes in the comments tag to remind yourself where you left off throughout the building process.

4. What dose <cite> and <pre> tag mean?
Answer – Preformatted text is defined by the <pre> tag. A fixed-width font is used to display text in a< pre> element. The title of a creative work is defined by the <cite> tag (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 – <body bgcolor=“#000000”>
<body bgcolor=“rgb(0,0,0)”>
<body bgcolor=“black”>

Web Development using HTML and CSS Questions and Answers

6. Explain the procedure to view source code in Mozilla Firefox, Google Chrome &Internet Explorer?
Answer – Open Mozilla Firefox >> Right click on webpage >> Click on View Source code.

7. List out any three popular web browsers?
Answer – Most popular web browsers are –
a. Chrome
b. Mozilla Firefox
c. Safari
d. Edge

8. What do you mean by an anchor tag?
Answer – A hyperlink is defined by the <a> tag and is used to connect pages. The href attribute of the< a> element, which denotes the location of the link.

Web Development using HTML and CSS Questions and Answers

9. How do you insert an image and create a table in the HTML page?
Answer – Any section of an HTML page can easily contain images. Use the <img> elements to insert images into HTML pages. The <table> tag is used to generate HTML tables. Table rows are created using the <tr> tag, while data column are created using the <td> tag.

10. What is the tag to insert a single line break?
Answer – To insert a single line break you can use <br> tag.

Web Development using HTML and CSS Questions and Answers

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. Why do we use CSS? What are its basic advantages?
Answer – The style and feel of a web page is handled by CSS. The colour of the text, the font style, the distance between paragraphs, the size and arrangement of columns, etc. may all be altered using CSS.
Advantages of CSS are –
a. CSS saves time
b. Easy maintenance
c. Global web standards
d. Platform Independence

Web Development using HTML and CSS Questions and Answers

13. What are the ways in which you can use CSS in your HTML document?
Answer – You can use CSS in three ways in your HTML document:
a. External Style Sheet – Define style sheet rules in a separate .css file and then include that file in your HTML document using HTML <link> tag.
b. Internal Style Sheet – Define style sheet rules in header section of the HTML document using <style> tag.
c. Inline Style Sheet – Define style sheet rules directly along with the HTML elements using style attribute.

14. What are inline style sheets?
Answer – Define style sheet rules directly along with the HTML elements using style attribute.

15. How are internal style sheets used?
Answer – A style for a single HTML page is established using an internal CSS. A <style> element in the <head> section of an HTML page contains the definition of an internal CSS.

Web Development using HTML and CSS Questions and Answers

16. Does the use of CSS saves time?
Answer – When writing CSS, you can reuse the same sheet across different HTML pages. Each HTML element has a style that you can choose and use on as many different Web sites as you like. Pages load more quickly if you use CSS instead of manually writing HTML tag attributes each time.

17. How are external style sheets used?
Answer – An external style sheet is employed to apply a rule to numerous pages. A link in the webpage’s head section can be used to retrieve an external style sheet, which is a different CSS file. The same link can be used by several websites to access the stylesheet.

Web Development using HTML and CSS Questions and Answers

18. Why are universal and type selectors used?
Answer – The CSS universal selectors are represented by the asterisk (*). It can be applied to choose any kind of HTML page element. To choose a child object, a selector can alternatively be used after the asterisk. When we want to select every element on the page. Type selector is also commonly referred to as a tag name selector or an element selector. The selectors span, em, and strong were used in the type selector.

19. What do we do when we have to apply style rule to a particular element only when it lies inside a particular element?
Answer – Descendant Selectors is used to aplay particular element only when it lies inside a particular element.

20. Explain the id selector.
Answer – The id selector is used to select only element which have a specific id. Id selector must start with a pound sign (#).

Web Development using HTML and CSS Questions and Answers

21.Can we define multiple style rules?
Answer – By grouping CSS selectors, you may apply the same styles to a variety of element without having to repeat them across your stylesheet.

22. What are the rules to override any style sheet?
Answer –
Any inline stylesheet takes the highest priority. …
Any rule defined in external style sheet file takes the lowest priority, and rules defined in this file will be applied only when above two rules are not applicable.

Web Development using HTML and CSS Questions and Answers

23. How are the color codes represented in a style sheet?
Answer – Hexadecimal (or hex) values are the most used way to express colours in CSS. Actually, hex values are only another way to express RGB values. Six hexadecimal numerals are used in place of three values between 0 and 255.

24. How do we select a background attachment?
Answer – You can indicate whether the background picture is fixed or scrolls with the rest of the page in the browser window using the background-attachment attribute. The three values for this property are scroll, fixed, and local.

Web Development using HTML and CSS Questions and Answers

25. Can we set the text direction? If yes then how?
Answer – Yes we can. To indicate which direction the text should run, the CSS direction property is used in conjunction with the unicode-bidi property (i.e. from left to right or right to left).

26. Is RGB() property supported by all browsers?
Answer – Not all browser support but maximum browser support RGB().

Employability Skills Class 11 Notes

Employability Skills Class 11 MCQ

Employability Skills Class 11 Questions and Answers

Web Application Class 11 Notes

Web Application Class 11 MCQ

Web Application Class 11 Questions and Answers

error: Content is protected !!