Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
---------
<head>
<link rel="stylesheet" href="styles.css">
</head> ===>style that equals to:
body {
background-color: powderblue;
}
h1 {
color: blue;
}
--------
<a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a>===>link
-------------
<style>
a:link {
color: green;
background-color: transparent;
text-decoration: none;
}
a:visited {
color:green;
background-color: transparent;always
text-decoration: none;
}
a:hover {
color: yellow;
background-color: transparent; on put mouse on it
text-decoration: underline;
}
a:active {
color: yellow;
background-color: transparent; ==>when click on ot
text-decoration: underline;
}
</style>
------
p {
color: red;
}in single url
--------------------------------
<a href="https://www.w3schools.com/html/" target="_blank">Visit our HTML tutorial!
</a>
<p>If you set the target attribute to "_blank", the link will open in a new browser
---------------------------------------
image as a link
<a href="default.asp">
<img src="smiley.gif" alt="HTML tutorial"
style="width:42px;height:42px;border:0;">
</a>
----------------------------------------------------------
<body>
<p>Click on the computer, the phone, or the cup of coffee to go to a new page and
read more about the topic:</p>
<map name="workmap">
<area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
<area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
<area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm">
</map>
------------------------------------
background image in the hole body:
<body style="background-image:url('clouds.jpg')">
<h2>Background Image</h2>
<p>By default the background image will repeat itself if it is smaller than the
element where it is specified, in this case the BODY element.</p>
</body>
---------------------------------
An HTML table is defined with the <table> tag.
Each table row is defined with the <tr> tag. A table header is defined with the
<th> tag.
By default, table headings are bold and centered. A table data/cell is defined
with the <td> tag.
<table style="width:100%">
An unordered list starts with the <ul> tag. Each list item starts with the <li>
tag.
The list items will be marked with bullets (small black circles) by default:
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
ul=unordred list
ol:ordred list
u can use :<ul style="list-style-type:square"> to do a squar instant of bullet
--------------------------------
A description list is a list of terms, with a description of each term.
The <dl> tag defines the description list, the <dt> tag defines the term (name),
and the <dd> tag describes each term:
exwmple:
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
Coffee
- black hot drink
Milk
- white cold drink
-------------
ovrflow =to add a scroll bar oh hide etc
------------------
Use the CSS property float:left or display:inline to display a list horizontally
li {
float: left;
}
---------------------------------
<div>Hello</div>===>block element will take all the space
-----------------------
The SPAN element is an inline element, and will not start on a new line
<span>Hello</span>
<span>World</span>
====>HELLO WORLD
-----------------