Christiana Idu
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # EXPLAINING A WEB PAGE USING HTML AND CSS I will be explaining the web page attached below using HTML and CSS codes. To understand this better, it is imperative to provide the basic background of HTML and CSS. **HTML:** This is an acronym for HyperText Markup Language. This is the standard markup language for documents intended to be viewed in a web browser. Programming languages like JavaScript and technologies like Cascading Style Sheets (CSS) frequently help with it. Despite being able to run in a browser, HTML is not considered a programming language in the context of programming languages. HTML elements are the building blocks of HTML pages because, they are specific instructions. Every element has three components which are the opening tags <>, the content, and the closing tags </>. The basic structure of the html is illustrated below: ``` <html> <head> <title>Page Title</title> </head> <body> <h1>Heading</h1> <p>Content</p> </body> </html> ``` **CSS:** CSS is an acronym for Cascading Style Sheets and is used to style elements written in a markup language such as HTML. In otherwords, When writing a web page in a markup language like HTML or XML, the presentation and styling can be specified using CSS, a language for style sheets. CSS is designed to enable the separation of content and presentation, including layout, colors, and fonts (W3C, 2010). Multiple web pages can share formatting by specifying the relevant CSS in a separate.css file, which reduces complexity and repetition in the structural content; the.css file can be cached to improve the page load speed between the pages that share the file and its formatting; additional flexibility and control in the specification of presentation characteristics; and improved accessibility of the content due to the ease with which it can be written. The CSS syntax structure is pretty simple. It has a selector and a declaration block. You select an element and then declare what you want to do with it. The declaration block has one or more declarations separated by semicolons, each of which has a CSS property name and a value separated by a colon. A CSS declaration always ends with a semicolon, and declaration blocks are enclosed by curly braces. The selector points to the HTML elements you wish to style.The declaration block has one or more declarations separated by semicolons, each of which has a CSS property name and a value separated by a colon. A CSS declaration always ends with a semicolon, and declaration blocks are enclosed by curly braces {}. The selector points to the HTML elements you wish to style. An example is, when you want to make a `<p>` element black and bold using CSS: ``` <style> p { color: black; text-weight: bold; } <style> ``` The different styles of CSS are the Inline, External and Internal style. For the web page I will be explaining, I will be employing the Internal Style CSS. ![CSS](https://hackmd.io/_uploads/BJ9aVVZtkg.jpg) The main HTML elements used for this web page according to my analysis includes the following: **The head element** represented as: <head></head>. The head element in HTML is a container for metadata, or data about a document. The head element is found between the <html> and the <body> element. It contains the meta tags, title and links. **The body element** represented as: ` <body></body>` In every html file, there can only be one <body> element. The <body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etcetera (w3schools, 2025). **The paragraph element** is represented as: `<p>`. This represents a block of text. **The style tag** represented as `<style>`. The `<style>` tag is used to define style information (CSS) for a document. Inside the `<style>` element you specify how HTML elements should render in a browser. **The Div tag** represented as: `<div>`. This defines a division or a section in an HTML document. The `<div>` tag is used as a container for HTML elements - which is then styled with CSS. The `<div>` tag is easily styled by using the class or id attribute which is only used at the opening tag. **The heading tag** which is represented by `<h1>`. The `<h1> `to `<h6>` tags are used to define HTML headings. `<h1>` defines the most important heading, while the `<h6>` defines the least important heading.For the purpose of the web page under review, the `<h1>`tag is referenced. **The button element/tag** is represented as <button>. This defines a clickable button. Inside a <button> element you can put a text. **The image tag** represented as `<img>`. Ths is used to embed an image in an HTML page. The `<img>` tag creates a holding space for the referenced image. **The main element:** in HTML, this signifies the primary content area of a webpage, used to identify the central topic or functionality of a document, and is typically placed directly within the <body> tag; it should only appear once per page and contain unique content related to that specific page. The HTML code for this webpage is presented below. Note that the internal CSS style was removed this project for the purpose of explanation and clarity. ***(The Internal style CSS is usually located at the head, just before the body element)***. ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <main> <div class="container"> <div class="gold"> <img src="Sedan.svg" width="50" height="50" alt="sedan"img> <div class="content"> <h1>SEDANS</h1> <p>Choose a sedan for its affordability and excellent fuel economy. Ideal for cruising in the city or on your next road trip.</p> </div> <div class="button"> <button>Learn More</button> </div> </div> <div class="sea-green"> <img src="suv.svg" width="50" height="50" alt="suv"img> <div class="content"> <h1>SUVS</h1> <p>Take an SUV for its spacious interior, power, and versatility. Perfect for your next family vacation and off-road adventures.</p> </div> <div class="button"> <button>Learn More</button> </div> </div> <div class="forest-green"> <img src="Luxury.svg" width="50" height="50" alt="suv"img> <div class="content"> <h1>Luxury</h1> <p>Cruise in the best car brands without the bloated prices. Enjoy the enhanced comfort of a luxury rental and arrive in style.</p> </div> <div class="content"> <button>Learn More</button> </div> </div> </div> </main> </body> </html> ``` Basically, all the aforementioned HTML elements were incorporated in one way or the other to build the web page under review. *For the CSS*, it is worthy to note that when styling main tags, you are to just call the name of the element. The following syntax structure was used for the purpose of building the webpage under review: <style> *{ margin: 0; padding: 0; } body{ display: flex; justify-content: center; align-items: center; height: 100vh; } .container { display: flex; background: #f3f2f3; padding: 60px; height: 500px; } .gold { background: #e38527; padding: 30px; display:flex; flex-direction: column; justify-content: space-between; } .sea-green { background: #006973; padding: 30px; display:flex; flex-direction: column; justify-content: space-between; } .forest-green { background: #00413e; padding: 30px; display:flex; flex-direction: column; justify-content: space-between; } button { padding:10px 40px; border-radius: 50px; border: none; } p { word-wrap: break-word; width: 200px; } `</style>` Basic CSS syntax is composed of a selector and a declaration block. ***Selector:*** Determines which HTML elements will be styled. ***Declaration Block***: Enclosed in curly braces {…} and contains one or more declarations. We will explain just a few of the CSS used: **Flexbox**: "is short for the Flexible Box Layout module. It is a layout method for arranging items in rows or columns. Flexbox makes it easier to design a flexible responsive layout structure, without using float or positioning" (w3schools.com). **Color**: In CSS, a color can be specified by using a predefined color name for example, blue, red, black etc. ***Background:*** The background-color property specifies the background color of an element. ***Padding:*** Padding is used to create space around an element's content, inside of any defined borders. ***Word-Wrap:*** The word-wrap property allows long words to be able to be broken and wrap onto the next line. ***Margins:*** Margins are used to create space around elements, outside of any defined borders. HTML on its own looks very plain and basic but adding some elements of styling to it using the CSS for example, makes it eye catching and easily understood. It is important to have the basic knowledge of both the HTML and the CSS. That is, the basic programming languages for web development are HTML and CSS, which are essential for anyone aspiring to work in this field. Gaining proficiency in these languages not only gives you the tools you need to work with more complicated languages, but it also opens up a wide range of web development career prospects. **REFERENCES** GeeksforGeeks.org The World Wide Web Consortium (W3C) (2010) W3Schools.com Wikipedia.org

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully