Join Regular Classroom : Visit ClassroomTech

HTML – codewindow.in

Related Topics

HTML

Introduction
Html page 1
Html page 2
Html page3
Html page4

HTML Elements and structure
Html page 5
Html page 6
Html page 7

HTML Headings and Paragraphs
Html page 8
Html page 9
Html page 10

HTML Lists and Tables
Html page 11
Html page 12
Html page 13

HTML Forms and Input Fields
Html page 14
Html page 15
Html page 16

HTML Images and Media
Html page 17
Html page 18

HTML Links and Anchors
Html page 19
Html page 20
Html page 21

HTML Styles and Formatting
Html page 22

HTML Semantic Elements
Html page 23
Html page 24

HTML Attributes
Html page 25
Html page 26

HTML JavaScript Integration
Html page 27
Html page 28
Html page 29
Html page 30

HTML Document and Browser Support
Html page 31
Html page 32

HTML5 New Elements and Attributes
Html page 33
Html page 34
Html page 35
Html page 36

HTML Accessibility and Web Standards
Html page 37
Html page 38
Html page 39

HTML Responsive Design and Mobile Devices.
Html page 40
Html page 41
Html page 42

CSS

Introduction
CSS Page 1
CSS Page 2
CSS Page 3
CSS Page 4

CSS Selectors and the Box Model
CSS Page 5
CSS Page 6
CSS Page 7

CSS Layout and Display Properties
CSS Page 8
CSS Page 9
CSS Page 10
CSS Page 11

CSS Text and Font Properties
CSS Page 12
CSS Page 13
CSS Page 14
CSS Page 15

CSS Backgrounds and Borders
CSS Page 16
CSS Page 17
CSS Page 18
CSS Page 19
CSS Page 20

CSS Colors and Transparency
CSS Page 21
CSS Page 22
CSS Page 23
CSS Page 24

CSS Gradients and Shadows
CSS Page 25
CSS Page 26

CSS Transformations and Animations
CSS Page 27
CSS Page 28
CSS Page 29

CSS Flexbox and Grid Layout
CSS Page 30
CSS Page 31
CSS Page 32

CSS Media Queries and Responsive Design

CSS Page 33
CSS Page 34
CSS Page 35

CSS Transitions and Transforms
CSS Page 36
CSS Page 37
CSS Page 38

CSS Preprocessors (Sass, Less, etc.)
CSS Page 39
CSS Page 40
CSS Page 41

CSS Best Practices and Debugging Techniques.
CSS Page 42
CSS Page 43
CSS Page 44

HTML


This declaration tells the web browser that the document is an HTML5 document, and that it should use the HTML5 parsing rules to render the page.

By including the HTML document type declaration in your web pages, you can ensure that they are displayed correctly and consistently across different devices and browsers. It is considered good practice to include this declaration in all your HTML documents.

<a href="url">link text</a>

The href attribute specifies the URL (web address) of the page that you want to link to, while the link text is the text that the user will click on to follow the link.

For example, to create a link to the Google homepage, you would use the following HTML code:

<a href="https://www.google.com">Go to Google</a>

When the user clicks on the link, their web browser will navigate to the specified URL.

You can also create links to other pages within the same website by using relative URLs. For example, to create a link to a page named about.html in the same directory as the current page, you would use the following HTML code:

<a href="about.html">About Us</a>

Relative URLs allow you to create links within your own website without having to specify the full URL.

Additionally, you can use other attributes with the <a> element, such as target to specify whether the linked page should be opened in a new window or tab, and title to provide additional information about the link when the user hovers over it with their mouse.

<img src="image.jpg" alt="Description of image">

The alt attribute provides a description of the image that will be displayed if the image cannot be loaded, or if the user is using a screen reader to access the content. It is important to provide a meaningful description of the image to ensure that the content is accessible to all users.

<video width="640" height="360">
  <source src="video.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>

