HTML: Kerala PSC Previous Questions

Are you preparing for the upcoming PSC exam and feeling overwhelmed by the vast HTML syllabus? Don't worry! The post below focuses on the most frequently asked HTML questions in previous Kerala PSC exams. 



Previous Year Repeated PSC Questions on HTML (Hypertext Makrup Language)



HTML Basics: Tags, Elements, and Attributes


  • Who is the father of HTML? Tim Berners-Lee.  (Programmer cum Operator, 2023)
  • What is the full form of HTML? HyperText Markup Language.  (Data Entry Operator (Scheduled Tribe Development) 2013)
    • HTML stands for – Hypertext Markup Language. (Laboratory Technical Assistant in Office Secretaryship, VHSE 2014)
    • What does HTML refer to? Hypertext Markup Language. (Office Superintendent (SR for SC/ST), 2022)
  • ______ is used for creating web pages – HTML.  (Time Keeper (Degree Level Main Examination 2022), 2023)
  • A markup language used for creating web pages and web applications – HTML. (Fingerprint searcher, 2021)
  • The filename extension for an HTML file is – .html. (Tradesman (Computer Engineering), 2016)
  • HTML belongs to which category of language? Markup Language. (Finance Assistant2023)
  • HTML is a subset of – SGML.  (Programmer cum Operator, 2023)
  • Which of the following is a file format for e-documents ? (Catalogue Assistant, 2023)
      • (A) HTTP         (B) IP/TCP
      • (C) FTP  (D) HTML
  • Which attributes is used to provide a unique name to an HTML element? id. (Finance Assistant2023)
  • The attribute of an HTML tag can be used to uniquely identify any element within an –  id. (System Analyst (SR for ST only)2019)
  • Which HTML element that have no content? (Junior Typist Clerk, 2023; Junior Instructor (Multimedia Animation & Special Effects), 2023)
    • (A) <br>  (B) <P>
    • (C) <a>  (D) None of these
  • In HTML, if we set the background colour as #FFFFFF, what will be the colour?  White. (Tradesman- Information Technology, 2024)
  • The unit of information on the web is referred as – Documents.  (Junior Instructor (Multimedia Animation & Special Effects), 2019)  
  • Which of the following method is used to find HTML elements? (Tradesman- Information Technology, 2023)
    •         (A) document.getElementById()
    •         (B) document.getElementByTagName()
    •         (C) document.getElementByClassName()
    •         (D) All of the above
  • What is the primary purpose of an HTML editor? Creating and editing web pages. (Confidential Assistant Gr II/LD Typist/ Typist Gr II, 2024)



HTML Structure: Head, Body, and Title Tags



