<!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"
<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"
<!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"
<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"
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"
π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"
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"
π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"
π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"
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"
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"