HTML_CSS_Viva_Questions_BCA
HTML_CSS_Viva_Questions_BCA
Answers
1. 1. Q: What is HTML?
A: HTML stands for HyperText Markup Language. It's used to create the structure of
web pages.
A: Tags are code elements enclosed in angle brackets <>, used to define HTML elements
like headings, paragraphs, etc.
A: Elements like <header>, <footer>, <article> that clearly define their purpose in a
webpage.
A: It contains metadata, links to stylesheets, and other information not visible on the
page.
A: Provides alternative text if the image fails to load and improves accessibility.
A: Using <table>, <tr> for rows, <td> for data cells, and <th> for headings.
A: <ol> creates an ordered (numbered) list; <ul> creates an unordered (bulleted) list.
A: Tags that don’t need a closing tag, e.g., <br>, <hr>, <img>.
A: .class targets elements with that class; #id targets a specific element with that ID.
29. 29. Q: What is the difference between absolute and relative positioning?
A: Rules that determine which CSS rule applies if there are conflicts.
34. 34. Q: What is the difference between display: none and visibility: hidden?
A: display: none removes the element completely; visibility: hidden hides it but keeps
space.
A: background-color: red;
44. 44. Q: How did you optimize your HTML and CSS?
46. 46. Q: How did you validate your HTML and CSS?
A: By using semantic HTML tags, alt attributes, and ARIA roles where needed.
50. 50. Q: Why did you choose this project for your final year?