Report On Workshop of HTML - and - Css - by - 36 - Tohid Sayyad
Report On Workshop of HTML - and - Css - by - 36 - Tohid Sayyad
Report On
FORM
1. The `<form>` element defines a form for collecting user input.
2. Inside the form, there is a `<fieldset>` element that groups related form elements
together.
3. The `<legend>` element provides a caption for the fieldset.
4. Various form controls are used to collect user information:
- `<input type="text">` for capturing the name.
- `<input type="password">` for capturing the password.
- `<input type="radio">` for selecting the gender (male or female).
- `<input type="checkbox">` for selecting hobbies (e.g., cricket, football, baseball).
- `<textarea>` for entering a message.
- `<select>` for choosing a country and cars. The options are defined using `<option>`
elements.
- `<input type="file">` for uploading a file.
5. The `<input type="submit">` button triggers form submission, and the `<input
type="reset">` button resets the form.
The form allows users to enter personal details such as name, password, gender,
hobbies, message, country, and car selection. The form can be submitted using the "Save"
button, and the fields can be reset using the "Reset" button.
Shapes
1. The `<style>` tag is used to define CSS styles within the HTML document.
2. CSS comments (/* */) are provided to show alternative ways of applying styles but are
currently commented out.
3. The first section of commented-out code demonstrates setting a border, width, and
padding for the `.box` class, with the `box-sizing` property set to `border-box`.
4. The second section of commented-out code demonstrates setting a border, width, and
height for the `.box` class, with the `overflow` property controlling scrolling behavior.
5. The third section of uncommented code applies the `.box` class to a `div` element.
- It sets a border with a width of 2 pixels and a solid black color.
- The width of the `div` is set to 400 pixels, and the padding inside the `div` is set to 40
pixels.
- The margin-bottom property adds a 20-pixel space below the `div`.
- The `border-radius` property sets different radii for each corner of the border, giving it
a rounded appearance.
6. The fourth section of uncommented code applies the `.box2` class to another `div`
element.
- It sets a border with a width of 2 pixels and a solid black color.
- The width and height of the `div` are set to 200 pixels each.
- The `border-radius` property sets the border to have a circular shape by setting the
radius to 50%.
The code showcases different ways to style HTML elements using CSS. In this case, it
demonstrates applying borders, widths, heights, padding, margins, and border radii to
elements.
Transition
1. The `<style>` tag is used to define CSS styles within the HTML document.
2. The commented-out code demonstrates setting a border, width, height, background
color, and opacity for the `.box` class.
3. The uncommented code applies the `.box` class to a `div` element.
- It sets a border with a width of 1 pixel and a solid black color.
- The width of the `div` is initially set to 250 pixels, and the height is set to 200 pixels.
- The background color of the `div` is pink.
- The `transition-property` property specifies the properties to transition.
- The `transition-duration` property sets the duration of the transition effect to 2
seconds.
- The `transition-timing-function` property sets the timing function for the transition. In
this case, `steps(5)` specifies that the transition will occur in 5 steps.
- The `transition-delay` property sets a delay of 5 seconds before the transition effect
starts.
4. The `.box:hover` selector applies styles to the `.box` element when it is being hovered
over.
- The width of the `div` is changed to 450 pixels.
- The height of the `div` is changed to 400 pixels.
- The background color of the `div` is changed to orange.
5. The commented-out code demonstrates additional transformations that can be
applied to the `.box` class, including rotation, scaling, translation, and positioning.
6. The HTML includes an `<h1>` element with the text "Transition" and a `div` element
with the class "box" that will showcase the transition effect.
The code showcases the use of CSS transitions to create smooth animations when certain
properties of an element change. In this case, the width, height, and background color of
the `.box` element are transitioned. When the mouse hovers over the element, the width
and height increase, and the background color changes.
5. The `:hover` pseudo-class selector is used to apply additional styles to the box
elements when they are being hovered over. The `transform` property is modified to
create different transformation effects on hover.
6. The HTML includes multiple sets of base container and box elements to showcase
different transformation effects: RotateX, RotateY, RotateZ, TranslateZ, and ScaleZ.
The code demonstrates how to use CSS transform properties to create various 3D
transformation effects on HTML elements. Each section showcases a different
transformation effect by modifying the `transform` property of the box elements.
- The `animation` property specifies the animation applied to the heart, using the
`HeartBit` animation with a duration of 2 seconds and linear timing.
- The `.Heart::before` styles create the top half of the heart shape using absolute
positioning and a circular shape with a background color matching the heart's color.
- The `.Heart::after` styles create the bottom half of the heart shape using absolute
positioning and a circular shape with a background color matching the heart's color.
- The `@keyframes HeartBit` defines the keyframes for the heart animation.
- Each keyframe represents a different state of the animation at a specific percentage
of the animation duration.
- The `transform` property is used to rotate and translate the heart at different scales
during the animation.
The code produces an animated heart element that pulsates with a scaling effect. The
heart is centered on the page and has a red color. It appears to beat due to the animation
defined in the `@keyframes HeartBit` section.
heart animation :
Loading animation :