Web Development
Explore subjects and practice MCQs
2
Chapters
100
Total MCQs
HTML
Answer: HTML stands for Hyper Text Markup Language, which is the standard markup language for creating web pages.
Answer: The <ul> tag defines an unordered (bulleted) list. <ol> is for ordered lists and <li> defines list items.
Answer: The <br> tag inserts a single line break. It is an empty element which means it has no closing tag.
Answer: The href attribute specifies the URL of the page the link goes to in an <a> tag.
Answer: <h1> defines the largest heading and <h6> defines the smallest heading.
Answer: The <a> tag (anchor tag) is used to create hyperlinks in HTML.
Answer: The <img> tag is used to embed images in HTML pages. It uses the src attribute to specify the image URL.
Answer: The <em> tag is used to define emphasized text, which is typically displayed in italics but with semantic importance.
Answer: The alt attribute provides alternative text for an image if it cannot be displayed or for accessibility purposes.
Answer: <input type="checkbox"> creates a checkbox input field in HTML forms.
Answer: The <tr> tag defines a row in an HTML table. <td> defines table data cells and <th> defines header cells.
Answer: The style attribute with background-color property is the modern way to set background color in HTML.
Answer: The <title> element defines the title of the document, which appears in the browser tab.
Answer: <input type="text"> creates a single-line text input field in HTML forms.
Answer: The <ol> tag defines an ordered (numbered) list. Each list item is defined with the <li> tag.
Answer: The style attribute is used to add inline CSS styles directly to HTML elements.
Answer: The <select> element creates a drop-down list. Options are defined with <option> tags.
Answer: The <p> tag defines a paragraph in HTML. It automatically adds space before and after the content.
Answer: The <hr> tag creates a horizontal rule (line) that separates content in an HTML page.
Answer: The <th> tag defines a header cell in an HTML table, which is typically bold and centered.