Code Execution Championship -round-1- HTML

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Catherine Halcomb
Catherine Halcomb
Community Contributor
Quizzes Created: 1384 | Total Attempts: 6,198,065
Questions: 39 | Attempts: 683

SettingsSettingsSettings
HTML Quizzes & Trivia

Pls Note:
1) There are 20 questions in a quiz.
2) Time duration is 15 minutes.
3) Only one attempt is allowed.
4) Candidate can navigate questions and review answers before final submission
5) Compulsory to fill all the mentioned details.
6) Kindly provide the correct details.


Questions and Answers
  • 1. 

    What does the HTML stand for?

    • A.

      Hyperlinks and Text Markup Language

    • B.

      Hyper Text Markup Language

    • C.

      Home Tool Markup Language

    • D.

      Hyper Tool Markup Language

    Correct Answer
    B. Hyper Text Markup Language
    Explanation
    HTML stands for Hyper Text Markup Language. It is a standard markup language used for creating and structuring web pages. It is the language that is used to create the basic structure and content of a webpage, including text, images, links, and other elements. HTML uses tags to define different elements and their properties, allowing web browsers to interpret and display the content correctly.

    Rate this question:

  • 2. 

    Who is making the Web standards?

    • A.

      Mozilla

    • B.

      Microsoft

    • C.

      Google

    • D.

      The World Wide Web Consortium

    Correct Answer
    D. The World Wide Web Consortium
    Explanation
    The World Wide Web Consortium (W3C) is responsible for making the Web standards. W3C is an international community that develops open standards to ensure the long-term growth of the Web. It consists of various organizations, including technology companies, research institutions, and individual experts, who collaborate to create and maintain standards for HTML, CSS, JavaScript, and other web technologies. The involvement of multiple stakeholders ensures that the standards are comprehensive, inclusive, and widely accepted, leading to a more consistent and interoperable web experience for users across different platforms and devices.

    Rate this question:

  • 3. 

    Choose the correct HTML element for the largest heading:

    • A.

      Heading

    • B.

      H6

    • C.

      H1

    • D.

      Head

    Correct Answer
    C. H1
    Explanation
    The correct HTML element for the largest heading is h1. In HTML, the heading elements (h1-h6) are used to define headings of different sizes, with h1 being the largest and h6 being the smallest. Therefore, h1 is the correct choice for the largest heading.

    Rate this question:

  • 4. 

    What is the correct HTML element for inserting a line break?

    • A.

      Lb

    • B.

      Br

    • C.

      Break

    • D.

      Option b & c

    Correct Answer
    B. Br
    Explanation
    The correct HTML element for inserting a line break is the "br" element. This element is a self-closing tag and does not require a closing tag. It is used to create a line break or a new line within a paragraph or block of text. Using the "br" element allows for better formatting and readability of the content on a webpage.

    Rate this question:

  • 5. 

    What is the correct HTML for adding a background color?

    • A.

      ' yellow ''

    • B.

      '

    • C.

      '

    • D.

      None of these

    Correct Answer
    C. '
    Explanation
    The correct HTML for adding a background color is using the "style" attribute within the opening tag of the element we want to add the background color to. For example, to add a yellow background color, we would use 'style="background-color: yellow;"'.

    Rate this question:

  • 6. 

    Choose the correct HTML element to define important text

    • A.

      Strong

    • B.

      Important

    • C.

      I

    • D.

      B

    Correct Answer
    A. Strong
    Explanation
    The correct HTML element to define important text is the "strong" element. This element is used to indicate that the enclosed text should be given strong importance, typically displayed in bold. It is commonly used to highlight keywords, headings, or important information within a paragraph.

    Rate this question:

  • 7. 

    Choose the correct HTML element to define emphasized text

    • A.

      Italic

    • B.

      Em

    • C.

      I

    • D.

      None of these

    Correct Answer
    B. Em
    Explanation
    The "em" element is the correct HTML element to define emphasized text. It is used to indicate stress or emphasis on a certain part of the text. The "em" element is typically displayed in italics by default, but its purpose is to convey emphasis rather than to control the styling.

    Rate this question:

  • 8. 

    Which character is used to indicate an end tag?

    • A.

      *

    • B.

      ^

    • C.

      /

    • D.

    Correct Answer
    C. /
    Explanation
    The character "/" is used to indicate an end tag in HTML and XML. In these markup languages, tags are used to define the structure and formatting of a document. An end tag is used to mark the closing of an element or a tag. It is placed after the content within the opening tag to indicate where it ends. Therefore, the correct answer is "/".

    Rate this question:

  • 9. 

    How can you open a link in a new tab/browser window?

    • A.

      '

    • B.

      '

    • C.

      '

    • D.

      None of these

    Correct Answer
    B. '
  • 10. 

    Which of these elements are related to table?

    • A.

      ' '' ''

    • B.

      ' '' ''

    • C.

      ' '' ''

    • D.

      ' '' ''

    Correct Answer
    B. ' '' ''
  • 11. 

    How can you make a numbered list?

    • A.

      Ul

    • B.

      Dl

    • C.

      List

    • D.

      Ol

    Correct Answer
    D. Ol
    Explanation
    To make a numbered list, you can use the "ol" tag in HTML. The "ol" stands for ordered list, and it automatically numbers the list items. This is different from an unordered list, which uses the "ul" tag. The "dl" tag is used for creating a description list, not a numbered list. Therefore, the correct answer is "ol".

    Rate this question:

  • 12. 

    How can you make a bulleted list?

    • A.

      Ul

    • B.

      List

    • C.

      Dl

    • D.

      Ol

    Correct Answer
    A. Ul
    Explanation
    To make a bulleted list, the "ul" tag is used in HTML. This tag stands for "unordered list" and is used to create a list of items without any particular order or hierarchy. By using the "ul" tag, each item in the list will be preceded by a bullet point, indicating that it is a separate item in the list.

    Rate this question:

  • 13. 

    What is the correct HTML for making a text input field?

    • A.

    • B.

    • C.

      Textfield

    • D.

    Correct Answer
    B.
    Explanation
    The correct HTML for making a text input field is to use the element with the type attribute set to "text". This can be written as . This will create a text input field where users can enter text or data.

    Rate this question:

  • 14. 

    What is the correct HTML for making a drop-down list?

    • A.

      '

    • B.

      '

    • C.

      List

    • D.

      Select

    Correct Answer
    D. Select
    Explanation
    The correct HTML for making a drop-down list is by using the 'select' element. This element is used to create a drop-down list of options for the user to choose from.

    Rate this question:

  • 15. 

    What is the correct HTML for making a text area?

    • A.

      '

    • B.

      '

    • C.

      Textarea

    • D.

      '

    Correct Answer
    A. '
    Explanation
    The correct HTML for making a text area is . This element is used to create a multi-line input field where users can enter text.

    Rate this question:

  • 16. 

    What is the correct HTML for inserting an image?

    • A.

      '

    • B.

      'image.gif''

    • C.

      '

    • D.

      '

    Correct Answer
    C. '
    Explanation
    The correct HTML for inserting an image is ''. This HTML tag is used to embed an image into a webpage. The 'src' attribute specifies the source file of the image, in this case, "image.gif".

    Rate this question:

  • 17. 

    What is the correct HTML for inserting a background image?

    • A.

      '

    • B.

      '

    • C.

      '

    • D.

      ' background.gif' '

    Correct Answer
    A. '
    Explanation
    The correct HTML for inserting a background image is by using the "style" attribute within the "body" tag, and setting the "background-image" property to the path of the image file. For example: .

    Rate this question:

  • 18. 

    HTML is what type of language ? 

    • A.

      Scripting Language

    • B.

      Markup Language

    • C.

      Programming Language

    • D.

      Network Protocol

    Correct Answer
    B. Markup Language
    Explanation
    HTML stands for HyperText Markup Language. It is a markup language used for creating the structure and presentation of web pages. Unlike programming languages, HTML is not used to create complex algorithms or perform calculations. Instead, it is used to define the structure and layout of web content, such as headings, paragraphs, links, images, and tables. Therefore, the correct answer is Markup Language.

    Rate this question:

  • 19. 

    HTML web pages can be read and rendered by _________. 

    • A.

      Compiler

    • B.

      Server

    • C.

      Web Browser

    • D.

      Interpreter

    Correct Answer
    C. Web Browser
    Explanation
    HTML web pages can be read and rendered by web browsers. Web browsers are software applications that allow users to access and view web pages. They interpret the HTML code and display the content of the web page, including text, images, and multimedia elements. Web browsers also handle other web technologies such as CSS and JavaScript, enabling them to provide a rich and interactive browsing experience.

    Rate this question:

  • 20. 

    Tags and test that are not directly displayed on the page are written in _____ section. 

    • A.

      Head

    • B.

      Title

    • C.

      Body

    • D.

      Html

    Correct Answer
    A. Head
    Explanation
    The "head" section is where meta information and other non-displayed elements of a webpage are typically placed. This includes the title of the page, which appears in the browser tab or window, as well as any linked stylesheets or scripts. The "body" section contains the visible content of the webpage, while the "html" section encompasses the entire HTML document.

    Rate this question:

  • 21. 

    How can you create an e-mail link? 

    • A.

      '

    • B.

      'a@b''

    • C.

      '

    • D.

      '

    Correct Answer
    D. '
    Explanation
    To create an email link, you need to use the HTML anchor tag and specify the "mailto" attribute followed by the email address you want to link. In this case, the correct answer is 'a@b'.

    Rate this question:

  • 22. 

    What is the correct HTML for creating a hyperlink? 

    • A.

      'A''

    • B.

      'B''

    • C.

      ''example''

    • D.

      'example''

    Correct Answer
    C. ''example''
    Explanation
    The correct HTML for creating a hyperlink is using the tag with the href attribute. The href attribute specifies the URL of the page the link goes to. In this case, the correct answer is 'example', as it represents the URL or destination of the hyperlink.

    Rate this question:

  • 23. 

    What is the preferred way for adding a background color in HTML? 

    • A.

      '

    • B.

      'yellow''

    • C.

      '    

    • D.

      'text''

    Correct Answer
    C. '    
    Explanation
    The preferred way for adding a background color in HTML is by using CSS.

    Rate this question:

  • 24. 

    How do I add scrolling text to my page? 

    • A.

      Scroll

    • B.

      Marquee

    • C.

      Ciruler

    • D.

      Tab

    Correct Answer
    B. Marquee
    Explanation
    To add scrolling text to a webpage, the "marquee" tag can be used. This HTML tag creates a scrolling effect for text or images within it. By enclosing the desired content within the "marquee" tags, the text will automatically scroll horizontally across the page. This is a simple and effective way to add dynamic movement to a webpage and draw attention to important information or announcements.

    Rate this question:

  • 25. 

    What is a web worker? 

    • A.

      It helps in executing the tags on the page

    • B.

      It is a JavaScript running in the background without affecting the performance of the page

    • C.

      It is a functional tool

    • D.

      None of the above

    Correct Answer
    B. It is a JavaScript running in the background without affecting the performance of the page
    Explanation
    A web worker is a JavaScript running in the background without affecting the performance of the page. Web workers are used to execute scripts in parallel to the main browser thread, allowing tasks to be performed without blocking the user interface. This helps in improving the performance of the page by offloading heavy computations to a separate thread, making the page more responsive to user interactions.

    Rate this question:

  • 26. 

    A simple text file which tells the browser what to cache is known as a ________. 

    • A.

      Input files

    • B.

      HTML file

    • C.

      A manifest file

    • D.

      Output files

    Correct Answer
    C. A manifest file
    Explanation
    A manifest file is a simple text file that tells the browser what to cache. It lists all the files that should be cached by the browser, allowing the website to be accessed offline. By specifying which files should be stored in the cache, the manifest file helps improve the performance and user experience of the website.

    Rate this question:

  • 27. 

    Which attribute is used to start a video automatically? 

    • A.

       submit

    • B.

      Select

    • C.

      '

    • D.

       autoplay

    Correct Answer
    D.  autoplay
    Explanation
    The attribute used to start a video automatically is "autoplay".

    Rate this question:

  • 28. 

    What is the inline style used for?

    • A.

      To apply style to all the pages

    • B.

      To applying a unique style to a single HTML element

    • C.

      To define a common style for all HTML elements on a page

    • D.

      All of the above

    Correct Answer
    B. To applying a unique style to a single HTML element
    Explanation
    The correct answer is "To applying a unique style to a single HTML element". Inline styles are used to apply specific styles to individual HTML elements. This allows for customization and unique styling for each element, rather than applying a common style to all elements or all pages.

    Rate this question:

  • 29. 

    What are the two method attributes that are used while submitting the forms

    • A.

      GET

    • B.

      POST

    • C.

      SUBMIT

    • D.

      Both A & B

    Correct Answer
    D. Both A & B
    Explanation
    The two method attributes that are used while submitting forms are GET and POST. The GET method is used to request data from a specified resource, while the POST method is used to submit data to be processed to a specified resource. Both A & B are correct because both GET and POST are commonly used methods for submitting forms.

    Rate this question:

  • 30. 

    Which of the following statements is true about a URL? 

    • A.

      It is used to address a document on the web

    • B.

      It is known as Uniform Resource Locator

    • C.

      The web pages from the web servers are requested by the URL

    • D.

      All of the above

    Correct Answer
    D. All of the above
    Explanation
    All of the given statements are true about a URL. A URL is used to address a document on the web, it is known as a Uniform Resource Locator, and web pages from web servers are requested by the URL.

    Rate this question:

  • 31. 

    What are the three ways by which styling can be added to the HTML elements? 

    • A.

      Inter, Outer, External

    • B.

      Outline, Inline, External

    • C.

      Inline, Internal, External

    • D.

      None of the above

    Correct Answer
    C. Inline, Internal, External
    Explanation
    Styling can be added to HTML elements in three ways: inline, internal, and external. Inline styling is applied directly to the element using the style attribute. Internal styling is defined within the HTML document using the tag in the section. External styling is achieved by linking an external CSS file to the HTML document using the tag.

    Rate this question:

  • 32. 

    Which HTML element defines the title of a work and is usually displayed in italics? 

    • A.

      '

    • B.

      '

    • C.

      '

    • D.

      '

    Correct Answer
    C. '
    Explanation
    The correct answer is . This element is used to define the title of a webpage, which is displayed in the browser's title bar or tab. It is typically displayed in italics to differentiate it from the rest of the content on the page.

    Rate this question:

  • 33. 

    What can be used to change the default style of an HTML element? 

    • A.

      Default attribute

    • B.

      Style attribute

    • C.

      Text align

    • D.

      Both A & B

    Correct Answer
    B. Style attribute
    Explanation
    The style attribute can be used to change the default style of an HTML element. This attribute allows you to specify CSS properties and values directly within the HTML tag, overriding any default styles that may be applied. By using the style attribute, you can customize the appearance of individual elements without having to modify a separate CSS file or apply inline styles.

    Rate this question:

  • 34. 

    If you want to change the text colour to red which of the following tags will you use? 

    • A.

      < body text = red>

    • B.

      < body bgcolour = red>

    • C.

      < body colour = red>

    • D.

      None of the above

    Correct Answer
    A. < body text = red>
    Explanation
    The correct answer is "< body text = red>". This is because the "text" attribute is used to specify the color of the text in the body of an HTML document. The other options are incorrect because "bgcolour" is not a valid attribute for the body tag, "colour" is not a valid attribute at all, and "None of the above" is not a valid HTML tag.

    Rate this question:

  • 35. 

    To create a checkbox for a form which tag is used?

    • A.

      < input type = “checkbox”>

    • B.

      < checkbox>

    • C.

      < input = checkbox>

    • D.

       < cb>

    Correct Answer
    A. < input type = “checkbox”>
    Explanation
    The correct answer is . This is because the tag is used to create form elements, and the "type" attribute is set to "checkbox" to create a checkbox input.

    Rate this question:

  • 36. 

    Which of the following is a declaration for an HTML document? 

    • A.

      '

    • B.

      '.....''

    • C.

      '.....''

    • D.

      '.....''

    Correct Answer
    A. '
    Explanation
    The given answer '' is correct because it is the declaration for an HTML document. It is used to inform the web browser about the version of HTML being used in the document. This declaration is placed at the very beginning of an HTML document and helps the browser to interpret and display the content correctly.

    Rate this question:

  • 37. 

    To create html page ,you need

    • A.

      Web browser

    • B.

      Text editor

    • C.

      Both a and b

    • D.

      None of the above

    Correct Answer
    C. Both a and b
    Explanation
    To create an HTML page, you need both a web browser and a text editor. A web browser is necessary to view and test the HTML page, while a text editor is required to write and edit the HTML code. Without a web browser, you won't be able to see how the HTML page looks and functions, and without a text editor, you won't be able to write or modify the HTML code. Therefore, both a web browser and a text editor are essential for creating an HTML page.

    Rate this question:

  • 38. 

    What does '' tag add to your page

    • A.

      Long break

    • B.

      Paragraph break

    • C.

      Line break

    • D.

      None of the above

    Correct Answer
    C. Line break
    Explanation
    The "br" tag in HTML adds a line break to the page. It is used to create a new line without starting a new paragraph. This tag is commonly used to separate lines of text or create spacing between elements on a webpage. It is not used for long breaks or paragraph breaks, which are achieved using other HTML tags.

    Rate this question:

  • 39. 

    Adding a border to your image helps visitor to recognise it as?

    • A.

      A frame

    • B.

      A link

    • C.

      A picture

    • D.

      None of the above

    Correct Answer
    B. A link
    Explanation
    Adding a border to an image helps visitors to recognize it as a link. Borders are commonly used to indicate clickable elements on a webpage, and by adding a border to an image, it visually suggests that the image can be clicked or leads to another page or action. This helps users to understand that the image is not just a static picture but has interactive functionality associated with it.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 09, 2017
    Quiz Created by
    Catherine Halcomb
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.