Frontend development involves HTML, CSS, and JavaScript.
- HTML is the foundation or structure of a webpage
- CSS improves the design, making pages visually appealing.
- JavaScript makes it more interactive and dynamic.
Frequently used HTML tags
- <!DOCTYPE html> β Declares the document type and version of HTML.
- <html> β The root element that wraps all content on the page.
- <head> β Contains metadata like title, styles, and scripts.
- <body> β Holds all visible content, including text, images, and links.
- <title> β Defines the webpageβs title, displayed on the browser tab.
- <a href=""> β Creates hyperlinks to other pages or sections.
- <ul> β Defines an unordered (bulleted) list.
- <ol> β Defines an ordered (numbered) list.
CSS properties
-
<style> β A tag to include CSS rules within an HTML document.
- Selectors β picks specific elements using class (.), ID (#), or element names.
- color β Sets the text color (color: blue;).
- background-color β Defines the background color (background-color: yellow;).
- margin β Controls space around an element (margin: 10px;).
- border β Adds a border around an element (border: 2px solid black;).
- padding β Adds space inside an element, between content and its border (e padding: 5px;).
Top comments (0)