- Overview
- Transcript
2.4 Semantic Elements
Let's keep looking at the basic Semantic components. In this lesson, I'll introduce some of the elements that come built in with Semantic.
1.Introduction1 lesson, 00:52
1.1Introduction00:52
2.Get Started with Semantic UI5 lessons, 22:52
2.1What Is Semantic UI?04:11
2.2Theming in Semantic UI06:42
2.3Semantic Collections04:36
2.4Semantic Elements03:22
2.5Semantic Views and Modules04:01
3.Semantic Ui and Vanilla JavaScript4 lessons, 16:22
3.1Set Up the JavaScript Project05:37
3.2Set Up the Header With a Menu and Hero Area03:36
3.3Add Some Sections03:32
3.4About and Contact Sections03:37
4.Semantic Ui for React6 lessons, 18:55
4.1Set Up the React Project04:16
4.2The `Menu` Component03:25
4.3The `Submenu` Component03:09
4.4Create a File Listing02:34
4.5Set Up the Angular 2 Project02:06
4.6Set Up the Menu03:25
5.Semantic Ui and Angular2 lessons, 08:11
5.1Set Up a Hero Area05:11
5.2Set Up the Campaign Information03:00
6.Conclusion1 lesson, 00:47
6.1Conclusion00:47
2.4 Semantic Elements
Hello, everyone, I am Reggie Dawson. Welcome to the Semantic UI Framework and JavaScript Projects Course for Tuts+. In this video we will look at the components called elements in Semantic. These elements are the most basic building blocks of Semantic and what we will use to add our content. The first element we will look at is the segment. Segments allow us to group related content together. The segment is great when used to contain text, but works equally as well when using images or other content. There are also other segment formats that make the segment look like it has multiple pages. We can also create vertical and horizontal groups of segments and nest segments together. As usual, the Semantic team has included a load of options for the segment to ensure that your project doesn't look like anyone else's. As a result, segments are a very versatile way to display content. Next up, the button is nothing different than the buttons that you have seen with other frameworks, but as usual, there's more. In addition to the standard buttons, we can also use the color setup in Semantic to style our buttons. Then we can also invert the buttons to make them work better on a dark background. Of course, I've seen the various colored buttons before, but I've never seen any other frameworks offer conditional buttons, for example. Semantic also offers social buttons that adopt the branding of the respective social network. Now the creative button all we need to do is pass the UI and button classes to a button. We can also use another element if we like, but if we do we will need to add tab index = 0. This is because any element other than a button will not change styles correctly on click without this. Now after that, the next component we will look at is the header. Beyond just a simple way of displaying headings, headers in Semantic are useful ways of displaying information. At its most basic, we have the page and content headers. The page headers are designed to be used as the headers of a whole page. The content headers are designed to work with smaller sections of content. The only difference in how you specify which one you are using is in the syntax. The page headers use standard h1 through h5 tags and add the ui header class. Content headers, on the other hand, are created with the div that we then supply with the ui header class, but we also have to specify a sizing class. The options we have are huge, large, medium, small, and tiny. Now, I've looked at the styles for these and they really correspond directly to the standard heading tags. Another thing that makes headers useful is the different styling that we can apply to them besides text. We can also add images, and icons to the headers, for example. Then finally, we have the label, which as usual offers a lot of styles that we haven't seen in other frameworks. With Semantic, we can add icons or images with our labels. One of the more unique labels that we have in Semantic is the pointing label, which will point to content next to it. By default the label will point up, but we can add below, left and right to point the label in the respective direction. We also have the ribbon, which attaches itself to another element. The ribbon appears as if it wraps around another piece of content. For example, if we add the ribbon to a segment it will appear as if it wraps around the segment. As usual we have only scratched the surface of the Semantic elements. Make sure you check out the documentation and learn more about the elements we discussed as well as others we didn't get to. In the next video we will learn about some of the view and module components of Semantic UI.