There are many programming languages that different programmers use in order to achieve their goals, to be able to gain the necessary expertise in each of these languages, you need to learn the different features that exist in each of them, one of these languages is called HTML, which actually stands for Hyper Text Markup Language , through which it will be possible to give the browser information about how to display content, simply put, it consists of a series of elements which ultimately describes the structure of a web page, in this language, like all other ones, there are various features, some of which we are going to mention in the following.
Fonts in HTML:
In fact, this item, as its name implies, is used to specify the font of an HTML element, more precisely the CSS font-family property defines the font used for an HTML element , so that for a better understanding, note the following example in this regard.
<! DOCTYPE html>
<html>
<body>
<h1 style = "font-family: verdana;"> This is a heading </h1>
<p style = "font-family: courier;"> This is a paragraph. </p>
</body>
</html>
The result of the above example will be as follows.This is a headingThis is a paragraph.Fonts are very important in a content, and you can use the best and the most appropriate fonts for different elements by being aware of the different types of them, so that the users can be more attracted to the different parts of the page, as a result, they can gain a good user experience .
HTML Styles:
This feature is generally used to add style to various elements, for instance, you may add color, font, size, and so on, to existing elements, with the help of this item, you can make the content as effective as possible, now consider the following example.
<! DOCTYPE html>
<html>
<body>
<p> I am normal </p>
<p style = "color: red;"> I am red </p>
<p style = "color: blue;"> I am blue </p>
<p style = "font-size: 50px;"> I am big </p>
</body>
</html>
The result of the above example will be as follows.I am normalI am redI am blueI am big
The HTML Style Attribute:
Style adjustment is possible with the help of the available features, in the following, we are going to deal with the various cases in this regard.
Read more on:https://www.dotnek.com/Blog/Web/fonts-style-and-layouts-tutorial-in-html
link:https://dotnek.mystrikingly.com/
Related link:Programovanie
:: برچسبها:
dotnek ,
seo ,
site ,
:: بازدید از این مطلب : 45
|
امتیاز مطلب : 0
|
تعداد امتیازدهندگان : 0
|
مجموع امتیاز : 0