CSS Cascade styling sheet forum intro to Id's
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: HTML & CSS
Page 1 of 1 • Share
CSS Cascade styling sheet forum intro to Id's
Css Forum for students discusion here's an example about the id's which will virtual help all students to understand that how id's are working. For that first we have to define the id inside the header and then we can call it inside the body. See the code of CSS
[You must be registered and logged in to see this image.]
It shows that the id name and declaration inside the header is Para1 and then we call id inside the paragraph tag which is id = " para1".
Other paragraph is not effected by style
[You must be registered and logged in to see this image.]
- Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#para1
{
text-align:center;
color:red;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<p id="para1">Hello World!</p>
<p>This paragraph is not using Style!</p>
</body>
</html>
It shows that the id name and declaration inside the header is Para1 and then we call id inside the paragraph tag which is id = " para1".
Other paragraph is not effected by style
WikiLeaks- Monstars
- Posts : 26
Join date : 2011-05-29
Similar topics
» Make your Date Sheet Now!!
» Make ur Date Sheet Now
» How to make Your Own Date Sheet
» Karachi University BA/BSC Date sheet for 2014-15 Updates
» MSCS Mid Term Exam (Spring 2011) Date Sheet
» Make ur Date Sheet Now
» How to make Your Own Date Sheet
» Karachi University BA/BSC Date sheet for 2014-15 Updates
» MSCS Mid Term Exam (Spring 2011) Date Sheet
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: HTML & CSS
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Today at 9:57 am by Ibad Khan Buledi
» house disrepair claims
Mon Apr 22, 2024 11:23 am by Joshuaadam
» Aloha Planner - Note-Taker
Thu Apr 11, 2024 4:52 pm by ali001
» Streaming Guide Film TV Series
Tue Apr 09, 2024 9:39 pm by ali001
» Apricot Tree Problems & Solutions ????|خوبانی کے پھل کو کیڑا لگنےسے بچانے کا طریقہ ????
Sun Apr 07, 2024 6:28 am by Zamaan Khan
» خوبانی کے پودے کی کاشت گرم علاقوں میں کرنی چاہیے یا نہی
Sun Apr 07, 2024 6:24 am by Zamaan Khan
» New Here
Sun Apr 07, 2024 6:15 am by Zamaan Khan
» Bajta Hua Sochoon Main Koi Saaz Na Aaye Naat
Sun Apr 07, 2024 6:14 am by Zamaan Khan
» Woh Pagal Si Episode 52 to 62 - Top Pakistani Drama
Sun Apr 07, 2024 6:06 am by Zamaan Khan