Tuesday, 7 March 2017

HTML LESSON - 8

EIGHTH  LESSON OF HTML

<!DOCTYPE html>
<html>

<head>
<title>Eighth Lesson of HTML</title>
<head>
<body>
<h2>What is CSS?? What role it plays for HTML??</h2>
<h3>CSS, is cascading style sheets. This is the way to decorate or style our html page to make it look more attractive. CSS can be add in 3 ways in HTML element.

1)Inline 
2)Internal
3)External
</h3>

 <p>Inline - This can be use within the HTML element, with style attribute.</p>
For example: 
<h2 style="color:red;">You are learning CSS lesson through JS Informatics!!!</h2>
<!---Above code shows, inline styling---->

<p>Internal - This can be use in the head section of HTML page, with style attribute.</p>

<p>External - This can be use by making another file or external sheet, which can be linked in the main or index file.</p>

</body>
</html>





Now, Few Key points to remember always:

  • External stylesheet always be saved with .css extension.
  • External stylesheet is a good practice of using  CSS, because with just only one file, we can change the look of complete webpage or website.

Related Posts:

  • HTML LESSON - 4   FOURTH  LESSON OF HTML <!DOCTYPE html><html> <head> <title>Fourth Lesson of HTML</title> <head>&l… Read More
  • HTML Lesson - 6 SIXTH LESSON OF HTML   <!DOCTYPE html> <html> <head> <title>Sixth Lesson of HTML</title> </head> <bod… Read More
  • HTML Lesson - 7 Seventh Lesson of HTML .festive h4{      color: red;      font-family:calibri; } .festive p{   … Read More
  • HTML Lesson - 5 Output of the code given   FIFTH LESSON OF HTML Now, Few Key point to remember always: The td tags contain data like images, t… Read More
  • HTML LESSON - 8 EIGHTH  LESSON OF HTML <!DOCTYPE html><html> <head> <title>Eighth Lesson of HTML</title> <head><body&g… Read More

0 comments:

Post a Comment