What is the purpose of the "charset" attribute in the "meta" tag?

  • To create a redirect to another page. 
  • To define the character encoding for the document. 
  • To set the background color. 
  • To specify the viewport settings. 
The charset attribute in the tag defines the character encoding for the HTML document. Specifying the correct character set ensures that special or non-ASCII characters are displayed correctly in the browser. For most modern web pages, the preferred encoding is UTF-8, as it supports a wide range of characters from different languages and symbols. 

The ______ attribute is used to specify the type of input control.

  • href 
  • id 
  • src 
  • type 
The type attribute specifies the type of element to display. Common values for this attribute include "text", "password", "submit", "radio", and "checkbox". It helps the browser render the appropriate input control for user interaction. 

What is the precedence order of styles defined in the internal and external style sheets?

  • External overrides Internal. 
  • Internal overrides External. 
  • They are combined and averaged. 
  • Whichever is loaded first takes precedence. 
In CSS, the specificity and source order determine which styles are applied. If the specificity is the same, the style that comes last in the source order will be applied. Therefore, since internal styles (those defined in a