Style properties in HTML
The Style attribute specifies the style for the HTML element.
To define the style for the element in HTML, we use the style attribute, which has the following structure.
- dactinh is the property (property) of CSS
- giri is the value of CSS
See also: How to use CSS to style HTML pages
Background color in HTML
The background-color
is used to define the background color for elements in HTML. This is an example of setting a blue background color for the page.
Quản trị mạng Network administrator
Network administrator
Text color in HTML
The color
feature is used to define the font color for elements in HTML.
n học HTML
Paragraph h
Read the HTML text color.
Font in HTML
The font-family
is used to define the font used for HTML elements.
Learn HTML trên Quản trị mạng.
Study HT
ML on Network Administrator.
Font size in HTML
The font-size
is used to define the font size for HTML elements.
Học HTML trên Quản trị mạng.
They
c font size in HTML on Network Administrator.
Align text in HTML
The text-align
is used to align text for elements in HTML.
Văn bản nằm giữa trang. Text is in the middle of the page.
Text is in the middle of the page.
Show all the above code on Chrome browser
Last lesson: Text in HTML
The following article: Format text in HTML
You should read it
- Introduction to HTML
- Table in HTML
- 5 steps to learn a dynamic HTML web component profile
- Basic examples of HTML
- Format text in HTML
- Text in HTML
- Style HTML with CSS
- eQuiz - Multiple choice test on HTML knowledge
- HTML form
- Paths in HTML
- CSS color coding, standard color code in website design
- Why write neat and organized HTML?
Maybe you are interested
Hubble Telescope extremely rare photo of the moment of the Supernova explosion How to run VM on Raspberry Pi using Proxmox The world's most expensive telescope captures stunning views of the famous supernova remnant Astrophysics professor teaches how to jump into a black hole so it's 'safe' and possible events Discovered organic molecules that can make life in the center of the Milky Way The interaction between the Milky Way and a satellite galaxy is creating many new stars