In this example, we are using the <video> element to embed a video file named “video.mp4”. The width and height attributes specify the dimensions of the video player on the web page.

The <source> element is used to specify the location and file type of the video. In this case, we are using an MP4 file format with the type attribute set to "video/mp4". You can also include additional <source> elements with different file types to ensure cross-browser compatibility.

The controls attribute adds standard video controls such as play, pause, and volume control to the video player.

If the user’s web browser does not support the <video> element or the specified file format, the text “Your browser does not support the video tag.” will be displayed instead.

Overall, using the <video> element in HTML provides a way to add video content to web pages in a way that is supported by modern web browsers.



  
    <title>My Web Page</title>
    
      body {
        background-color: #f1f1f1;
      }
      h1 {
        color: blue;
        text-align: center;
      }
    
  
  
    <h1>Welcome to my web page!</h1>
    <p>This is an example of an internal CSS style.</p>
  

External CSS styles, on the other hand, are defined in a separate CSS file and linked to the HTML document using the <link> element. This means that the CSS code is stored in a separate file and can be reused across multiple HTML documents. The style rules defined in the external CSS file apply to all HTML documents that link to that file.

Here is an example of an external CSS style:



  
    <title>My Web Page</title>
    
  
  
    <h1>Welcome to my web page!</h1>
    <p>This is an example of an external CSS style.</p>
  

In this example, we are linking to an external CSS file named “style.css” using the <link> element. The CSS rules defined in “style.css” will apply to all HTML documents that link to it.

Overall, the main difference between internal and external CSS styles is that internal styles are defined directly within the HTML document, while external styles are defined in a separate file that can be reused across multiple HTML documents.

<table>
  <thead>
    <tr>
      <th>Column 1</th>
      <th>Column 2</th>
      <th>Column 3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Row 1, Column 1</td>
      <td>Row 1, Column 2</td>
      <td>Row 1, Column 3</td>
    </tr>
    <tr>
      <td>Row 2, Column 1</td>
      <td>Row 2, Column 2</td>
      <td>Row 2, Column 3</td>
    </tr>
  </tbody>
</table>

In this example, we are using the <table> element to create a table. The <thead> element is used to define the table header row, which contains the column headings. The <th> element is used to define each column heading.

The <tbody> element is used to define the table body, which contains the rows of data. The <tr> element is used to define each row, and the <td> element is used to define each cell in the row.

You can also use CSS to style tables and customize their appearance, such as changing the border, background color, and font size.

      

Popular Category

Topics for You

CSS

Introduction
CSS Page 1
CSS Page 2
CSS Page 3
CSS Page 4

CSS Selectors and the Box Model
CSS Page 5
CSS Page 6
CSS Page 7

CSS Layout and Display Properties
CSS Page 8
CSS Page 9
CSS Page 10
CSS Page 11

CSS Text and Font Properties
CSS Page 12
CSS Page 13
CSS Page 14
CSS Page 15

CSS Backgrounds and Borders
CSS Page 16
CSS Page 17
CSS Page 18
CSS Page 19
CSS Page 20

CSS Colors and Transparency
CSS Page 21
CSS Page 22
CSS Page 23
CSS Page 24

CSS Gradients and Shadows
CSS Page 25
CSS Page 26

CSS Transformations and Animations
CSS Page 27
CSS Page 28
CSS Page 29

CSS Flexbox and Grid Layout
CSS Page 30
CSS Page 31
CSS Page 32

CSS Media Queries and Responsive Design

CSS Page 33
CSS Page 34
CSS Page 35

CSS Transitions and Transforms
CSS Page 36
CSS Page 37
CSS Page 38

CSS Preprocessors (Sass, Less, etc.)
CSS Page 39
CSS Page 40
CSS Page 41

CSS Best Practices and Debugging Techniques.
CSS Page 42
CSS Page 43
CSS Page 44

Go through our study material. Your Job is awaiting.

Recent Posts
Categories