Day - TML/CSS - Project ILUGC(web page)
HTML:
- HTML stands for Hyper Text Markup Language
- HTML is the standard markup language for creating Web pages
- HTML describes the structure of a Web page
- HTML consists of a series of elements
- HTML elements tell the browser how to display the content
- HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.
Refer- https://www.w3schools.com/Html/html_intro.asp
CSS:
- Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML.
- CSS describes how elements should be rendered on screen, on paper, in speech, or on other media.
Refer- https://developer.mozilla.org/en-US/docs/Web/CSS
Difference between HTML/CSS and Javascript.
-->HTML/CSS - Static pages - Content remains the same every time they are loaded unless manually updated.
-->Javascript - Dynamic pages - Pages can respond to user actions, such as clicking a button, submitting a form, or moving the mouse.
HTML Syntax:
1 2 3 4 5 6 7 8 9 |
|
-->Save the file with (.html) extension and double click to run the program.
HTML Element:
In HTML, elements are typically enclosed using an opening tag and a closing tag to define their start and end.
--> Opening Tag : Marks the beginning of an HTML element.
--> Closing Tag : Marks the end of an HTML element with forward slash before the element name.
Ex:
Hello, World!
Standalone tag: A standalone tag (also known as a self-closing tag) in HTML is an element that does not require a closing tag because it does not have any content between an opening and a closing tag.
Ex-
- break:used to insert a line break
Project:
Preparing ILUGC web page layout:(https://ilugc.in/)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
.container: Styles the container div:
a) border: 1px solid;: Adds a 1-pixel solid border.
b) height: 200%;: Sets the height to twice the viewport height.
c) width: 85%;: Sets the width to 85% of the viewport width.
d) margin: auto;: Centers the container horizontally..header h4: Styles the
element inside the .header class:
a) text-transform: uppercase;: Converts text to uppercase.
b) color: #e22d30;: Sets the text color to a specific shade of red.
c) border-top: 1px solid green;: Adds a green top border.
d) width: fit-content;: Shrinks the element width to fit its content.
e) padding-top: 10px;: Adds 10 pixels of padding above the text..header: Styles the header div:
a) margin: 25px;: Adds a margin of 25 pixels around the header.
- : Contains all the visible content of the webpage.
-
: A container element for grouping and styling content.
-
: Represents the main heading of the webpage.
-
: Represents a subheading of lesser importance than
.
Attribute:
An attribute provides additional information about an HTML element, usually in the form of name-value pairs.
Ex: `
Padding:
Padding is the space between the content of an element and its border. It creates an internal margin around the content, pushing the content away from the edges of the element.
Margin:
Margin is the space outside an element's border that separates it from other elements. It defines the external space between elements, creating distance around them.
class selector and an element selector:
- The class selector targets HTML elements that have a specific class attribute, using a period (.) followed by the class name.
- The element selector targets HTML elements directly by their tag name
The above is the detailed content of Day - TML/CSS - Project ILUGC(web page). For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











I see Google Fonts rolled out a new design (Tweet). Compared to the last big redesign, this feels much more iterative. I can barely tell the difference

Have you ever needed a countdown timer on a project? For something like that, it might be natural to reach for a plugin, but it’s actually a lot more

Everything you ever wanted to know about data attributes in HTML, CSS, and JavaScript.

Questions about purple slash areas in Flex layouts When using Flex layouts, you may encounter some confusing phenomena, such as in the developer tools (d...

When the number of elements is not fixed, how to select the first child element of the specified class name through CSS. When processing HTML structure, you often encounter different elements...

Tartan is a patterned cloth that’s typically associated with Scotland, particularly their fashionable kilts. On tartanify.com, we gathered over 5,000 tartan

At the start of a new project, Sass compilation happens in the blink of an eye. This feels great, especially when it’s paired with Browsersync, which reloads

Discussion on using custom stylesheets in Safari Today we will discuss a custom stylesheet application problem for Safari browser. Front-end novice...
