Class 7 : Introduction to HTML 5

I. DESCRIPTIVE TYPE QUESTIONS

  1. Name the different types of HTML editors. Give one example of each type.
    Ans. There are two types of HTML editors. They are WYSIWYG editor and text editor.
    Examples : WYSIWYG editor – Google Web Designer.
    Text editor – Notepad.
  2. What are HTML elements ?
    Ans. A webpage is made up of HTML elements. They are identified by HTML tags. A HTML element consists of the opening tag , the closing tag and everything in between. Some HTML elements do not have closing tag. Eg :- Paragraph Tag <P>….</P> , Break tag <BR> etc.
  3. Differentiate between container and empty elements.
    Ans. HTML elements that include both ON and OFF tags are called Container elements. Eg : Bold tags <B>…… </B>
    HTML elements that include only ON tag are called empty elements. Eg: Horizontal Rule tag. <HR>
  4. Mention the ways in which the color property can be assigned its values.
    Ans. The color property can be assigned values using 3 ways :
    a. Hexadecimal color codes . Eg. color : #0065FB
    b. RGB color values . Eg. color : RGB(34,23,200)
    c. Standard color names Eg. color : cyan
  5. Which tag is used for inserting image in a HTML document ?
    Ans. In HTML, images are defined with the <img> tag.
    • The <img>tag is empty, it does not have a closing tag.
    • The attributes are src , width , height.
    where src specifies the address of the image , width and height resize the image to the given pixels.
    Eg : <img src= ”imagename.jpg “  width = 300 height = 300 />
  6. Mention the tag that is used to link HTML document.
    Ans. Hyperlinks are defined with the HTML tag. When you move the mouse over a link, the mouse arrow will turn into a little hand. You can click on a link and jump to another document Eg : Eg :  <a href = “SampleFile.html”> Click Here </a>
    The link text displayed on the browser is Click Here. When the text is clicked , the browser displays SampleFile.html.
  7. What is the use of marquee tag ?
    Ans. The is a non-standard HTML tag which is used to create a scrolling text or an image. It was used to make the text/image scroll horizontally across or vertically down the web page. Eg : <marquee> 50% Offer </marquee>

Leave a comment