HTML is all about displaying content. HTML (Hypertext Markup Language) is a text-based approach to describing how content contained within an HTML file is structured. This markup tells a web browser how to display text, images, and other forms of multimedia on a webpage. HTML is basically a “skeleton” of your web page.
CSS is all about making the content look nice. CSS (Cascading Style Sheets) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
Together HTML and CSS can create a good-looking webpage. But without Javascript, there is no function or interaction with the website.
HTML:
- <button type = “button”> Do something </button>
CSS:
- background-color: green;
- border: none;
- color: white;
- padding: 15px 32px;
- text-align: center;
- font-size: 15px;
Leave a Reply
You must be logged in to post a comment.