Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added HTML5 (2).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions content-editable/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
</head>

<body>
<div class="demo">
<div class="demo"><div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h2> Shoppping List(Content Editable) </h2>
<ul class="content-editable" contenteditable="true">
<li> 1. Milk </li>
Expand Down
3 changes: 2 additions & 1 deletion data-attribute/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h2> Know data attribute </h2>
<div
class="data-attribute"
Expand Down
7 changes: 5 additions & 2 deletions datalist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">

<img src="../home.svg" alt="home" />
</a>
</a></div>
<h1>Datalist Tag</h1>
<form action="" method="get">
<label for="fruit">Choose your fruit from the list:</label>
Expand All @@ -27,7 +29,8 @@ <h1>Datalist Tag</h1>
<option value="Avacado">
</datalist>
<input type="submit">
</form>
</form>

</div>
</body>

Expand Down
3 changes: 2 additions & 1 deletion details/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h1>Details Tag</h1>
<details>
<summary>Click Here to get the user details</summary>
Expand Down
3 changes: 2 additions & 1 deletion dialog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h1>Dialog Tag</h1>
<!-- Trigger/Open The Modal -->
<button id="openDlg">Open Dialog</button>
Expand Down
25 changes: 25 additions & 0 deletions figure/figure.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>

<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML Tips and Tricks - Mark Element</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap" rel="stylesheet">
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
</head>

<body>
<div class="figure">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a></div>
<figure>
<img src="https://cdn.britannica.com/92/216092-050-4B31C2B7/custom-library.jpg" alt="library" style="width:40%">
<figcaption>"When in doubt go to the library".</figcaption>
</figure>
</div>
</body>
</html>
22 changes: 20 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap" rel="stylesheet">
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Silkscreen&display=swap" rel="stylesheet">
</head>

<body>
<body class="body">
<a
href="https://github.com/atapas/html-tips-tricks"
target = "_blank"
Expand All @@ -40,8 +43,9 @@
data-recalc-dims="1">
</a>
<div class="demo">
<br><br>
<h1>HTML5 Feature Tips</h1>
<img src="html5.png" alt="HTML5" style="height: 100px;width: 100px;">
<img src="HTML5 (2).png" alt="HTML5" style="height: 100px;width: 100px;">
<ul class="list">
<li>
<a href='./details/index.html'>
Expand All @@ -67,6 +71,11 @@ <h1>HTML5 Feature Tips</h1>
<a href='./output/index.html'>
Output Tag</a> - To perform a calculation and show the result
</li>

</ul>
</div>
<div class="demoo">
<ul class="list">
<li>
<a href='./datalist/index.html'>
Datalist Tag</a> - Allows you to search and add elements
Expand All @@ -88,15 +97,24 @@ <h1>HTML5 Feature Tips</h1>
Dialog</a> - Display a Modal Dialog
</li>
<li>

<a href="./figure/figure.html">figure</a> - This is used to mark up a photo.
</li>
<li>
<a href="./tooltip/tooltip.html">Tooltip</a> - This trick basically shows the extra information provided by the site creator <br> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp when a visitor hovers the mouse pointer over an element.

<a href='./lazy-loading/index.html'>
Lazy Loading</a> - Lazy Load html images natively

</li>
<li>
<a href='./iframe/index.html'>
Iframe</a> - Embed YouTube Videos
</li>
</ul>
</div>
<br><br><br><br><br><br><br><br><br>

</body>

</html>
3 changes: 2 additions & 1 deletion inputs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h1>All about Inputs</h1>

<h2>Color picker</h2>
Expand Down
80 changes: 75 additions & 5 deletions main.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
body {
background-color: #000000;
color: #ffffff;
font-family: 'Chilanka', cursive;
background-color: rgb(10, 10, 57);
color: #f4dddd;
font-family: 'Montserrat', sans-serif;
/* font-family: 'Silkscreen', cursive;*/
}
h1
{
font-family: 'Montserrat', sans-serif;
font-family: 'Silkscreen', cursive;
}

.body {
background-image: url("https://i.pinimg.com/564x/ce/1f/8a/ce1f8a647a8634f7eb59fb3b28130169.jpg");
background-size: contain;
background-repeat: repeat-y;
color: #f4dddd;
/* font-family: 'Montserrat', sans-serif;
font-family: 'Silkscreen', cursive;*/
}
.div
{
margin-top: 70px;
}

a {
color: #61dafb;
color: #c3b1ec;
}

table {
Expand Down Expand Up @@ -64,6 +83,31 @@ li {
.demo .range output {
font-size: 62px;
}
.demoo {
margin: 420px auto 30px auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.demoo .list li{
padding: 10px;
}

.demoo .content-editable {
border: 1px solid;
border-radius: 5px;
padding: 10px;
}

.demoo .data-attribute {
padding: 10px;
}

.demoo .range output {
font-size: 62px;
}

dialog::backdrop {
background: repeating-linear-gradient(
Expand All @@ -76,7 +120,33 @@ dialog::backdrop {
backdrop-filter: blur(3px);
}

.figure {
margin: 10px auto 30px auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
figcaption
{
margin: 10px auto 30px auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;

}
figure{
margin: 10px auto 30px auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}




.embed-youtube {
border: 1px solid #ffffff;
}
}
3 changes: 2 additions & 1 deletion map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h2> Map - Image map </h2>
<div>
<img src="circus.jpg" width="500" height="500" alt="Circus" usemap="#circusmap">
Expand Down
3 changes: 2 additions & 1 deletion mark/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h1>Mark something to Highlight</h1>
<p> Did you know, you can <mark>"Highlight something interesting"</mark> just with a HTML tag? </p>
</div>
Expand Down
3 changes: 2 additions & 1 deletion meter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h2> Meter </h2>
<label for="home">/home/atapas</label>
<meter id="home" value="4" min="0" max="10">2 out of 10</meter><br>
Expand Down
3 changes: 2 additions & 1 deletion output/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h2> Let's see the Output </h2>
<form oninput="x.value=parseInt(a.value) * parseInt(b.value)">
<input type="number" id="a" value="0">
Expand Down
3 changes: 2 additions & 1 deletion range/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

<body>
<div class="demo">
<div class="div">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
</a></div>
<h1>Slider</h1>
<form method="post">
<input
Expand Down
Loading