4webdesign HTML Programs
4webdesign HTML Programs
4. Strikethrough Text
html
<!DOCTYPE html>
<html>
<body>
<p>This is <s>strikethrough</s> text.</p>
</body>
</html>
5. Div and Preformatted Text
html
<!DOCTYPE html>
<html>
<body>
<div>This is content inside a div element.</div>
<pre>
Line 1
Line 2 with spaces and formatting preserved.
</pre>
</body>
</html>
7. Image Tag
html
<!DOCTYPE html>
<html>
<body>
<img src="image.jpg" alt="Example Image" width="200" height="150">
</body>
</html>
<ul>
<li>Item one</li>
<li>Item two</li>
</ul>
</body>
</html>
17. Checkboxes
html
<!DOCTYPE html>
<html>
<body>
<form>
<p>Select hobbies:</p>
<input type="checkbox" id="hobby1" name="hobby" value="sports">
<label for="hobby1">Sports</label><br>
<input type="checkbox" id="hobby2" name="hobby" value="music">
<label for="hobby2">Music</label>
</form>
</body>
</html>