diff --git a/.gitignore b/.gitignore index aafcb34..8b13789 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -node_modules/ -.DS_Store -*.log + diff --git a/CSDeptENDSEM.md b/CSDeptENDSEM.md new file mode 100644 index 0000000..314efbc --- /dev/null +++ b/CSDeptENDSEM.md @@ -0,0 +1,1731 @@ + +**SANJIVANI COLLEGE OF ENGINEERING** +**End-Semester Examination** +**Academic Year: 2024-2025** +**Course: Web Technology (CO3103)** +**CS-TY (2022 Pattern, Semester-V)** +**Answer Sheet** + +--- + +**Que. 1** + +**a) It is required to design a registration form which will accept name of the student and branch. There are 3 options for the branch (Computer, Mechanical and Civil). The student should be able to select appropriate branch. The form should contain submit and clear button. When user click on submit button, then form data should be submitted to reg1.php file. Write HTML code for creating a samr form.** (5 Marks) + +**Answer:** +```html + + + + Student Registration + + +

Student Registration Form

+
+
+

+ +
+

+ + + +
+ + +``` + +**b) It is required to have a web page (/sres/coe/coi.html) which should contain 3 links. First link for /sres/coe/target1.html. Second link is for /sres/target2.html while third link is for /sres/coe/kop/target3.html. Write suitable HTML code.** (5 Marks) + +**Answer:** +File: `/sres/coe/coi.html` +```html + + + + COI Links Page + + +

Main Links Page (coi.html)

+

Please find the links below:

+ + + +``` +**Note on paths for b):** +* For `target1.html`: If `coi.html` and `target1.html` are in the same `/sres/coe/` directory, the link is `href="target1.html"`. +* For `target2.html`: If `coi.html` is in `/sres/coe/` and `target2.html` is in `/sres/`, the relative path from `coi.html` is `href="../target2.html"`. +* For `target3.html`: If `coi.html` is in `/sres/coe/` and `target3.html` is in `/sres/coe/kop/`, the relative path from `coi.html` is `href="kop/target3.html"`. +The solution uses these relative paths. + +--- + +**Que. 2** + +**a) Design a simple web page that embeds both a video and an audio file using HTML5 elements. Ensure that the video has controls enabled and is set to autoplay, and the audio has controls as well but does not autoplay.** (5 Marks) +*(Note: The question states "video has controls enabled and is set to autoplay", then "the audio has controls as well but does not autoplay". There might be a slight contradiction, as typically autoplay is often restricted by browsers. I will write the code as requested, but add a note about autoplay restrictions).* + +**Answer:** +```html + + + + Multimedia Page + + +

HTML5 Multimedia

+ +

Video Player

+ + + + +

Audio Player

+ + + +

Note: Replace "sample_video.mp4", "sample_video.webm", "sample_audio.mp3", and "sample_audio.ogg" with actual paths to your media files.

+ + +``` + +**b) Explain significance of SVG images. Write HTML code to create a circle having center at (100,100) and radius 50.** (5 Marks) + +**Answer:** +**Significance of SVG (Scalable Vector Graphics) Images:** +1. **Scalability:** SVGs are vector-based, meaning they can be scaled up or down to any size without losing quality or becoming pixelated. This is ideal for responsive web design. +2. **Resolution Independence:** They look sharp on any display, including high-resolution (Retina) screens. +3. **Small File Sizes:** For simple graphics and illustrations, SVGs can often have smaller file sizes compared to raster formats (like JPG, PNG) especially for graphics with fewer details. +4. **Editable & Animatable:** SVG code is XML-based, meaning it can be edited with a text editor or graphics software. Its elements can be easily animated using CSS or JavaScript. +5. **Accessibility & SEO:** Text within SVGs is real text, making it accessible to screen readers and indexable by search engines. +6. **Styling:** SVGs can be styled with CSS, allowing for dynamic changes to fill colors, strokes, opacity, etc. +7. **Interactivity:** JavaScript can be used to interact with SVG elements, enabling complex user interactions. + +**HTML code to create an SVG circle:** +```html + + + + SVG Circle + + +

SVG Circle Example

+ + + + + + +``` + +--- + +**Que. 3** + +**a) Write CSS code to make following changes:** (5 Marks) +**I) Set color of all h1 heading to "red".** +**II)Set the font weight of all paragraphs (

) to bold.** +**III)Set the background color of the