ads

HTML and CSS

HTML and CSS







·    BODY    ELEMENT-

.   HEADING-

In  html and css language  we can  maximum 6  heading is given  in a program .
For heading docoment we can use <h1> </h1> tag use
Example—
<h1> home</h1>
<h2>menu</h2>
|
|
<h6>contact</h6>

Output-
Home
Menu
|
|

contact

·    Paragraph
For define the paragraph we use tags<p> open paragraph </p> close paragraph, any paragraph we can write between them in html body.
Example---
<body>
<p> she is girl</p>
<p> I am boy</p>
</body>

Out put--
First paragraph—she is girl.
Second paragraph--- I am boy.

·     Break or line break
For break any paragraph we use <br> tags  

For example-
<br>
<p> I am first line</p>
<p> I am second line</p>
</br>

Output-

I am first line

I am secon line

·      Blockquote—

Example –

<blockquote> I am a engg.  Student </blockquote>

Out put—
I am a engg. Student

·      Performatted text

It is defined as open <pre>  </pre>
Close use this code for spaceing between words .
Example—

<pre> user services beings about</pre>

Output-

User         services       beings         about



   
anubhav singh

·      Anchor  element : links and named targets

 anchor tag use  for link the  any website to your pages , we use anchor tag and a other tag "href" open <a>  </a> tag close..

example—
<a href=”http://www.assumingworld.com”>click me
</a>

Output—

Website open click for “click me”

Tips-  the website open in same tab . if you want open the website another tab to use a other tag "target" this code –

<a href=”http://www.assumingworld.com” target =”blank”>click me </a>

Output- the website open in other tab.


Tips—
All  above  the code write in html file in “body “ part not in css file.








No comments