WEB SCHOOL
 

 

HTML Tags
 
<a> Hyperlink <a href="">
<b> Bold Bold </b>
<br> Single line break (Sortörés) </br>
<details> <details><summary>fk</summary></details>
<div> Defines a section in a document <div class=""> <div id="">
<hr> Defines a thematic change in the content - Horizontal Rule
<iframe>
<img> Image     <img src="img_girl.jpg" style="width:100%;"> <img src="">
<li> List item
<link> Defines the relationship between a document and an external resource (most used to link to style sheets)
<nav> Defines navigation links
<ol> Defines an ordered list
<option> Defines an option in a drop-down list
<p> Defines a paragraph
<picture> Defines a container for multiple image resources
<span>
<table>
<u> Defines text that should be stylistically different from normal text
<ul> Defines an unordered list
<footer> Defines a footer for a document or section
<header> Defines a header for a document or section
<meta> Defines metadata about an HTML document
<script> Defines a client-side script
<select> Defines a drop-down list
<style> Defines style information for a document
href= Specifies the URL of the page the link goes to
class=
src=
img=
{}
Opacity Transparency
#
#
#
# (example) #content    <div id="content">    .content <div class="content">

 
 

 
Div
 
Attribute Value  Description
align left Specifies the alignment of the content inside a <div> element
right Not supported in HTML5.
center
justify

Viewport


<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
img { max-width: 100%; height: auto;}
</style>

Rounded Images : (border-radius)

<style>
img {border-radius: 8px;}
</style>

Rounded Images :  (10-50)

<style>
img {border-radius: 50%;}
</style>

Thumbnail Images

<style>
img {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 200px;
}
</style>

Thumbnail Image as Link

<style>
img {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 150px;
}

img:hover {
box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}
</style>
 
Responsive Images
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
<style>
img {
max-width: 100%;
height: auto;
}
</style>
 
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<body>

<h2>Responsive Image</h2>
<p>When the CSS width property is set in a percentage value, the image will scale up and down when resizing the browser window. Resize the browser window to see the effect.</p>

<img src="img_girl.jpg" style="width:100%;">

</body>
</html>
 
Style (Css)
background-color : yellow
border : 10px solid #ddd;
body : margin: 0;
border-radius : 10px
box-shadow : 10px 10px 15px grey;
display : block
float : left
font-weight : normal (400), bold (700), lighter, 900, (100-900)
height : auto, 50%, 500px
list-style-type : none
margin : auto ***
opacity : (0.8)
padding : 10px, padding-left, padding-right, padding-top, padding-bottom,
position: fixed
text-align : center ,left, right
text-decoration : none
text-shadow : -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
vertical-align : baseline, text-top, text-bottom, sub (bottom), super(top), center **
width : auto, 50%, 500px,
 
Css
body : margin: 0;

