English

Mention any two purposes of using comments while designing a HTML webpage. - Computer Applications

Advertisements
Advertisements

Question

Mention any two purposes of using comments while designing a HTML webpage.

Short Note

Solution

The purposes for using comments while designing an HTML webpage:

  1. With comments, one can place notifications and reminders in the HTML code.
  2. Comments are also great for debugging HTML because you can comment out HTML lines of code, one at a time, to search for errors.
shaalaa.com

Notes

1 Mark each for any two correct purposes.

HTML tags
  Is there an error in this question or solution?
2023-2024 (March) Board Sample Paper by shaalaa.com

RELATED QUESTIONS

Write an HTML statement to illustrate the usage of alink and vlink attributes.


Write the difference between <dt> and <dd> tags.


Which of the following options is an INVALID attribute of <font> tag in HTML?


Assertion (A): <br> is a container tag.

Reason: HTML elements that have both opening and closing tags are considered container tags.


Illustrate the use of the radio button input type on an HTML form with an appropriate code and the corresponding output.


Write the HTML code to design the web page as shown below, considering the specifications that follow. You can write the code for any four specifications out of the given six specifications.

Home Service

 

We are happy to provide you with all the help at your residence.
Special discount offers from (1st May 2022 to 30th June 2022).
Please contact us for the following services: Maid/Servant (Cleaning)
Maid/Servant (Cooking)
Driver
Queries: [email protected]

Specifications:

  • The background color of the page should be yellow and the text for the page should be in blue color.
  • Heading 'Homes Services' should be the first level of heading.
  • The image named 'service.png' should be placed on the web page.
  • The font size for the paragraph and the list of services should be 4 and the Font face should be Verdana. Superscript tags should be used wherever required.
  • The services (as shown in the above web page) should be written with the help of the unordered list.
  • The bottom-most line of 'Queries: help@ homeservices.com" should be a link to open the user's default mail client to send queries to the mentioned email id.

Events
The following events are scheduled to be held on 1st April 2023.
The timings are as follows:
1. 9.00 AM - 10.00 AM Flag Hoisting
2. 10.00 AM - 11.00 AM Painting Competition
3. 11.00 AM - 12.30 PN Dance Competition
4. 12.30 PM - 2.00 PM Closing Ceremony
For any queries contact [email protected]
Phone: 9999999999

Write the HTML code to design the above-shown web page titled 'Events', considering the specifications given below. You can write the code for any four specifications out of the given six specifications.

Specifications:

  • The background color of the page should be cyan, and the font face for the page should be Arial.
  • Heading 'Events' should be the first level of heading.
  • The font size for the paragraph and the list of products should be 5.
  • The schedule (as shown on the above web page) should be written with the help of the numbered list. Superscript tags should be used wherever required.
  • The bottom-most lines of 'For any queries ...' and 'Phone: .... ' should be on hold.
  • The contact email [email protected] should be a link to open the user's default mail client to send queries to the mentioned email id.

Which of the following tag can be used to draw a horizontal line on a webpage?


In HTML, <dl>, <dd>, and <dt> tags are used to create ______.


Write a suitable HTML statement to display the following text on a webpage in appropriate subscript and superscript form:

X2


Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×