lab work html
lab work html
(COMPUTER SCIENCE)
GRADE: XI (DF1)
KATHMANDU, NEPAL
2024
Table of Contents
1. Acknowledgement I
2. Objectives II
4. Work Done
2. Meta Tags
<meta charset="UTF-8">
<meta name="author" content="Krishna">
<meta name="description" content="HTML Practice">
<meta name="keywords" content="HTML, CSS, Web Design">
3. Body Attributes
4. Background Image
<body background="bg.jpg">
5. Insert Images
9. Formatting Tags
15. Lists
17. Hyperlinks
18. Tables
<form>
<input type="text" name="name"><br>
<input type="radio" name="gender" value="male"> Male<br>
<input type="checkbox" name="vehicle1" value="Bike"> Bike<br>
<input type="password" name="pwd"><br>
<input type="file"><br>
<input type="submit"><input type="reset"><br>
<textarea rows="4" cols="30"></textarea><br>
<select><option>Option 1</option><option>Option 2</option></select>
</form>
<style>
body { background-color: lightblue; }
h1 { color: navy; text-align: center; }
p { font-size: 14px; padding: 10px; }
</style>
<style>
/* Inline: <p style="color:red">Text</p> */
/* Internal: In <style> tag */
/* External: Link to .css file */
/* CSS Selectors */
#idSelector { color: blue; }
.classSelector { font-weight: bold; }
p, h1 { margin: 5px; } /* Grouping */
* { box-sizing: border-box; } /* Universal */
</style>
5. Conclusion
Through this lab work on Web Technology I, we have successfully achieved the objectives
of understanding the foundational elements of HTML and CSS. We have learned how to
create the basic structure of a web page using HTML tags, format text and apply styling,
embed multimedia content, and design user forms. Additionally, we explored various
HTML elements such as headings, lists, images, tables, and forms, and learned how to
make our web pages interactive and visually appealing using CSS. The practical
implementation of these concepts has enhanced our ability to build static web pages that
are both structured and styled effectively.