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