Posts

Learn Web3 in 100 Days - Day 7: Style Your Web

0 comments·0 reblogs
xuanling11
65
·
0 views
·
2 min read

marcus-ganahl-W5qgKZj-qnk-unsplash.jpg
Let’s explore deeper into CSS.

Table of Contents

Style Your Web
Separation of Concerns
Layers in Blockchain
Link Between HTML to CSS
CSS Animation
In Conclusion

Life is but thought.- Sara Teasdale#dailydesign pic.twitter.com/O1CtnMP2xk

— xuanling11.eth (@xuanling11) April 10, 2022

Style Your Web

CSS or Cascading Style Sheets is the language that provides style to the HTML page. Of course, HTML can also style content by itself, but CSS offers more tools to do so. It is one of the most fundamental principles called Separation of Concerns that makes CSS more powerful in styling contents while HTML focuses more on contents themselves.

Separation of Concerns

The idea is not to write a program with one solid block to increase the potential of a single point of failure. Rather, separating features into each block can finish their distinct job.

Layers in Blockchain

1.png

A similar concept from Separation of Concerns may be demonstrated in Blockchain layers. Layer 1 is the blockchain fundamental layer with Consensus like Proof of Work or Proof of Stake. While Layer 2 you have scalability solutions like Polygon to reduce transaction fees while increasing the transaction speed. However, in more concise descriptions of layers, there are six layers including the application layer, modeling layer, contract layer, system (consensus) layer, data layer, and network layer. Note that the modeling layer facilitates smart contracts and the contract layer executes smart contracts and users' interaction with such contracts.

Link Between HTML to CSS

A simple one-line code that makes a connection between HTML and CSS:

<link rel="stylesheet" href="style.css">

You can test here.

CSS Animation

CSS can also make animations on the web. There are many ways to learn and here is one example of a tutorial below:

Here is a tutorial here with some very useful websites to help code below:
https://webcode.tools/generators/css/keyframe-animationhttps://css-tricks.com/almanac/properties/a/animation/https://coolcssanimation.com/

In Conclusion

Now you have learned the basics of CSS. You can make your website interactive and improve the user experience!

The next topic I will go deep into is JavaScript.

Resource
https://en.wikipedia.org/wiki/Separation_of_concerns
https://nalexn.github.io/separation-of-concerns/
https://toddsobrado.com/what-are-the-six-layers-of-blockchain-technology/
https://cointelegraph.com/blockchain-for-beginners/a-beginners-guide-to-understanding-the-layers-of-blockchain-technology
https://www.w3schools.com/tags/tag_link.asp
https://blog.hubspot.com/website/css-animation
https://webcode.tools/generators/css/keyframe-animation
https://css-tricks.com/almanac/properties/a/animation/
https://coolcssanimation.com/

Hive divider.gif

Note: Cross-references of this article have been created by the author and have been cross-referenced on multiple platforms here. Please reference the resources and credits here. Reach out to the authors if you have any questions.

Posted Using LeoFinance Beta