HTML Tags


  • Web pages start with which of the following tag? <HTML> (Junior Instructor Computer Operator and Programming Assistant, 2019)
  • Tags in HTML are – not case sensitive. (Plus Two Level Main exam, 2023)
  • In HTML, closing tags are preceded by – Forward slash (/). (Computer Operator, 2016)
  • Which of the following is used to indicate to the browser about the direction in which the text in HTML should flow from right to left? (Tradesman (Information Technology), 2024) 
    • (A)  direction=“rtl”            (B) dir=“rtol”
    • (C) dir=“rtl”                      (D) direction=“rtol”
  • The correct sequence of HTML tags for starting a webpage is – HTML, Head, Title, Body. (Station Officer(Trainee), 2023)
  • What should be the first tag in any HTML document? <head>. (Jr Instructor (Information Communication Technology System Maintenance), 2019)
  • In which part of the HTML metadata is contained? head tag.   (Programmer cum Operator, 2023)
  • The meta tag which is used to control the behaviour of search engine crawlers is —————— – <meta name = “robots”>.  (Assistant Information Officer, 2024)
  • Choose the correct HTML element for the largest heading.  (Clerk/Cashier, Kerala Bank, 2024)
    • (A) <head>           (B) <h1>
    • (C) <h6>               (D) <h8>
  • Which one among the following heading tag uses the default font size? (Junior Instructor (Multimedia Animation & Special Effects), 2019)
    • (A) <h1>             (B) <h3>
    • (C) <h4>             (D) <h5>
  • Choose the correct HTML tag to make the text bold: (Junior Instructor(Information Communication Technology System Maintenance), 2019)
    • (A) <b>             (B) <bold>             (C) <strong>             (D) Both (A) and (B)
  • Specify empty tag listed below (Junior Assistant (Accounts) (SR for ST)2023)
    • (A) <HTML>            (B) <BR>            (B) <BODY>            (B) <P>
  • Which tag is used in html to preserve white spaces? <pre>.  (Junior Instructor (Multimedia Animation & Special Effects), 2019)
  • Which tag is used to follow the exact format of text which is written in HTML source document? <pre>.  (Tradesman (Information Technology), 2024)
  • Identify the block tag:  (Junior Instructor (Multimedia Animation & Special Effects), 2019)
    • (A)  <br>            (B) <b>
    • (C)  <i>              (D) <p>
  • Which html tag is used for defining the rows and cols of browser window? <frameset>.  (Junior Instructor (Multimedia Animation & Special Effects), 2019)
  • Marquee is a tag in HTML used to display text with scrolling effect.  (Junior Instructor(Information Communication Technology System Maintenance), 2019)
  • Which of the following statements is correct about HTML? (Manager Grade II (Society Category)2023)
    • (i)    HTML uses user defined tags
    • (ii)   HTML uses tags defined in the language
    • (iii) HTML is not a standard mark-up language
    • (iv) All HTML tags have an end tag
      • (A) Only (i)                         (B) Only (iii and iv)
      • (C) Only (i and ii)      (D) Only (ii)
  • HTML code to display the equation alogax=x   a<sup>log<sub>a</sub>x</sup>=x. (Tradesman (Information Technology), 2024) 
  • What will be the output of the following?   (Tradesman (Information Technology), 2024) 
    • <p>HTML stands for Hyper Text <del>Mark</del>
    •  <ins>Markup</ins> Language</p> 
    •  
    • (A) HTML stands for Hyper Text Mark Markup Language
    • (B) HTML stands for Hyper Text Markup Language
    • (C) HTML stands for Hyper Text (Mark) Markup Language
    • (D) HTML stands for Hyper Text Mark Markup Language



Creating Links: Anchor Tags and Hyperlinks



  • Name the tag used to add a hyperlink to the html file – <a>.  (Tradesman (Computer Engineering), 2016)
    • Html tag that is used to implement Hypertext Links in webpage is – <a>.  (Junior Instructor (Multimedia Animation & Special Effects), 2019)  
  • Link URL in HTML is specified using ——————— attribute – href.  (Junior Instructor (Computer Operator & Programming Assistant), 2023)
  • What is the HTML tag for creating a hyperlink? A href. (Lab Technical Assistant Computer Application, 2017)
  • Which attribute is used with <A> tag to display the linked page in a specified frame? target.  (Tradesman (Information Technology), 2024) 
  • Which of the following is used to return all <a> elements that have a href attribute? (Tradesman- Information Technology, 2023)
    •         (A) document.URL
    •         (B) document.Anchors
    •         (C) document.Rferrer
    •         (D) document.links





Image Insertion: Image Tag and Attributes


  • Name the tag used to add an image to the html file – <img>.  (Tradesman (Computer Engineering), 2016)
    • The HTML tag used to insert a picture in an HTML page is – <img>.  (Degree Level Preliminary Exam, 2022)
  • What is the attribute for<IMG>tag in HTML? src. (Data Entry Operator (Scheduled Tribe Development) 2013)
  • In HTML how do we insert an image?<img src=“image” > (HSST Computer Science, 2024)
  • An example for an empty tag in HTML is –  (Assistant Manager KSCD Main Exam, 2024)
    • (A) <html>
    • (B) <img>
    • (C) <body>
    • (D) <b>
  • The attribute of <img> tag used to display the text when the image is not possible to display – alt.  (Junior Instructor (Multimedia Animation & Special Effects), 2019) 


Lists: Unordered and Ordered Lists


Tables: Creating Tables with Rows and Columns


  • Which HTML tag is used to define a cell within a table row to hold data? <td>. (Junior Instructor (Multimedia Animation & Special Effects), 2023)
  • In which HTML tag is the ‘cellpadding’ attribute typically used? <table>. (Confidential Assistant Gr II/LD Typist/ Typist Gr II, 2024)
  • What is cell padding in HTML? Used to set space between cells.  (Data Entry Operator (Scheduled Tribe Development) 2013)


