Latest topics
The most tagged keywords
Current date/time is Thu Mar 28, 2024 5:58 pm
Search found 2 matches for HTML
How to embed CSS in HTML?
#CSS can be added to #HTML elements in 3 ways:•Inline - by using the style attribute in HTML elements.
Internal - by using a <style> element in the <head> section.
External - by using an external CSS file.
Inline Styles:
An inline style may be used to apply a unique style for a single element.
To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property.
The example below shows how to change the color and the left margin of a <h1> element:
Program:
<!DOCTYPE html>
<html>
<body>
<h1 style="color:blue;margin-left:30px;">This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output:
Internal Styles Sheet:
An internal style sheet may be used if one single page has a unique style.
Internal styles are defined within the <style> element, inside the <head> section of an HTML page:
Program:
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;margin-left: 40px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output:
External Styles Sheet:
With an external style sheet, you can change the look of an entire website by changing just one file!
Each page must include a reference to the external style sheet file inside the <link> element. The <link> element goes inside the <head> section:
Program:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
href="mystyle.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output:
Source
- on Sun Jan 05, 2020 8:57 am
- Search in: Blogging
- Topic: How to embed CSS in HTML?
- Replies: 0
- Views: 128
Wapelf, Wapkiz And Vmwap Advance Home Page Code
Go to /edit-0.html add #HTML/ Tag Code one andPaste this code in the box
<head>:*title*:Mp3 Music HD Mp4 Video Latest Song Full Movies :*url-4()*: Wapkings:/title*:<*meta name=*"*description*" content="Mp3 Music Video Mp4 Latest Song Full Movies Special Day Song New Album Mp3 Single track Bhojpuri Punajbi Hindi English Page:*url-4(1)*: wapkings" /><*meta name=*"*keywords*" content*="Mp3 Music,Mp4 Videos,Mp3 Music Upload,Latest Song,Full Movies,Bhojpuri songs,New video song,Punjabi Songs,Hindi Songs,Latest Music,Special Day Songs,English Songs,Bollywood Movies,Hollywood Movies,Sambalpuri Songs,Hd videos,Dj remix,mashup songs, Page:*url-4():, Wapkings" head>
add HTML/ Tag Code two and Paste this Search File code
<div class="head"><h1 class="movie">Scarch File</h1></div><div class="search"><form method="POST" align="Left"> <input type="text" name="q" value="ngloaded"/> <button type="submit" onclick=form.action="/page-search/"+q.value+".html">Search</button> </form></div>
Recently Added Songs code Here add HTML/ Tag
Code three and Paste this Recently Added Songs code
<div class="head"><h1 class="movie">More Services</h1></div><div><a class="touch" href="/site-request.html">» Request Songs</a></div><div><a class="touch" href="/site-upload.html">» Upload Files Here</a></div><div><a class="touch" href="//ngloaded.ga">» Site Partners</a></div><div class="head"><h1 class="movie">Special Download</h1></div><div><a class="touch" href="/site-top-20.html">» Top 20 Files</a></div><div><a class="touch" href="/page-last-added.html">» Last Added Files</a></div><div><a class="touch" href="/page-artist.html">» A To Z Artist</a></div>
- on Thu Jun 20, 2019 9:36 am
- Search in: Blogging
- Topic: Wapelf, Wapkiz And Vmwap Advance Home Page Code
- Replies: 0
- Views: 221
|
|
Wed Mar 06, 2024 11:12 pm by Litifyed
» Wapkiz 2020 Code: wapkiz register page responsive design Code
Thu Aug 13, 2020 5:15 pm by Hasty06
» 2020Bbnaija : Why I Can’t Be In A Relationship With Ozo – Nengi
Mon Jul 27, 2020 9:44 pm by Adminkunlex
» Can You Have S*x On Your First Date? Check Out What Actress, Debbie Shokoya Has To Say About This
Mon Jul 27, 2020 6:44 am by Adminkunlex
» Nigerian Singer, Seunfunmi Stephen, Recounts How Her Husband Was Killed By Stray Bullet
Mon Jul 27, 2020 6:41 am by Adminkunlex
» Olakunle Churchill Shares Photo Of Himself And Actress Rosy Meurer As He Writes On The Importance Of Loyalty
Mon Jul 27, 2020 6:39 am by Adminkunlex
» Ubi Franklin Reveals What Happened To Him When He Visited A Hospital Amid COVID-19 Pandemic
Mon Jul 27, 2020 6:37 am by Adminkunlex
» Vardy Wins Premier League Golden Boot, Beats Ings, Aubameyang & Sterling
Mon Jul 27, 2020 5:07 am by Adminkunlex
» The Right Way To Preach About Hell - Milton Goh
Mon Jul 27, 2020 5:03 am by Adminkunlex
» “Surgery For What?” – Regina Daniels Shows Off Hot Body After Childbirth (Video)
Sun Jul 26, 2020 9:12 pm by Adminkunlex
» I Got Pregnant As A Virgin At 23 – Wathoni
Sun Jul 26, 2020 8:24 pm by Adminkunlex
» #Bbnaija2020: Wathoni Kisses Kiddwaya During BBNaija Truth Or Dare Game
Sun Jul 26, 2020 8:20 pm by Adminkunlex
» Bbnaija: Kiddywaya Gropes Erica’s Breast While Dancing And She Reacts
Sun Jul 26, 2020 8:17 pm by Adminkunlex
» “I Hope To Collaborate With Rihanna & Drake Soon” – Rema
Sun Jul 26, 2020 11:54 am by Adminkunlex
» “Girls That Give Threesome With Their Friend Have A Special Place In Heaven” – Naira Marley
Sun Jul 26, 2020 11:50 am by Adminkunlex
» “To Be A Boss, You Must Be A Servant” – Frodd Recounts On His Humble Beginnings
Sun Jul 26, 2020 11:48 am by Adminkunlex
» “Stop Pressuring Us With Your Beauty”, Actress Queen Nwokoye Begs Ini Edo
Sun Jul 26, 2020 11:46 am by Adminkunlex
» You Look Like A Weed Smoker – Lady Fires Adekunle Gold Over New Look
Sun Jul 26, 2020 11:43 am by Adminkunlex
» Davido Turns Chef, Spotted Cooking Probably For Chioma And His Crew
Sun Jul 26, 2020 11:40 am by Adminkunlex
» Kanye West Apologizes To Kim Kardashian For Public Rants On Their Marriage
Sun Jul 26, 2020 11:38 am by Adminkunlex