div.gallery { border: 1px solid #ccc; border-radius: 10px; }
div.gallery:hover { border: 1px solid #777; }
div.gallery img { width: 100%; height: auto; }
div.desc { padding: 12px; text-align: center; font-family: "Verdana", Times, serif; font-size: 12px; }

* { box-sizing: border-box; }

.clearfix:after { content: ""; display: table; clear: both; }

 
Details
<details>
<summary>Name</summary>
< >
< >
< >
</details>
 
Name

Shadow Effect

<style>
h1 {
color: white;
text-shadow: 2px 2px 4px #000000; }
</style>
 
h2 {
color: yellow;
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;

div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px 15px grey;
}

 

Egyéb

Meta
 
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="John Doe">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>

<p>All meta information goes in the head section...</p>

</body>
</html>

 
1
 
2
 
<!DOCTYPE html>
<html>
<body>

<h1>The nav element</h1>

<p>The nav element defines a set of navigation links:</p>

<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>

</body>
</html>
 
 
STYLE
Könyvjelző :  <p><a name="Css">Css</a></p>
 
 
STYLE (Head)
 <style>
#radius {
border: 1px sol ;
padding: 5px;
border-radius: 5px;
}
h1 {
color: ;
font-size: 24px;
font-family: Arial Black;
}
h2 {
color: green;
text-align: center;
font-size: 10px;
font-family: Yu Gothic Light;
}
h3 {
color: white;
text-align: center;
vertical-align: center;
font-size: 18px;
font-family: Yu Gothic Light;
}
p {
font-family: Yu Gothic Light;
font-size: 14px;
}
</style>
 
Example
<!DOCTYPE html>
<html>
<head>
<style>

div {
border: 2px solid black;
border-radius: 10px;
padding: 10px;
margin: 10px;

font-family: Yu Gothic;
font-size: 14px;
text-align: center;
height: auto;
width: auto;
}


</style>
</head>
<body>


<div>Div </div>

</body>
</html>

 
div.gallery
div.gallery {
border: 1px solid #ccc;
}

div.gallery:hover {
border: 1px solid #777;
}

div.gallery img {
width: 100%;
height: auto;
}

div.desc {
padding: 12px;
text-align: center;
font-family: "Verdana", Times, serif;
font-size: 12px;
}
 
div.ex1-2-3-4-5
div.ex1 {
border: 1px solid black;
background-color: lightblue;
padding: 15px 50px 25px 25px;
font-family: "Verdana", Times, serif;
font-size: 14px;
}

div.ex2 {
border: 1px solid black;
background-color: lightgrey;
padding: 15px 50px 25px 25px;
font-family: "Verdana", Times, serif;
font-size: 14px;

}

div.ex3 {
padding: 25px 50px;
}

div.ex4 {
padding: 25px;
}

div.ex5 {
border: 1px solid black;
padding: 10px 50px 10px 50px;

}
 
Example

display: block;
background-color: lightgrey;
border: 1px solid green;

border-radius: 5px;
border-style: inset;
border-width: 1px;
height: 200px;
width: 50%;
width: 300px;
max-width: 500px;
padding: 25px;
margin:25px;

 

text-align: center;
vertical-align: center;
font-size: 18px;
Yu Gothic Light;

margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 80px;
margin: auto;

color: white;

padding: 50px 30px 50px 80px;

outline-style: double;
outline-color: red;
outline-width: thick;

box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);

text-decoration: none;
text-shadow: 2px 2px 4px #000000;

class=""

name=""

 
Emty HTML Elements
<style>
div {
border: 1px solid black;
margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 80px;
background-color: lightblue;
}
</style>

<style>
body {
background-image: url("gradient_bg.png");
background-repeat: repeat-x;
}
</style>


<style>
h1 {
background-color: green;
}

div {
background-color: lightblue;
}

p {
background-color: yellow;
}
</style>


<style>
body {
background-color: lightblue;
}
</style>

<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>


<style>
p {
color: red;
text-align: center;
}
</style>


<style>
body {
background-color: lightblue;
}

h1 {
color: white;
text-align: center;
}

p {
font-family: verdana;
font-size: 20px;
}
</style>


<style>
div {
border: 1px solid black;
margin: 100px 150px 100px 80px;
background-color: lightblue;
}
</style>


<style>
div {
width:300px;
margin: auto;
border: 1px solid red;
}
</style>


<style>
div.container {
border: 1px solid red;
margin-left: 100px;
}

p.one {
margin-left: inherit;
}
</style>


<style>
div.container {
border: 1px solid red;
margin-left: 100px;
}

p.one {
margin-left: inherit;
}
</style>


<style>
div {
border: 1px solid black;
background-color: lightblue;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
</style>

 

<style>
div {
border: 1px solid black;
background-color: lightblue;
padding: 50px 30px 50px 80px;
}
</style>

 

 

 

 
This div element has a top padding of 25px, a right padding of 50px, a bottom padding of 75px and a left padding of 100px.
 
Using the padding shorthand property
<!DOCTYPE html>
<html>
<head>
<style>
div {
border: 1px solid black;
background-color: lightblue;
}

div.ex1 {
padding: 25px 50px 75px 100px;
}

div.ex2 {
padding: 25px 50px 75px;
}

div.ex3 {
padding: 25px 50px;
}

div.ex4 {
padding: 25px;
}
</style>
</head>
<body>

<h2>Using the padding shorthand property</h2>

<div class="ex1">This div element has a top padding of 25px, a right padding of 50px, a bottom padding of 75px and a left padding of 100px.</div><br>

<div class="ex2">This div element has a top padding of 25px, a left and right padding of 50px, and a bottom padding of 75px.</div><br>

<div class="ex3">This div element has a top and bottom padding of 25px, and a left and right padding of 50px.</div><br>

<div class="ex4">This div element has a top, right, bottom and left paddding of 25px.</div>

</body>
</html>
 

 

 
Set the height and width of an element
<style>
div {
height: 200px;
width: 50%;
background-color: powderblue;
}
</style>

 

 
Set the max-width of an element

<style>
div {
max-width: 500px;
height: 100px;
background-color: powderblue;
}
</style>

 
Demonstrating the Box Model

<style>
div {
background-color: lightgrey;
width: 300px;
border: 25px solid green;
padding: 25px;
margin: 25px;
}
</style>

 

<style>
p {
border: 1px solid black;
outline-style: double;
outline-color: red;
}
</style>

 

 
The Outline-width Property
<!DOCTYPE html>
<html>
<head>
<style>
p {border: 1px solid black;}

p.one {
outline-style: double;
outline-color: red;
outline-width: thick;
}

p.two {
outline-style: double;
outline-color: green;
outline-width: 3px;
}
</style>
</head>
<body>

<h2>The outline-width Property</h2>

<p class="one">This is some text.</p>
<p class="two">This is some text.</p>
<b>Note:</b> IE8 supports the outline properties only if a !DOCTYPE is specified.

</body>
</html>

 

 
<style>
a {
text-decoration: none;
}
</style>

Clearfix

 

 

(HTML5)

<!DOCTYPE html>
<html>
<head>
<style>
hr {
display: block;
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
border-style: inset;
border-width: 1px;
}
</style>
</head>
<body>

<p>A hr element is displayed like this:</p>

<hr>

<p>Change the default CSS settings to see the effect.</p>

</body>
</html>

Responsive
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
<style>
img {
max-width: 100%;
height: auto;
}
</style>
 
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<body>

<h2>Responsive Image</h2>
<p>When the CSS width property is set in a percentage value, the image will scale up and down when resizing the browser window. Resize the browser window to see the effect.</p>

<img src="img_girl.jpg" style="width:100%;">

</body>
</html>
 
 
 
DETAILS  

<!DOCTYPE html>
<html>
<body>
<h1>The details element</h1>

<details>
<summary>Copyright 1999-2018.</summary>
<p> - by Refsnes Data. All Rights Reserved.</p>
<p>All content and graphics on this web site are the property of the company Refsnes Data.</p>
</details>

<p><b>Note:</b> The details tag is not supported in Internet Explorer.</p>

</body>
</html>

 
Css
{
border: 1px solid black;
background-color: lightgrey;
padding: 15px 50px 25px 25px;
font-family: "Verdana", Times, serif;
font-size: 14px;

}

Not Tested :     (div, p, img, div.container, h1, body, )

background-color: lightgrey;
width: 300px;
border: 25px solid green;
padding: 25px;
margin: 25px;

border: 1px solid black;
outline-style: double;
outline-color: red;

height: 200px;
width: 50%;
background-color: powderblue

margin-left: 100px;

text-align: center;

width:300px;
margin: auto;

 

border: 1px solid #ddd;
border-radius: 4