Complete CSS Example
Profile Card
Muhammad Rauf
Web Developer and Designer. I love creating beautiful and functional web experiences.
Related Articles
Explanation of HTML Code
-
Document Type Declaration (
):
This declaration tells the web browser that the document is written in HTML5. -
HTML Element (
): This is the root element of the HTML document. The
lang
attribute specifies the language of the document, which is English in this case. -
Head Section (
): This section contains meta-information about the HTML document, such as character encoding, viewport settings, and the document's title.
- Meta Tags: These meta tags provide metadata about the HTML document. For example, the charset meta tag specifies the character encoding used in the document.
-
Title (
): This element sets the title of the HTML document, which is displayed in the browser's title bar or tab.Profile Card -
Style Section (
): This section contains CSS styles used to format the profile card and its contents.
-
Profile Card Container (): ThisElement serves as a container for the entire Profile card. It has a class name of "profile-card" which is used for styling purposes.
- Profile Image (
): This
element displays the profile picture of Muhammad Rauf. The
src
attribute specifies the image file path, and thealt
attribute provides alternative text for accessibility. It also has a class name of "profile-img" for styling.- Profile Name (
): ThisMuhammad Rauf
element displays the name of the person, Muhammad Rauf. It has a class name of "profile-name" for styling.
- Profile Bio (
): ThisWeb Developer and Designer...
element provides a brief description of Muhammad Rauf's profession and interests. It has a class name of "profile-bio" for styling.
- Social Links Container (
- Profile Image (