HTML Short Questions With Answers
HTML Short Questions With Answers
A tag is a code used to define elements in HTML, usually enclosed in angle brackets like <p>.
An attribute provides additional information about an element, like href in <a href='...'>.
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
Content
</body>
</html>
<b> makes text bold visually, <strong> indicates strong importance semantically.
<br> tag.
<p>Hello World</p>
<ol> tag.
<ul> tag.
<tr> tag.
<td> tag.
<video> tag.
Block-level elements take full width (e.g. <div>), inline do not (e.g. <span>).
31. Write HTML code to create a simple table with 2 rows and 2 columns.
<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table>
<a href='https://www.google.com'>Google</a>
<h1>Hello</h1><p>Welcome</p>
35. Write HTML code to create a form with one text box and a submit button.