Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
pseudo-element "first-line"
We can style the first line of the paragraph text differently
p::first-line {
    color: blue;
    font-size: 20px;
    font-weight: bold;
    background-color: yellow;
}
by Valeri Tandilashvili
4 years ago
0
CSS
pseudo-elements
HTML5 and CSS3 beginners tutorials
1
child selectors
Selects all the
p
elements that have
div
element as a parent of any level
div p { 
    color: red; 
}
Selects all the
p
elements that are children of the element with id
#id1
#id1 p { 
    color: green; 
}
Selects all
p
elements that have parent element with class
.class1
.class1 p { 
    color: yellow; 
}
by Valeri Tandilashvili
4 years ago
0
CSS
selectors
HTML5 and CSS3 beginners tutorials
1
border-bottom shothand
border-bottom: 3px dashed orange;
The above style is a shorthand property of the following three properties:
border-bottom-width: 20px; 
border-bottom-style: dotted; 
border-bottom-color: blue;
by Valeri Tandilashvili
4 years ago
0
CSS
shorthand
HTML5 and CSS3 beginners tutorials
1
font shorthand
font: bold italic 14px Tahoma;
The above style is a shorthand property of the following four properties:
font-weight: bold; 
font-style:italic; 
font-size: 14px; 
font-family: Tahoma;
by Valeri Tandilashvili
4 years ago
0
CSS
shorthand
HTML5 and CSS3 beginners tutorials
1
tag "legend"
<fieldset>
tag should contain
legend
tag in order the fieldbox to have title
<form action="/action_page.php">
 <fieldset>
  <legend>Personalia:</legend>
  <label for="fname">First name:</label><input type="text" id="fname" name="fname"><br><br>
  <label for="lname">Last name:</label><input type="text" id="lname" name="lname"><br>
 </fieldset>
</form>
by Valeri Tandilashvili
4 years ago
0
HTML
tags
HTML Tutorial for Beginners
2
attributes "min", "max"
<input type="number" min="5" max="10">
min
and
max
attributes are used to define minimum and maximum values for the number input
by Valeri Tandilashvili
4 years ago
0
HTML
attributes
HTML Tutorial for Beginners
2
attributes: "rows", "cols"
<textarea rows="30" cols="80"></textarea>
rows
is attribute to define height of the textarea and
cols
- for defining width
by Valeri Tandilashvili
4 years ago
0
HTML
attributes
HTML Tutorial for Beginners
2
attribute "for"
<label for="inputID">some title</label><input type="text" id="inputID" size="50">
label
attribute
for
and
input
attribute
id
should be the same to tie these two elements together
by Valeri Tandilashvili
4 years ago
0
HTML
attributes
HTML Tutorial for Beginners
2
attribute "size"
<input type="text" size="50">
this means the input will have enough width for 50 characters
by Valeri Tandilashvili
4 years ago
0
HTML
attributes
HTML Tutorial for Beginners
2
bookmark
To create a bookmark we can use any block or inline containers (a, span, p, h1, div) with appropriate id value:
<h2 id="C4">Chapter 4</h2> and then there are two ways to create a link to the bookmark: 
1.  <h1 href="#C4">Jump to Chapter 4</h1>
2.  <a name="#C4">Jump to Chapter 4</a>
by Valeri Tandilashvili
4 years ago
0
HTML
links
HTML Tutorial for Beginners
2
Results: 1578