| <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"> |
| Attribute | Value | Description |
| align | left | Specifies the alignment of the content inside a <div> element |
| right | Not supported in HTML5. | |
| center | ||
| justify |
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; }
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px 15px grey;
}
font-family: Yu Gothic;
font-size: 14px;
text-align: center;
height: auto;
width: auto;
}
</style>
</head>
<body>
<div>Div </div>
</body>
</html>
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;
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=""
<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>
<style>
div {
max-width: 500px;
height: 100px;
background-color: powderblue;
}
</style>
<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>
(HTML5)
<!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>
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