HTML & CSS
381 subscribers
728 photos
1 video
4 files
54 links
πŸ‘Œ HTML & CSS
@html_css_tut

πŸ‘ŒJavaScript
@javascript_tut

πŸ‘Œ PHP
@php_tut


πŸ‘ŒAll About Coding
@codingWithElias
Download Telegram
How to Make Google Home Page
using #HTML and #CSS

https://youtu.be/ZY1MYwUDZsY
Custom Button 1
<!DOCTYPE html>
<html>
<head>
<title>Custom button 1</title>
<style>
.btn-1 {
display: block;
border: none;
background: #F44336;
padding: 10px 15px;
color: #fff; font-size: 20px;
border-radius: 5px;
cursor: pointer;
outline: none;
transition: background 1s;

box-shadow: 0 8px 16px 0
rgba(0,0,0,0.2), 0 6px 20px 0
rgba(0,0,0,0.19);
}
.btn-1:hover{
background: #4CAF50;
}
</style>
</head>
<body>

<button class="btn-1">
Login
</button>

</body>
</html>

@html_css_tut
"codingWithElias"
Output πŸ–₯
Custom button 2πŸ‘‡
<!DOCTYPE html>
<html>
<head>
<title>Custom button 2</title>
<style>
.btn-2 {
display: block;
border: 2px solid #008CBA;
background: transparent;
padding: 10px 15px;
color: #008CBA;
font-size: 20px;
border-radius: 5px;
cursor: pointer;
outline: none;
transition: background 1s,
color 1s;

}
.btn-2:hover{
background: #008CBA;
color: #fff;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
</style>
</head>
<body>

<button class="btn-2">
Sign Up
</button>

</body>
</html>

@html_css_tut
"codingWithElias"
Output πŸ’»
The global structure of an HTML 5 document.

πŸ“ŒThe <!DOCTYPE html> declaration defines that this document is an HTML5 document.

πŸ“ŒThe <html> element is the root element of an HTML page.

πŸ“ŒThe <head> element contains meta information about the HTML page.

πŸ“ŒThe <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab).

πŸ“ŒThe <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

πŸ“ŒThe <h1> element defines a large heading

πŸ“ŒThe <p> element defines a paragraph

@html_css_tut
"w3schools .com"
How to make Sticky Social Media Buttons
- Using CSS & HTML -

https://youtu.be/qyK1CYK0dPA
CSS Box Model

πŸ“ŒAll HTML elements can be considered as boxes.

πŸ“ŒIn CSS, the term "box model" is used when talking about design and layout.

The CSS box model is essentially a box that wraps around every HTML element.

πŸ“Œ It consists of: margins, borders, padding, and the actual content.

@html_css_tut
"w3schools .com"
πŸ“ŒContent - The content of the box, where text and images appear

πŸ“ŒPadding - Clears an area around the content. The padding is transparent

πŸ“ŒBorder - A border that goes around the padding and content

πŸ“ŒMargin - Clears an area outside the border. The margin is transparent

@html_css_tut
"w3schools .com"
πŸ“ŒCSS Border Style
The border-style property specifies what kind of border to display.

πŸ“ŒCSS Border Color
The border-color property is used to set the color of the four borders.

πŸ“Œ CSS Border Width
The border-width property specifies the width of the four borders.

Example:
-----------------------------------
p  {
border-style: dotted;
border-width: 5px;
border-color: #0f0;
}

div {
border-style: solid;
border-width: 2px;
border-color: red;
}
-----------------------------------

@html_css_tut
"w3schools .com"
CSS border-radius

The border-radius property defines the radius of the element's corners.

Tip: This property allows you to add rounded corners to elements! 

Example:
-----------------------------------
p  {
border-radius: 20px 60px 40px 80px;
}
-----------------------------------

@html_css_tut
"w3schools .com"