HTML rp

Created By: chatGPT

HTML (HyperText Markup Language) is the standard language used for creating web pages. It describes the structure of a webpage using elements represented by tags. Understanding the basic structure of HTML is essential for developing websites.
<!DOCTYPE html>
<html>
<head>
    <title>My First Web Page</title>
</head>
<body>
    <h1>Welcome to My Web Page</h1>
    <p>This is a paragraph of text in my first web page.</p>
</body>
</html>
An HTML document is essentially made up of elements that can include headings, paragraphs, links, images, lists, and many other components. Each element has a start tag and an end tag. For example, a paragraph is created by using the <p> tag.
<p>This is a paragraph.</p>
To create hyperlinks, the <a> tag is used. The href attribute specifies the URL to link to. When the link is clicked, the browser navigates to the specified URL.
<a href="https://www.example.com">Visit Example.com</a>
You can also add images using the <img> tag. The src attribute is used to specify the path to the image file, while the alt attribute provides alternative text for the image.
<img src="image.jpg" alt="Description of Image">

Lists are another important aspect of HTML. You can create both ordered lists and unordered lists.

  • An unordered list is created with the <ul> tag and each item is enclosed in <li> tags.
  • An ordered list is created with the <ol> tag.
<ul>
    <li>Item 1</li>
    <li>Item 2</li>
</ul>

<ol>
    <li>First Item</li>
    <li>Second Item</li>
</ol>
To style your web pages, you can use CSS (Cascading Style Sheets). CSS can be included directly within the <style> tag in the <head> or linked externally. Here's a quick example of using CSS:
<head>
    <style>
        body {
            background-color: lightblue;
        }
        h1 {
            color: navy;
            margin-left: 20px;
        }
    </style>
</head>
Introduction And SetupHeadTitleMetaLinkStyleScriptBodyHeaderNavSectionArticleAsideFooterH1H2H3H4H5H6PBlockquoteOlUlLiAImgTableTrTdThCaptionFormInputTextareaButtonSelectOptionLabelFieldsetLegendCanvasSvgVideoAudioEmbedObjectIframeDivSpanStrongEmSmallSubSupMarkCiteDfnAbbrTimeDataVarCodeKbdSampQCiteRubyRbRtRtcRpBdiBdoWbrDatalistOutputProgressMeterDetailsSummaryTemplatePictureSourceTrackMeta CharsetMeta NameMeta ContentMeta ViewportMeta Http EquivLink RelLink HrefScript SrcScript AsyncStyle TypeBody OnloadIdClassStyleSrcHrefAltTitleValueNameTypePlaceholderDisabledReadonlyCheckedActionMethodForMaxlengthMinlengthAutocompleteTargetRelData *WidthHeightLangTabindexAria *DraggableHiddenAutofocusRequiredDownload