HTML
What is HTML?
*HTML is a language to create a web page
*HTML stands for Hyper Text Markup Language.
*Hyper Text: Link between web page.
*Markup Language: Text between a tags which defines a structure.
*HTML defines how the webpage looks and how to display content with the help of elements.
*Save your file by using .html extension.
Features of HTML:-
* Easy to modify.
* Create effective presentation.
* We can able to add links, document, video, image making it more attractive.
* It is a case insensitive language.
HTML Structure:-
<html> | Defines the root of an HTML document |
<body> | Defines the document's body |
HTML Tags:-
* Heading tag:
<h1></h1> to <h6></h6>
<h1> to <h6> | Defines HTML headings |
OUTPUT:-
*paragraph tag:-
<p> </p>
It is used to create paragraph
Example:
OUTPUT:-
In the paragraph tag we can able to add the colors.
Style attribute is used to add styles to an element, such as color, font, size, and more.
Example:
OUTPUT:-
To change the background color:
Changing font size:
*ANCHOR TAG:-
<a> </a>
It is used to create links using href
href: hypertext reference
It is used to generate the link
we can able to use heading tag,paragraph tag,anchor tag inside the <body> </body> only
Example:-
OUTPUT:-
Comments
Post a Comment