Lesson 79: Introduction to Web Programming

HTML and CSS

HTML (Hypertext Markup Language) is a standard markup language for structuring content on the web, used for creating web pages, web applications, and mobile applications.

CSS (Cascading Style Sheets) is a styling language for controlling the layout and appearance of web pages, used for styling HTML elements, layout, and visual effects.

To create a web page, you need a text editor such as Notepad, Notepad++, Adobe Dreamweaver, or Brackets. Save the code with the extension .html or .htm, then run (open) the code using a web browser such as Google Chrome or Firefox.

HTML Page Structure

  • <!DOCTYPE html> declaration: defines the document type.
  • <html> root element: contains all HTML elements.
  • <head> section: metadata about the document, including <title> (page title), <meta> (charset, viewport, etc.), <link> (external stylesheets/scripts), and <script> (embedded JavaScript).
  • <body> section: contains the page content.

Leave a comment

Your email address will not be published. Required fields are marked *

sponsors Ads