Q. What is HTML?
Ans. HTML stands for HyperText Markup Language. It is used to structure the content of web pages.
Q. What is the full form of HTML?
Ans. HyperText Markup Language.
Q. What is an HTML tag?
Ans. An HTML tag is a markup keyword enclosed in angle brackets, such as
or
, used to define elements on a web page.
Q. What is an HTML element?
Ans. An HTML element generally consists of a start tag, its content, and an end tag, although some elements are void elements.
Q. What is the purpose of the DOCTYPE declaration?
Ans. The DOCTYPE declaration tells the browser to use standards mode when rendering an HTML document.
Q. Which HTML tag defines the largest standard heading?
Ans. The
tag defines the highest-level heading among the standard HTML heading elements.
Q. Which HTML tag is used to create a paragraph?
Ans. The
tag is used to define a paragraph in HTML.
Q. Which HTML tag creates a hyperlink?
Q. Which HTML tag is used to display an image?
Ans. The
![]()
tag embeds an image in a web page. The src attribute specifies the image source and alt provides alternative text.
Q. What is the purpose of the href attribute?
Ans. The href attribute specifies the destination URL of a hyperlink or certain linked resources.
Q. What is the purpose of the src attribute?
Ans. The src attribute specifies the URL of an embedded resource, such as an image or script.
Q. Which HTML tag creates an unordered list?
Ans. The
tag creates an unordered list, usually displayed with bullet points.
Q. Which HTML tag creates an ordered list?
Ans. The
tag creates an ordered list, commonly displayed with numbers or letters.
Q. Which HTML tag defines a table row?
Ans. The
tag defines a row in an HTML table.
Q. Which HTML tag defines a table cell containing data?
Ans. The
tag defines a standard data cell in an HTML table.
Q. What is CSS?
Ans. CSS stands for Cascading Style Sheets. It controls the appearance, colours, spacing, and layout of web pages.
Q. What is the difference between HTML and CSS?
Ans. HTML defines the structure and content of a web page, whereas CSS controls its visual presentation and layout.
Q. What is JavaScript used for in web design?
Ans. JavaScript adds interactivity and dynamic behaviour, such as form validation, interactive menus, and updating page content.
Q. What is a responsive website?
Ans. A responsive website adapts its layout and content to different screen sizes and devices.
Q. Why is the alt attribute important for images?
Ans. The alt attribute provides alternative text for images, improving accessibility and offering a text alternative when an image cannot be displayed.
|