HTML Structure
Which of the following is the correct structure for a basic HTML document?
- u003Chtmlu003Eu003Cheadu003Eu003C/headu003Eu003Cbodyu003Eu003C/bodyu003Eu003C/htmlu003E
- u003Cheadu003Eu003Chtmlu003Eu003Cbodyu003Eu003C/htmlu003Eu003C/headu003E
- u003Cbodyu003Eu003Chtmlu003Eu003Cheadu003Eu003C/headu003Eu003C/bodyu003Eu003C/htmlu003E
- u003C!DOCTYPE htmlu003Eu003Chtmlu003Eu003Cheadu003Eu003Ctitleu003ETitleu003C/titleu003Eu003C/headu003Eu003Cbodyu003EContentu003C/bodyu003Eu003C/htmlu003E
- u003Chtmlu003Eu003Cbodyu003Eu003Cheadu003Eu003C/headu003Eu003C/bodyu003Eu003C/htmlu003E
HTML Attributes
What is the purpose of attributes in HTML elements?
- To define the element's content
- To format the element's appearance using CSS
- To provide additional information about the element, such as its ID or class
- To create links between HTML pages
- To execute JavaScript code
Semantic HTML
Which of the following HTML5 tags is considered a semantic element that represents a self-contained composition in a document?
- u003Cdivu003E
- u003Carticleu003E
- u003Cspanu003E
- u003Cheaderu003E
- u003Casideu003E
HTML Forms
Which HTML element is used to define a form for user input?
- u003Cformu003E
- u003Cinputu003E
- u003Ctextareau003E
- u003Cbuttonu003E
- u003Cselectu003E
HTML Lists
What is the correct HTML for creating an ordered list?
- u003Culu003E
- u003Colu003E
- u003Cliu003E
- u003Cdlu003E
- u003Clistu003E
HTML Images
Which attribute is mandatory for the `u003Cimgu003E` tag?
- alt
- src
- title
- href
- source
HTML Links
In HTML, which tag is used to create a hyperlink?
- u003Clinku003E
- u003Cau003E
- u003Chyperlinku003E
- u003Curlu003E
- u003Chrefu003E
HTML Tables
Which HTML tag defines a table row?
- u003Ctableu003E
- u003Ctdu003E
- u003Cthu003E
- u003Ctru003E
- u003Ctablerowu003E
HTML Input Types
Which input type should be used for a field where the user needs to enter their email address?
- text
- email
- number
- url
- address
HTML Character Encoding
Which HTML tag is used to define the character set for the HTML document?
- u003Ccharsetu003E
- u003Cmeta charset='UTF-8'u003E
- u003Cencodingu003E
- u003Ccharacteru003E
- u003Cscriptu003E