Professional Documents
Culture Documents
HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
HTML is a text formatting language.
URL – Uniform Resource Locator.
Browser – A software program which is used to show web pages.
Ex:
<HTML>
<HEAD>
<TITLE>Turgut Ozal College</TITLE>
</HEAD>
<BODY>
This is what is displayed.
</BODY>
</HTML>
1.An HTML element is defined by a start tag, some content,and an end tag.
The HTML element is everything from the start tag to the end tag:
For example: <tagname> Content goes here...</tagname>
2.HTML headings are titles or subtitles that you want to display on a webpage.
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading
3.The HTML style attribute is used to add styles to an element, such as color, font, size, and
more.
Setting the style of an HTML element, can be done with the style attribute.
The HTML style attribute has the following syntax:
<tagname style="property:value;">
Example
<body style="background-color:blue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
2- Text Color
Example:
<p style="color:red;">This is a paragraph.</p>
3-Fonts
<h1 style="font-family:verdana;">This is a heading</h1>
4-Text Size
5-Text Alignment
4.HTML Formatting is a process of formatting text for better look and feel.
In HTML the formatting tags are divided into two categories:
Physical tag: These tags are used to provide the visual appearance to the text.
Logical tag: These tags are used to add some logical or semantic value to the text.
Here, we are going to learn HTML formatting tags.
Following is the list of HTML formatting text.
<b> - This is a physical tag, which is used to bold the text written between it.
<strong> - This is a logical tag, which tells the browser that the text is important.
<i> - Italic text
<em> - Emphasized text
<mark> - This tag is used to highlight text.
<small> - This tag is used to decrease the font size by one unit from base font size.
<big> - This tag is used to increase the font size by one conventional unit.
<del> - Deleted text
<sub> - Subscript text
<sup> - Superscript
5. Display an image
Image Size