Forms: Input Fields, Text Areas, and Buttons


  • In the HTML < input> tag which type attribute is set in order to accept single-line text input but it masks the character as soon as a user enters it – Password.  (Workshop Instructor / Demonstrator / Instructor Gr.II (CSE), 2023)
  • With the form tag, which attribute is used to specify the server-side script that will process the form data? Action. (Junior Instructor (Multimedia Animation & Special Effects), 2023)
  • Which tag is used to group related controls within a form? <FIELDSET>.  (Tradesman (Information Technology), 2024) 
  • Which HTML tag is used to create a drop-down list? <SELECT>.  (Confidential Assistant Gr II/LD Typist/ Typist Gr II, 2024)
    • Which of the following HTML tags is used to create a drop down list ? (Degree Prelims, Stage I,  2021)
      • (A) <INPUT> tag        (B) <SELECT> tag
      • (C) <LI> tag      (D) <DL> tag
  • Which of the following defines a file-select field and a “Browse” button for file uploading?    (Tradesman (Information Technology), 2024) 
    • (A) <file src=“browse”>
    • (B) <input type=“browse”> 
    • (C) <input type=“file”> 
    • (D) <input type=“select”>
  •  Which is true?  (Junior Instructor (Multimedia Animation & Special Effects), 2019)
    • (A) The buttons in a radio button group always have same names
    • (B) The buttons in a radio button group always have unique names
    • (C) Names are optional
    • (D) Both (A) and (C) are true 


Text


  • Which HTML element is used to define a multi-line input field? <textarea>.  (Junior Instructor (Computer Operator & Programming Assistant), 2023)
    • The HTml tag is used to specify a multiline text input is – <TEXTAREA>. (Assistant/ LDC/Cashier/Branch Manager, 2024)
  • ___ html element is used for short quote – <q> (Deputy Manager, 2023; Programmer cum Operator, 2023)
  • Which element is used to get highlighted text in HTML5? <mark>.   (Programmer cum Operator, 2023)



Embedding Content: Iframes



  • ________is used to display a web page within a web page – iframe.  (Junior Typist Clerk, 2023)
    • What is the use of iframe in HTML? To display a webpage within a webpage.   (Junior Instructor (Computer Operator & Programming Assistant), 2023)
    • Which tag is used to embed another document within the current HTML document? iframe.  (Junior Instructor (Multimedia Animation & Special Effects), 2023)
  • Which of the following is the correct syntax of <iframe> tag? (Tradesman (Information Technology), 2024) 
    • (A) <iframe href=“https://www.keralapsc.gov.in"title="KPSC"></iframe> 
    • (B) <iframe link=“https://www.keralapsc.gov.in"title="KPSC"></iframe>
    • (C) <iframe src=“https://www.keralapsc.gov.in"title="KPSC"></iframe>
    • (D) <iframe path=“https://www.keralapsc.gov.in"title="KPSC"></iframe>



Cascading Style Sheets (CSS)


  • CSS is an acronym for – Cascading Style Sheets.  (Junior Instructor(Information Communication Technology System Maintenance), 2019)
  • The first style sheets was developed in – 1996. (Junior Instructor (Multimedia Animation & Special Effects), 2019)
  • Which one is not a selector type in CSS?   (Junior Instructor (Multimedia Animation & Special Effects), 2019)
    • (A) Universal Selector                         (B) id Selector
    • (C) Class Selector                                (D) Name Selector 

  • Identify correct CSS rule to set all <p> elements on the page center-aligned, with
    a red text color  –  p { text-align: center; color: red;} (Workshop Instructor / Demonstrator / Instructor Gr.II (CSE), 2023)
  • What type of CSS is the following code snippet? (Workshop Instructor / Demonstrator / Instructor Gr.II (CSE), 2023)
    • <h1 style="color:blue; ">A Blue Heading</h1>
      • (A) Inline                         (B) Internal
      • (C) External                     (D)  None of the above

Thanks for reading!!!